1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* RustType.kt:516 */
|
2 3 | #[allow(clippy::unnecessary_wraps)]
|
4 + | /* ProtocolParserGenerator.kt:99 */
|
3 5 | pub fn de_simple_scalar_properties_http_error(
|
4 6 | _response_status: u16,
|
5 7 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|
6 8 | _response_body: &[u8],
|
7 9 | ) -> std::result::Result<
|
8 10 | crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
|
9 11 | crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
|
10 12 | > {
|
13 + | /* RustType.kt:516 */
|
11 14 | #[allow(unused_mut)]
|
15 + | /* ProtocolParserGenerator.kt:106 */
|
12 16 | let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
|
13 17 | .map_err(crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::unhandled)?;
|
18 + | /* ProtocolParserGenerator.kt:120 */
|
14 19 | let generic = generic_builder.build();
|
20 + | /* ProtocolParserGenerator.kt:185 */
|
15 21 | Err(crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::generic(generic))
|
22 + | /* ProtocolParserGenerator.kt:99 */
|
16 23 | }
|
17 24 |
|
25 + | /* RustType.kt:516 */
|
18 26 | #[allow(clippy::unnecessary_wraps)]
|
27 + | /* ProtocolParserGenerator.kt:71 */
|
19 28 | pub fn de_simple_scalar_properties_http_response(
|
20 29 | _response_status: u16,
|
21 30 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|
22 31 | _response_body: &[u8],
|
23 32 | ) -> std::result::Result<
|
24 33 | crate::operation::simple_scalar_properties::SimpleScalarPropertiesOutput,
|
25 34 | crate::operation::simple_scalar_properties::SimpleScalarPropertiesError,
|
26 35 | > {
|
36 + | /* ProtocolParserGenerator.kt:77 */
|
27 37 | Ok({
|
38 + | /* RustType.kt:516 */
|
28 39 | #[allow(unused_mut)]
|
40 + | /* ProtocolParserGenerator.kt:240 */
|
29 41 | let mut output = crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder::default();
|
42 + | /* ProtocolParserGenerator.kt:247 */
|
30 43 | output = crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties(_response_body, output)
|
31 44 | .map_err(crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::unhandled)?;
|
45 + | /* ProtocolParserGenerator.kt:267 */
|
32 46 | output = output.set_foo(
|
47 + | /* ProtocolParserGenerator.kt:302 */
|
33 48 | crate::protocol_serde::shape_simple_scalar_properties_output::de_foo_header(_response_headers).map_err(|_| {
|
34 49 | crate::operation::simple_scalar_properties::SimpleScalarPropertiesError::unhandled("Failed to parse foo from header `X-Foo")
|
35 - | })?,
|
50 + | })?, /* ProtocolParserGenerator.kt:267 */
|
36 51 | );
|
52 + | /* ClientBuilderInstantiator.kt:56 */
|
37 53 | output.build()
|
54 + | /* ProtocolParserGenerator.kt:77 */
|
38 55 | })
|
56 + | /* ProtocolParserGenerator.kt:71 */
|
39 57 | }
|
40 58 |
|
59 + | /* HttpBindingGenerator.kt:542 */
|
41 60 | pub fn ser_simple_scalar_properties_headers(
|
42 61 | input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
|
43 62 | mut builder: ::http::request::Builder,
|
44 63 | ) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
|
64 + | /* HttpBindingGenerator.kt:592 */
|
45 65 | if let ::std::option::Option::Some(inner_1) = &input.foo {
|
66 + | /* HttpBindingGenerator.kt:704 */
|
46 67 | let formatted_2 = inner_1.as_str();
|
68 + | /* HttpBindingGenerator.kt:706 */
|
47 69 | let header_value = formatted_2;
|
48 70 | let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
|
49 71 | ::aws_smithy_types::error::operation::BuildError::invalid_field(
|
50 72 | "foo",
|
51 73 | format!("`{}` cannot be used as a header value: {}", &header_value, err),
|
52 74 | )
|
53 75 | })?;
|
54 76 | builder = builder.header("X-Foo", header_value);
|
77 + | /* HttpBindingGenerator.kt:592 */
|
55 78 | }
|
79 + | /* HttpBindingGenerator.kt:555 */
|
56 80 | Ok(builder)
|
81 + | /* HttpBindingGenerator.kt:542 */
|
57 82 | }
|
58 83 |
|
84 + | /* XmlBindingTraitSerializerGenerator.kt:116 */
|
59 85 | pub fn ser_simple_scalar_properties_op_input(
|
60 86 | input: &crate::operation::simple_scalar_properties::SimpleScalarPropertiesInput,
|
61 87 | ) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
|
88 + | /* XmlBindingTraitSerializerGenerator.kt:120 */
|
62 89 | let mut out = String::new();
|
90 + | /* XmlBindingTraitSerializerGenerator.kt:124 */
|
63 91 | {
|
92 + | /* XmlBindingTraitSerializerGenerator.kt:125 */
|
64 93 | let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
|
65 94 | #[allow(unused_mut)]
|
66 95 | let mut root = writer.start_el("SimpleScalarPropertiesRequest");
|
96 + | /* XmlBindingTraitSerializerGenerator.kt:440 */
|
67 97 | crate::protocol_serde::shape_simple_scalar_properties_input::ser_simple_scalar_properties_input_input_input(input, root)?
|
98 + | /* XmlBindingTraitSerializerGenerator.kt:124 */
|
68 99 | }
|
100 + | /* XmlBindingTraitSerializerGenerator.kt:137 */
|
69 101 | Ok(::aws_smithy_types::body::SdkBody::from(out))
|
102 + | /* XmlBindingTraitSerializerGenerator.kt:116 */
|
70 103 | }
|
71 104 |
|
105 + | /* RustType.kt:516 */
|
72 106 | #[allow(unused_mut)]
|
107 + | /* XmlBindingTraitParserGenerator.kt:189 */
|
73 108 | pub fn de_simple_scalar_properties(
|
74 109 | inp: &[u8],
|
75 110 | mut builder: crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder,
|
76 111 | ) -> std::result::Result<
|
77 112 | crate::operation::simple_scalar_properties::builders::SimpleScalarPropertiesOutputBuilder,
|
78 113 | ::aws_smithy_xml::decode::XmlDecodeError,
|
79 114 | > {
|
115 + | /* XmlBindingTraitParserGenerator.kt:194 */
|
80 116 | let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
|
81 117 |
|
82 118 | #[allow(unused_mut)]
|
83 119 | let mut decoder = doc.root_element()?;
|
84 120 | #[allow(unused_variables)]
|
85 121 | let start_el = decoder.start_el();
|
122 + | /* RestXmlParserGenerator.kt:36 */
|
86 123 | if !start_el.matches("SimpleScalarPropertiesResponse") {
|
87 124 | return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
|
88 125 | "encountered invalid XML root: expected SimpleScalarPropertiesResponse but got {:?}. This is likely a bug in the SDK.",
|
89 126 | start_el
|
90 127 | )));
|
91 128 | }
|
129 + | /* XmlBindingTraitParserGenerator.kt:352 */
|
92 130 | while let Some(mut tag) = decoder.next_tag() {
|
131 + | /* XmlBindingTraitParserGenerator.kt:353 */
|
93 132 | match tag.start_el() {
|
94 - | s if s.matches("stringValue") /* stringValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$stringValue */ => {
|
95 - | let var_3 =
|
96 - | Some(
|
97 - | Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
98 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
99 - | .into()
|
100 - | )
|
101 - | ?
|
102 - | )
|
103 - | ;
|
104 - | builder = builder.set_string_value(var_3);
|
105 - | }
|
133 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("stringValue") /* stringValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$stringValue */ => {
|
134 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_3 =
|
135 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
136 + | /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
137 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
138 + | /* XmlBindingTraitParserGenerator.kt:748 */.into()
|
139 + | /* XmlBindingTraitParserGenerator.kt:729 */)
|
140 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
141 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
142 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
143 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_string_value(var_3);
|
144 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
106 145 | ,
|
107 - | s if s.matches("floatValue") /* floatValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$floatValue */ => {
|
108 - | let var_4 =
|
109 - | Some(
|
110 - | {
|
111 - | <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
112 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
113 - | )
|
114 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
|
115 - | }
|
116 - | ?
|
117 - | )
|
118 - | ;
|
119 - | builder = builder.set_float_value(var_4);
|
120 - | }
|
146 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("floatValue") /* floatValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$floatValue */ => {
|
147 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_4 =
|
148 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
149 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
150 + | /* XmlBindingTraitParserGenerator.kt:677 */<f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
151 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
152 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
153 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
|
154 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
155 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
156 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
157 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
158 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_float_value(var_4);
|
159 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
121 160 | ,
|
122 - | s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$falseBooleanValue */ => {
|
123 - | let var_5 =
|
124 - | Some(
|
125 - | {
|
126 - | <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
127 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
128 - | )
|
129 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
130 - | }
|
131 - | ?
|
132 - | )
|
133 - | ;
|
134 - | builder = builder.set_false_boolean_value(var_5);
|
135 - | }
|
161 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$falseBooleanValue */ => {
|
162 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_5 =
|
163 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
164 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
165 + | /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
166 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
167 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
168 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
169 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
170 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
171 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
172 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
173 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_false_boolean_value(var_5);
|
174 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
136 175 | ,
|
137 - | s if s.matches("shortValue") /* shortValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$shortValue */ => {
|
138 - | let var_6 =
|
139 - | Some(
|
140 - | {
|
141 - | <i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
142 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
143 - | )
|
144 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
|
145 - | }
|
146 - | ?
|
147 - | )
|
148 - | ;
|
149 - | builder = builder.set_short_value(var_6);
|
150 - | }
|
176 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("shortValue") /* shortValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$shortValue */ => {
|
177 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_6 =
|
178 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
179 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
180 + | /* XmlBindingTraitParserGenerator.kt:677 */<i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
181 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
182 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
183 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
|
184 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
185 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
186 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
187 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
188 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_short_value(var_6);
|
189 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
151 190 | ,
|
152 - | s if s.matches("integerValue") /* integerValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$integerValue */ => {
|
153 - | let var_7 =
|
154 - | Some(
|
155 - | {
|
156 - | <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
157 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
158 - | )
|
159 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
|
160 - | }
|
161 - | ?
|
162 - | )
|
163 - | ;
|
164 - | builder = builder.set_integer_value(var_7);
|
165 - | }
|
191 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("integerValue") /* integerValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$integerValue */ => {
|
192 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_7 =
|
193 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
194 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
195 + | /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
196 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
197 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
198 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
|
199 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
200 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
201 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
202 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
203 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_integer_value(var_7);
|
204 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
166 205 | ,
|
167 - | s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$doubleValue */ => {
|
168 - | let var_8 =
|
169 - | Some(
|
170 - | {
|
171 - | <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
172 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
173 - | )
|
174 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
|
175 - | }
|
176 - | ?
|
177 - | )
|
178 - | ;
|
179 - | builder = builder.set_double_value(var_8);
|
180 - | }
|
206 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$doubleValue */ => {
|
207 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_8 =
|
208 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
209 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
210 + | /* XmlBindingTraitParserGenerator.kt:677 */<f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
211 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
212 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
213 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
|
214 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
215 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
216 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
217 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
218 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_double_value(var_8);
|
219 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
181 220 | ,
|
182 - | s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$trueBooleanValue */ => {
|
183 - | let var_9 =
|
184 - | Some(
|
185 - | {
|
186 - | <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
187 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
188 - | )
|
189 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
190 - | }
|
191 - | ?
|
192 - | )
|
193 - | ;
|
194 - | builder = builder.set_true_boolean_value(var_9);
|
195 - | }
|
221 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$trueBooleanValue */ => {
|
222 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_9 =
|
223 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
224 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
225 + | /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
226 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
227 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
228 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
229 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
230 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
231 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
232 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
233 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_true_boolean_value(var_9);
|
234 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
196 235 | ,
|
197 - | s if s.matches("longValue") /* longValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$longValue */ => {
|
198 - | let var_10 =
|
199 - | Some(
|
200 - | {
|
201 - | <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
202 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
203 - | )
|
204 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
|
205 - | }
|
206 - | ?
|
207 - | )
|
208 - | ;
|
209 - | builder = builder.set_long_value(var_10);
|
210 - | }
|
236 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("longValue") /* longValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$longValue */ => {
|
237 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_10 =
|
238 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
239 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
240 + | /* XmlBindingTraitParserGenerator.kt:677 */<i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
241 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
242 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
243 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
|
244 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
245 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
246 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
247 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
248 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_long_value(var_10);
|
249 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
211 250 | ,
|
212 - | s if s.matches("byteValue") /* byteValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$byteValue */ => {
|
213 - | let var_11 =
|
214 - | Some(
|
215 - | {
|
216 - | <i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
217 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
218 - | )
|
219 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
|
220 - | }
|
221 - | ?
|
222 - | )
|
223 - | ;
|
224 - | builder = builder.set_byte_value(var_11);
|
225 - | }
|
251 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("byteValue") /* byteValue aws.protocoltests.restxml.synthetic#SimpleScalarPropertiesOutput$byteValue */ => {
|
252 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_11 =
|
253 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
254 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
255 + | /* XmlBindingTraitParserGenerator.kt:677 */<i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
256 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
257 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
258 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
|
259 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
260 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
261 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
262 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
263 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_byte_value(var_11);
|
264 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
226 265 | ,
|
227 - | _ => {}
|
228 - | }
|
266 + | /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
|
267 + | /* XmlBindingTraitParserGenerator.kt:353 */}
|
268 + | /* XmlBindingTraitParserGenerator.kt:352 */
|
229 269 | }
|
270 + | /* XmlBindingTraitParserGenerator.kt:213 */
|
230 271 | Ok(builder)
|
272 + | /* XmlBindingTraitParserGenerator.kt:189 */
|
231 273 | }
|