1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* XmlBindingTraitParserGenerator.kt:439 */
|
2 3 | pub fn de_xml_union_shape(
|
3 4 | decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
|
4 5 | ) -> ::std::result::Result<crate::types::XmlUnionShape, ::aws_smithy_xml::decode::XmlDecodeError> {
|
6 + | /* XmlBindingTraitParserGenerator.kt:444 */
|
5 7 | let mut base: Option<crate::types::XmlUnionShape> = None;
|
8 + | /* XmlBindingTraitParserGenerator.kt:352 */
|
6 9 | while let Some(mut tag) = decoder.next_tag() {
|
10 + | /* XmlBindingTraitParserGenerator.kt:353 */
|
7 11 | match tag.start_el() {
|
8 - | s if s.matches("stringValue") /* stringValue aws.protocoltests.restxml#XmlUnionShape$stringValue */ => {
|
9 - | let tmp =
|
10 - | Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
11 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
12 - | .into()
|
13 - | )
|
14 - | ?
|
15 - | ;
|
16 - | base = Some(crate::types::XmlUnionShape::StringValue(tmp));
|
17 - | }
|
12 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("stringValue") /* stringValue aws.protocoltests.restxml#XmlUnionShape$stringValue */ => {
|
13 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
14 + | /* XmlBindingTraitParserGenerator.kt:729 */Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
|
15 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
16 + | /* XmlBindingTraitParserGenerator.kt:748 */.into()
|
17 + | /* XmlBindingTraitParserGenerator.kt:729 */)
|
18 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
19 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
20 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::StringValue(tmp));
|
21 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
18 22 | ,
|
19 - | s if s.matches("booleanValue") /* booleanValue aws.protocoltests.restxml#XmlUnionShape$booleanValue */ => {
|
20 - | let tmp =
|
21 - | {
|
22 - | <bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
23 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
24 - | )
|
25 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
26 - | }
|
27 - | ?
|
28 - | ;
|
29 - | base = Some(crate::types::XmlUnionShape::BooleanValue(tmp));
|
30 - | }
|
23 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("booleanValue") /* booleanValue aws.protocoltests.restxml#XmlUnionShape$booleanValue */ => {
|
24 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
25 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
26 + | /* XmlBindingTraitParserGenerator.kt:677 */<bool as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
27 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
28 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
29 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (boolean: `smithy.api#Boolean`)"))
|
30 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
31 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
32 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
33 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::BooleanValue(tmp));
|
34 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
31 35 | ,
|
32 - | s if s.matches("byteValue") /* byteValue aws.protocoltests.restxml#XmlUnionShape$byteValue */ => {
|
33 - | let tmp =
|
34 - | {
|
35 - | <i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
36 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
37 - | )
|
38 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
|
39 - | }
|
40 - | ?
|
41 - | ;
|
42 - | base = Some(crate::types::XmlUnionShape::ByteValue(tmp));
|
43 - | }
|
36 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("byteValue") /* byteValue aws.protocoltests.restxml#XmlUnionShape$byteValue */ => {
|
37 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
38 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
39 + | /* XmlBindingTraitParserGenerator.kt:677 */<i8 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
40 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
41 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
42 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (byte: `smithy.api#Byte`)"))
|
43 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
44 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
45 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
46 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::ByteValue(tmp));
|
47 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
44 48 | ,
|
45 - | s if s.matches("shortValue") /* shortValue aws.protocoltests.restxml#XmlUnionShape$shortValue */ => {
|
46 - | let tmp =
|
47 - | {
|
48 - | <i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
49 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
50 - | )
|
51 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
|
52 - | }
|
53 - | ?
|
54 - | ;
|
55 - | base = Some(crate::types::XmlUnionShape::ShortValue(tmp));
|
56 - | }
|
49 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("shortValue") /* shortValue aws.protocoltests.restxml#XmlUnionShape$shortValue */ => {
|
50 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
51 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
52 + | /* XmlBindingTraitParserGenerator.kt:677 */<i16 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
53 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
54 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
55 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (short: `smithy.api#Short`)"))
|
56 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
57 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
58 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
59 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::ShortValue(tmp));
|
60 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
57 61 | ,
|
58 - | s if s.matches("integerValue") /* integerValue aws.protocoltests.restxml#XmlUnionShape$integerValue */ => {
|
59 - | let tmp =
|
60 - | {
|
61 - | <i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
62 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
63 - | )
|
64 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
|
65 - | }
|
66 - | ?
|
67 - | ;
|
68 - | base = Some(crate::types::XmlUnionShape::IntegerValue(tmp));
|
69 - | }
|
62 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("integerValue") /* integerValue aws.protocoltests.restxml#XmlUnionShape$integerValue */ => {
|
63 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
64 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
65 + | /* XmlBindingTraitParserGenerator.kt:677 */<i32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
66 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
67 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
68 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `smithy.api#Integer`)"))
|
69 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
70 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
71 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
72 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::IntegerValue(tmp));
|
73 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
70 74 | ,
|
71 - | s if s.matches("longValue") /* longValue aws.protocoltests.restxml#XmlUnionShape$longValue */ => {
|
72 - | let tmp =
|
73 - | {
|
74 - | <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
75 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
76 - | )
|
77 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
|
78 - | }
|
79 - | ?
|
80 - | ;
|
81 - | base = Some(crate::types::XmlUnionShape::LongValue(tmp));
|
82 - | }
|
75 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("longValue") /* longValue aws.protocoltests.restxml#XmlUnionShape$longValue */ => {
|
76 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
77 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
78 + | /* XmlBindingTraitParserGenerator.kt:677 */<i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
79 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
80 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
81 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `smithy.api#Long`)"))
|
82 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
83 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
84 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
85 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::LongValue(tmp));
|
86 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
83 87 | ,
|
84 - | s if s.matches("floatValue") /* floatValue aws.protocoltests.restxml#XmlUnionShape$floatValue */ => {
|
85 - | let tmp =
|
86 - | {
|
87 - | <f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
88 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
89 - | )
|
90 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
|
91 - | }
|
92 - | ?
|
93 - | ;
|
94 - | base = Some(crate::types::XmlUnionShape::FloatValue(tmp));
|
95 - | }
|
88 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("floatValue") /* floatValue aws.protocoltests.restxml#XmlUnionShape$floatValue */ => {
|
89 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
90 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
91 + | /* XmlBindingTraitParserGenerator.kt:677 */<f32 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
92 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
93 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
94 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (float: `smithy.api#Float`)"))
|
95 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
96 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
97 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
98 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::FloatValue(tmp));
|
99 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
96 100 | ,
|
97 - | s if s.matches("doubleValue") /* doubleValue aws.protocoltests.restxml#XmlUnionShape$doubleValue */ => {
|
98 - | let tmp =
|
99 - | {
|
100 - | <f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
101 - | ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
102 - | )
|
103 - | .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
|
104 - | }
|
105 - | ?
|
106 - | ;
|
107 - | base = Some(crate::types::XmlUnionShape::DoubleValue(tmp));
|
108 - | }
|
101 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("doubleValue") /* doubleValue aws.protocoltests.restxml#XmlUnionShape$doubleValue */ => {
|
102 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
103 + | /* XmlBindingTraitParserGenerator.kt:676 */ {
|
104 + | /* XmlBindingTraitParserGenerator.kt:677 */<f64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
|
105 + | /* XmlBindingTraitParserGenerator.kt:377 */::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
|
106 + | /* XmlBindingTraitParserGenerator.kt:677 */)
|
107 + | /* XmlBindingTraitParserGenerator.kt:685 */.map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `smithy.api#Double`)"))
|
108 + | /* XmlBindingTraitParserGenerator.kt:676 */}
|
109 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
110 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
111 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::DoubleValue(tmp));
|
112 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
109 113 | ,
|
110 - | s if s.matches("unionValue") /* unionValue aws.protocoltests.restxml#XmlUnionShape$unionValue */ => {
|
111 - | let tmp =
|
112 - | Box::new(
|
113 - | crate::protocol_serde::shape_xml_union_shape::de_xml_union_shape(&mut tag)
|
114 - | ?
|
115 - | )
|
116 - | ;
|
117 - | base = Some(crate::types::XmlUnionShape::UnionValue(tmp));
|
118 - | }
|
114 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("unionValue") /* unionValue aws.protocoltests.restxml#XmlUnionShape$unionValue */ => {
|
115 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
116 + | /* XmlBindingTraitParserGenerator.kt:373 */Box::new(
|
117 + | /* XmlBindingTraitParserGenerator.kt:482 */crate::protocol_serde::shape_xml_union_shape::de_xml_union_shape(&mut tag)
|
118 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
119 + | /* XmlBindingTraitParserGenerator.kt:373 */)
|
120 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
121 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::UnionValue(tmp));
|
122 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
119 123 | ,
|
120 - | s if s.matches("structValue") /* structValue aws.protocoltests.restxml#XmlUnionShape$structValue */ => {
|
121 - | let tmp =
|
122 - | crate::protocol_serde::shape_xml_nested_union_struct::de_xml_nested_union_struct(&mut tag)
|
123 - | ?
|
124 - | ;
|
125 - | base = Some(crate::types::XmlUnionShape::StructValue(tmp));
|
126 - | }
|
124 + | /* XmlBindingTraitParserGenerator.kt:492 */s if s.matches("structValue") /* structValue aws.protocoltests.restxml#XmlUnionShape$structValue */ => {
|
125 + | /* XmlBindingTraitParserGenerator.kt:460 */let tmp =
|
126 + | /* XmlBindingTraitParserGenerator.kt:536 */crate::protocol_serde::shape_xml_nested_union_struct::de_xml_nested_union_struct(&mut tag)
|
127 + | /* XmlBindingTraitParserGenerator.kt:402 */?
|
128 + | /* XmlBindingTraitParserGenerator.kt:460 */;
|
129 + | /* XmlBindingTraitParserGenerator.kt:463 */base = Some(crate::types::XmlUnionShape::StructValue(tmp));
|
130 + | /* XmlBindingTraitParserGenerator.kt:492 */}
|
127 131 | ,
|
128 - | _unknown => base = Some(crate::types::XmlUnionShape::Unknown),
|
129 - | }
|
132 + | /* XmlBindingTraitParserGenerator.kt:468 */_unknown => base = Some(crate::types::XmlUnionShape::Unknown),
|
133 + | /* XmlBindingTraitParserGenerator.kt:353 */}
|
134 + | /* XmlBindingTraitParserGenerator.kt:352 */
|
130 135 | }
|
136 + | /* XmlBindingTraitParserGenerator.kt:476 */
|
131 137 | base.ok_or_else(|| ::aws_smithy_xml::decode::XmlDecodeError::custom("expected union, got nothing"))
|
138 + | /* XmlBindingTraitParserGenerator.kt:439 */
|
132 139 | }
|
133 140 |
|
141 + | /* XmlBindingTraitSerializerGenerator.kt:450 */
|
134 142 | pub fn ser_xml_union_shape(
|
135 143 | input: &crate::types::XmlUnionShape,
|
136 144 | writer: ::aws_smithy_xml::encode::ElWriter,
|
137 145 | ) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
|
146 + | /* XmlBindingTraitSerializerGenerator.kt:455 */
|
138 147 | let mut scope_writer = writer.finish();
|
148 + | /* XmlBindingTraitSerializerGenerator.kt:456 */
|
139 149 | match input {
|
140 - | crate::types::XmlUnionShape::StringValue(inner) => {
|
150 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
151 + | crate::types::XmlUnionShape::StringValue(inner) =>
|
152 + | /* SerializerUtil.kt:42 */
|
153 + | {
|
154 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
141 155 | let mut inner_writer = scope_writer.start_el("stringValue").finish();
|
142 - | inner_writer.data(inner.as_str());
|
156 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
157 + | inner_writer.data(
|
158 + | /* XmlBindingTraitSerializerGenerator.kt:321 */ inner.as_str(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
159 + | );
|
160 + | /* SerializerUtil.kt:42 */
|
143 161 | }
|
144 - | crate::types::XmlUnionShape::BooleanValue(inner) => {
|
162 + | ,
|
163 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
164 + | crate::types::XmlUnionShape::BooleanValue(inner) =>
|
165 + | /* SerializerUtil.kt:42 */
|
166 + | {
|
167 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
145 168 | let mut inner_writer = scope_writer.start_el("booleanValue").finish();
|
146 - | inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*inner).encode());
|
169 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
170 + | inner_writer.data(
|
171 + | /* XmlBindingTraitSerializerGenerator.kt:325 */
|
172 + | ::aws_smithy_types::primitive::Encoder::from(*inner).encode(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
173 + | );
|
174 + | /* SerializerUtil.kt:42 */
|
147 175 | }
|
148 - | crate::types::XmlUnionShape::ByteValue(inner) => {
|
176 + | ,
|
177 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
178 + | crate::types::XmlUnionShape::ByteValue(inner) =>
|
179 + | /* SerializerUtil.kt:42 */
|
180 + | {
|
181 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
149 182 | let mut inner_writer = scope_writer.start_el("byteValue").finish();
|
150 - | inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*inner).encode());
|
183 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
184 + | inner_writer.data(
|
185 + | /* XmlBindingTraitSerializerGenerator.kt:325 */
|
186 + | ::aws_smithy_types::primitive::Encoder::from(*inner).encode(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
187 + | );
|
188 + | /* SerializerUtil.kt:42 */
|
151 189 | }
|
152 - | crate::types::XmlUnionShape::ShortValue(inner) => {
|
190 + | ,
|
191 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
192 + | crate::types::XmlUnionShape::ShortValue(inner) =>
|
193 + | /* SerializerUtil.kt:42 */
|
194 + | {
|
195 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
153 196 | let mut inner_writer = scope_writer.start_el("shortValue").finish();
|
154 - | inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*inner).encode());
|
197 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
198 + | inner_writer.data(
|
199 + | /* XmlBindingTraitSerializerGenerator.kt:325 */
|
200 + | ::aws_smithy_types::primitive::Encoder::from(*inner).encode(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
201 + | );
|
202 + | /* SerializerUtil.kt:42 */
|
155 203 | }
|
156 - | crate::types::XmlUnionShape::IntegerValue(inner) => {
|
204 + | ,
|
205 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
206 + | crate::types::XmlUnionShape::IntegerValue(inner) =>
|
207 + | /* SerializerUtil.kt:42 */
|
208 + | {
|
209 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
157 210 | let mut inner_writer = scope_writer.start_el("integerValue").finish();
|
158 - | inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*inner).encode());
|
211 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
212 + | inner_writer.data(
|
213 + | /* XmlBindingTraitSerializerGenerator.kt:325 */
|
214 + | ::aws_smithy_types::primitive::Encoder::from(*inner).encode(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
215 + | );
|
216 + | /* SerializerUtil.kt:42 */
|
159 217 | }
|
160 - | crate::types::XmlUnionShape::LongValue(inner) => {
|
218 + | ,
|
219 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
220 + | crate::types::XmlUnionShape::LongValue(inner) =>
|
221 + | /* SerializerUtil.kt:42 */
|
222 + | {
|
223 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
161 224 | let mut inner_writer = scope_writer.start_el("longValue").finish();
|
162 - | inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*inner).encode());
|
225 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
226 + | inner_writer.data(
|
227 + | /* XmlBindingTraitSerializerGenerator.kt:325 */
|
228 + | ::aws_smithy_types::primitive::Encoder::from(*inner).encode(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
229 + | );
|
230 + | /* SerializerUtil.kt:42 */
|
163 231 | }
|
164 - | crate::types::XmlUnionShape::FloatValue(inner) => {
|
232 + | ,
|
233 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
234 + | crate::types::XmlUnionShape::FloatValue(inner) =>
|
235 + | /* SerializerUtil.kt:42 */
|
236 + | {
|
237 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
165 238 | let mut inner_writer = scope_writer.start_el("floatValue").finish();
|
166 - | inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*inner).encode());
|
239 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
240 + | inner_writer.data(
|
241 + | /* XmlBindingTraitSerializerGenerator.kt:325 */
|
242 + | ::aws_smithy_types::primitive::Encoder::from(*inner).encode(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
243 + | );
|
244 + | /* SerializerUtil.kt:42 */
|
167 245 | }
|
168 - | crate::types::XmlUnionShape::DoubleValue(inner) => {
|
246 + | ,
|
247 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
248 + | crate::types::XmlUnionShape::DoubleValue(inner) =>
|
249 + | /* SerializerUtil.kt:42 */
|
250 + | {
|
251 + | /* XmlBindingTraitSerializerGenerator.kt:359 */
|
169 252 | let mut inner_writer = scope_writer.start_el("doubleValue").finish();
|
170 - | inner_writer.data(::aws_smithy_types::primitive::Encoder::from(*inner).encode());
|
253 + | /* XmlBindingTraitSerializerGenerator.kt:360 */
|
254 + | inner_writer.data(
|
255 + | /* XmlBindingTraitSerializerGenerator.kt:325 */
|
256 + | ::aws_smithy_types::primitive::Encoder::from(*inner).encode(), /* XmlBindingTraitSerializerGenerator.kt:360 */
|
257 + | );
|
258 + | /* SerializerUtil.kt:42 */
|
171 259 | }
|
172 - | crate::types::XmlUnionShape::UnionValue(inner) => {
|
260 + | ,
|
261 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
262 + | crate::types::XmlUnionShape::UnionValue(inner) =>
|
263 + | /* SerializerUtil.kt:42 */
|
264 + | {
|
265 + | /* XmlBindingTraitSerializerGenerator.kt:409 */
|
173 266 | let inner_writer = scope_writer.start_el("unionValue");
|
267 + | /* XmlBindingTraitSerializerGenerator.kt:481 */
|
174 268 | crate::protocol_serde::shape_xml_union_shape::ser_xml_union_shape(inner, inner_writer)?
|
269 + | /* SerializerUtil.kt:42 */
|
175 270 | }
|
176 - | crate::types::XmlUnionShape::StructValue(inner) => {
|
271 + | ,
|
272 + | /* XmlBindingTraitSerializerGenerator.kt:465 */
|
273 + | crate::types::XmlUnionShape::StructValue(inner) =>
|
274 + | /* SerializerUtil.kt:42 */
|
275 + | {
|
276 + | /* XmlBindingTraitSerializerGenerator.kt:399 */
|
177 277 | let inner_writer = scope_writer.start_el("structValue");
|
278 + | /* XmlBindingTraitSerializerGenerator.kt:440 */
|
178 279 | crate::protocol_serde::shape_xml_nested_union_struct::ser_xml_nested_union_struct(inner, inner_writer)?
|
280 + | /* SerializerUtil.kt:42 */
|
179 281 | }
|
282 + | ,
|
283 + | /* XmlBindingTraitSerializerGenerator.kt:471 */
|
180 284 | crate::types::XmlUnionShape::Unknown => {
|
181 285 | return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("XmlUnionShape"))
|
182 - | }
|
286 + | } /* XmlBindingTraitSerializerGenerator.kt:456 */
|
183 287 | }
|
288 + | /* XmlBindingTraitSerializerGenerator.kt:478 */
|
184 289 | Ok(())
|
290 + | /* XmlBindingTraitSerializerGenerator.kt:450 */
|
185 291 | }
|