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_xml_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_xml_properties::SimpleScalarXmlPropertiesOutput,
|
9 11 | crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError,
|
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_xml_properties::SimpleScalarXmlPropertiesError::unhandled)?;
|
18 + | /* ProtocolParserGenerator.kt:120 */
|
14 19 | let generic = generic_builder.build();
|
20 + | /* ProtocolParserGenerator.kt:185 */
|
15 21 | Err(crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError::generic(
|
16 22 | generic,
|
17 23 | ))
|
24 + | /* ProtocolParserGenerator.kt:99 */
|
18 25 | }
|
19 26 |
|
27 + | /* RustType.kt:516 */
|
20 28 | #[allow(clippy::unnecessary_wraps)]
|
29 + | /* ProtocolParserGenerator.kt:71 */
|
21 30 | pub fn de_simple_scalar_xml_properties_http_response(
|
22 31 | _response_status: u16,
|
23 32 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|
24 33 | _response_body: &[u8],
|
25 34 | ) -> std::result::Result<
|
26 35 | crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesOutput,
|
27 36 | crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError,
|
28 37 | > {
|
38 + | /* ProtocolParserGenerator.kt:77 */
|
29 39 | Ok({
|
40 + | /* RustType.kt:516 */
|
30 41 | #[allow(unused_mut)]
|
42 + | /* ProtocolParserGenerator.kt:240 */
|
31 43 | let mut output = crate::operation::simple_scalar_xml_properties::builders::SimpleScalarXmlPropertiesOutputBuilder::default();
|
44 + | /* ProtocolParserGenerator.kt:247 */
|
32 45 | output = crate::protocol_serde::shape_simple_scalar_xml_properties::de_simple_scalar_xml_properties(_response_body, output)
|
33 46 | .map_err(crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError::unhandled)?;
|
47 + | /* ClientBuilderInstantiator.kt:56 */
|
34 48 | output.build()
|
49 + | /* ProtocolParserGenerator.kt:77 */
|
35 50 | })
|
51 + | /* ProtocolParserGenerator.kt:71 */
|
36 52 | }
|
37 53 |
|
54 + | /* RustType.kt:516 */
|
38 55 | #[allow(unused_mut)]
|
56 + | /* XmlBindingTraitParserGenerator.kt:189 */
|
39 57 | pub fn de_simple_scalar_xml_properties(
|
40 58 | inp: &[u8],
|
41 59 | mut builder: crate::operation::simple_scalar_xml_properties::builders::SimpleScalarXmlPropertiesOutputBuilder,
|
42 60 | ) -> std::result::Result<
|
43 61 | crate::operation::simple_scalar_xml_properties::builders::SimpleScalarXmlPropertiesOutputBuilder,
|
44 62 | ::aws_smithy_xml::decode::XmlDecodeError,
|
45 63 | > {
|
64 + | /* XmlBindingTraitParserGenerator.kt:194 */
|
46 65 | let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
|
47 66 |
|
48 67 | #[allow(unused_mut)]
|
49 68 | let mut decoder = doc.root_element()?;
|
50 69 | #[allow(unused_variables)]
|
51 70 | let start_el = decoder.start_el();
|
71 + | /* Ec2QueryParserGenerator.kt:35 */
|
52 72 | if !(start_el.matches("SimpleScalarXmlPropertiesResponse")) {
|
53 73 | return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
|
54 74 | "invalid root, expected SimpleScalarXmlPropertiesResponse got {:?}",
|
55 75 | start_el
|
56 76 | )));
|
57 77 | }
|
78 + | /* XmlBindingTraitParserGenerator.kt:352 */
|
58 79 | while let Some(mut tag) = decoder.next_tag() {
|
80 + | /* XmlBindingTraitParserGenerator.kt:353 */
|
59 81 | match tag.start_el() {
|
60 - | s if s.matches("stringValue") /* stringValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$stringValue */ => {
|
61 - | let var_1 =
|
62 - | Some(
|
63 - | Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
64 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
65 - | .into()
|
66 - | )
|
67 - | ?
|
68 - | )
|
69 - | ;
|
70 - | builder = builder.set_string_value(var_1);
|
71 - | }
|
82 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("stringValue") /* stringValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$stringValue */ => {
|
83 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_1 =
|
84 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
85 + | /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
86 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
87 + | /* XmlBindingTraitParserGenerator.kt:748 */.into()
|
88 + | /* XmlBindingTraitParserGenerator.kt:729 */)
|
89 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
90 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
91 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
92 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_string_value(var_1);
|
93 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
72 94 | ,
|
73 - | s if s.matches("emptyStringValue") /* emptyStringValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$emptyStringValue */ => {
|
74 - | let var_2 =
|
75 - | Some(
|
76 - | Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
77 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
78 - | .into()
|
79 - | )
|
80 - | ?
|
81 - | )
|
82 - | ;
|
83 - | builder = builder.set_empty_string_value(var_2);
|
84 - | }
|
95 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("emptyStringValue") /* emptyStringValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$emptyStringValue */ => {
|
96 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_2 =
|
97 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
98 + | /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
99 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
100 + | /* XmlBindingTraitParserGenerator.kt:748 */.into()
|
101 + | /* XmlBindingTraitParserGenerator.kt:729 */)
|
102 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
103 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
104 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
105 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_empty_string_value(var_2);
|
106 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
85 107 | ,
|
86 - | s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$trueBooleanValue */ => {
|
87 - | let var_3 =
|
88 - | Some(
|
89 - | {
|
90 - | <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
91 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
92 - | )
|
93 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
94 - | }
|
95 - | ?
|
96 - | )
|
97 - | ;
|
98 - | builder = builder.set_true_boolean_value(var_3);
|
99 - | }
|
108 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("trueBooleanValue") /* trueBooleanValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$trueBooleanValue */ => {
|
109 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_3 =
|
110 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
111 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
112 + | /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
113 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
114 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
115 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
116 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
117 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
118 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
119 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
120 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_true_boolean_value(var_3);
|
121 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
100 122 | ,
|
101 - | s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$falseBooleanValue */ => {
|
102 - | let var_4 =
|
103 - | Some(
|
104 - | {
|
105 - | <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
106 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
107 - | )
|
108 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
109 - | }
|
110 - | ?
|
111 - | )
|
112 - | ;
|
113 - | builder = builder.set_false_boolean_value(var_4);
|
114 - | }
|
123 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("falseBooleanValue") /* falseBooleanValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$falseBooleanValue */ => {
|
124 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_4 =
|
125 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
126 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
127 + | /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
128 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
129 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
130 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
131 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
132 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
133 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
134 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
135 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_false_boolean_value(var_4);
|
136 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
115 137 | ,
|
116 - | s if s.matches("byteValue") /* byteValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$byteValue */ => {
|
117 - | let var_5 =
|
118 - | Some(
|
119 - | {
|
120 - | <i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
121 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
122 - | )
|
123 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
|
124 - | }
|
125 - | ?
|
126 - | )
|
127 - | ;
|
128 - | builder = builder.set_byte_value(var_5);
|
129 - | }
|
138 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("byteValue") /* byteValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$byteValue */ => {
|
139 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_5 =
|
140 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
141 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
142 + | /* XmlBindingTraitParserGenerator.kt:677 */<i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
143 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
144 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
145 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
|
146 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
147 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
148 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
149 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
150 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_byte_value(var_5);
|
151 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
130 152 | ,
|
131 - | s if s.matches("shortValue") /* shortValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$shortValue */ => {
|
132 - | let var_6 =
|
133 - | Some(
|
134 - | {
|
135 - | <i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
136 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
137 - | )
|
138 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
|
139 - | }
|
140 - | ?
|
141 - | )
|
142 - | ;
|
143 - | builder = builder.set_short_value(var_6);
|
144 - | }
|
153 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("shortValue") /* shortValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$shortValue */ => {
|
154 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_6 =
|
155 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
156 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
157 + | /* XmlBindingTraitParserGenerator.kt:677 */<i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
158 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
159 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
160 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
|
161 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
162 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
163 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
164 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
165 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_short_value(var_6);
|
166 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
145 167 | ,
|
146 - | s if s.matches("integerValue") /* integerValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$integerValue */ => {
|
147 - | let var_7 =
|
148 - | Some(
|
149 - | {
|
150 - | <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
151 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
152 - | )
|
153 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
|
154 - | }
|
155 - | ?
|
156 - | )
|
157 - | ;
|
158 - | builder = builder.set_integer_value(var_7);
|
159 - | }
|
168 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("integerValue") /* integerValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$integerValue */ => {
|
169 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_7 =
|
170 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
171 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
172 + | /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
173 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
174 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
175 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
|
176 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
177 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
178 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
179 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
180 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_integer_value(var_7);
|
181 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
160 182 | ,
|
161 - | s if s.matches("longValue") /* longValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$longValue */ => {
|
162 - | let var_8 =
|
163 - | Some(
|
164 - | {
|
165 - | <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
166 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
167 - | )
|
168 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
|
169 - | }
|
170 - | ?
|
171 - | )
|
172 - | ;
|
173 - | builder = builder.set_long_value(var_8);
|
174 - | }
|
183 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("longValue") /* longValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$longValue */ => {
|
184 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_8 =
|
185 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
186 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
187 + | /* XmlBindingTraitParserGenerator.kt:677 */<i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
188 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
189 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
190 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
|
191 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
192 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
193 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
194 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
195 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_long_value(var_8);
|
196 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
175 197 | ,
|
176 - | s if s.matches("floatValue") /* floatValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$floatValue */ => {
|
177 - | let var_9 =
|
178 - | Some(
|
179 - | {
|
180 - | <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
181 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
182 - | )
|
183 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
|
184 - | }
|
185 - | ?
|
186 - | )
|
187 - | ;
|
188 - | builder = builder.set_float_value(var_9);
|
189 - | }
|
198 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("floatValue") /* floatValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$floatValue */ => {
|
199 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_9 =
|
200 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
201 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
202 + | /* XmlBindingTraitParserGenerator.kt:677 */<f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
203 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
204 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
205 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
|
206 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
207 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
208 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
209 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
210 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_float_value(var_9);
|
211 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
190 212 | ,
|
191 - | s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$doubleValue */ => {
|
192 - | let var_10 =
|
193 - | Some(
|
194 - | {
|
195 - | <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
196 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
197 - | )
|
198 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
|
199 - | }
|
200 - | ?
|
201 - | )
|
202 - | ;
|
203 - | builder = builder.set_double_value(var_10);
|
204 - | }
|
213 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("DoubleDribble") /* doubleValue aws.protocoltests.ec2.synthetic#SimpleScalarXmlPropertiesOutput$doubleValue */ => {
|
214 + | /* XmlBindingTraitParserGenerator.kt:329 */let var_10 =
|
215 + | /* XmlBindingTraitParserGenerator.kt:372 */Some(
|
216 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
217 + | /* XmlBindingTraitParserGenerator.kt:677 */<f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
218 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
219 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
220 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
|
221 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
222 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
223 + | /* XmlBindingTraitParserGenerator.kt:372 */)
|
224 + | /* XmlBindingTraitParserGenerator.kt:329 */;
|
225 + | /* XmlBindingTraitParserGenerator.kt:336 */builder = builder.set_double_value(var_10);
|
226 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
205 227 | ,
|
206 - | _ => {}
|
207 - | }
|
228 + | /* XmlBindingTraitParserGenerator.kt:356 */_ => {}
|
229 + | /* XmlBindingTraitParserGenerator.kt:353 */}
|
230 + | /* XmlBindingTraitParserGenerator.kt:352 */
|
208 231 | }
|
232 + | /* XmlBindingTraitParserGenerator.kt:213 */
|
209 233 | Ok(builder)
|
234 + | /* XmlBindingTraitParserGenerator.kt:189 */
|
210 235 | }
|