131 131 | "aws.protocoltests.restxml.synthetic",
|
132 132 | "XmlEmptyListsInput",
|
133 133 | );
|
134 134 | static XMLEMPTYLISTSINPUT_MEMBER_STRING_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
135 135 | ::aws_smithy_schema::ShapeId::from_static(
|
136 136 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$stringList",
|
137 137 | "aws.protocoltests.restxml.synthetic",
|
138 138 | "XmlEmptyListsInput",
|
139 139 | ),
|
140 140 | ::aws_smithy_schema::ShapeType::List,
|
141 - | "string_list",
|
141 + | "stringList",
|
142 142 | 0,
|
143 143 | );
|
144 144 | static XMLEMPTYLISTSINPUT_MEMBER_STRING_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
145 145 | ::aws_smithy_schema::ShapeId::from_static(
|
146 146 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$stringSet",
|
147 147 | "aws.protocoltests.restxml.synthetic",
|
148 148 | "XmlEmptyListsInput",
|
149 149 | ),
|
150 150 | ::aws_smithy_schema::ShapeType::List,
|
151 - | "string_set",
|
151 + | "stringSet",
|
152 152 | 1,
|
153 153 | );
|
154 154 | static XMLEMPTYLISTSINPUT_MEMBER_INTEGER_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
155 155 | ::aws_smithy_schema::ShapeId::from_static(
|
156 156 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$integerList",
|
157 157 | "aws.protocoltests.restxml.synthetic",
|
158 158 | "XmlEmptyListsInput",
|
159 159 | ),
|
160 160 | ::aws_smithy_schema::ShapeType::List,
|
161 - | "integer_list",
|
161 + | "integerList",
|
162 162 | 2,
|
163 163 | );
|
164 164 | static XMLEMPTYLISTSINPUT_MEMBER_BOOLEAN_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
165 165 | ::aws_smithy_schema::ShapeId::from_static(
|
166 166 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$booleanList",
|
167 167 | "aws.protocoltests.restxml.synthetic",
|
168 168 | "XmlEmptyListsInput",
|
169 169 | ),
|
170 170 | ::aws_smithy_schema::ShapeType::List,
|
171 - | "boolean_list",
|
171 + | "booleanList",
|
172 172 | 3,
|
173 173 | );
|
174 174 | static XMLEMPTYLISTSINPUT_MEMBER_TIMESTAMP_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
175 175 | ::aws_smithy_schema::ShapeId::from_static(
|
176 176 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$timestampList",
|
177 177 | "aws.protocoltests.restxml.synthetic",
|
178 178 | "XmlEmptyListsInput",
|
179 179 | ),
|
180 180 | ::aws_smithy_schema::ShapeType::List,
|
181 - | "timestamp_list",
|
181 + | "timestampList",
|
182 182 | 4,
|
183 183 | );
|
184 184 | static XMLEMPTYLISTSINPUT_MEMBER_ENUM_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
185 185 | ::aws_smithy_schema::ShapeId::from_static(
|
186 186 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$enumList",
|
187 187 | "aws.protocoltests.restxml.synthetic",
|
188 188 | "XmlEmptyListsInput",
|
189 189 | ),
|
190 190 | ::aws_smithy_schema::ShapeType::List,
|
191 - | "enum_list",
|
191 + | "enumList",
|
192 192 | 5,
|
193 193 | );
|
194 194 | static XMLEMPTYLISTSINPUT_MEMBER_INT_ENUM_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
195 195 | ::aws_smithy_schema::ShapeId::from_static(
|
196 196 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$intEnumList",
|
197 197 | "aws.protocoltests.restxml.synthetic",
|
198 198 | "XmlEmptyListsInput",
|
199 199 | ),
|
200 200 | ::aws_smithy_schema::ShapeType::List,
|
201 - | "int_enum_list",
|
201 + | "intEnumList",
|
202 202 | 6,
|
203 203 | );
|
204 204 | static XMLEMPTYLISTSINPUT_MEMBER_NESTED_STRING_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
205 205 | ::aws_smithy_schema::ShapeId::from_static(
|
206 206 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$nestedStringList",
|
207 207 | "aws.protocoltests.restxml.synthetic",
|
208 208 | "XmlEmptyListsInput",
|
209 209 | ),
|
210 210 | ::aws_smithy_schema::ShapeType::List,
|
211 - | "nested_string_list",
|
211 + | "nestedStringList",
|
212 212 | 7,
|
213 213 | );
|
214 214 | static XMLEMPTYLISTSINPUT_MEMBER_RENAMED_LIST_MEMBERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
215 215 | ::aws_smithy_schema::ShapeId::from_static(
|
216 216 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$renamedListMembers",
|
217 217 | "aws.protocoltests.restxml.synthetic",
|
218 218 | "XmlEmptyListsInput",
|
219 219 | ),
|
220 220 | ::aws_smithy_schema::ShapeType::List,
|
221 - | "renamed_list_members",
|
221 + | "renamedListMembers",
|
222 222 | 8,
|
223 223 | )
|
224 224 | .with_xml_name("renamed");
|
225 225 | static XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
226 226 | ::aws_smithy_schema::ShapeId::from_static(
|
227 227 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$flattenedList",
|
228 228 | "aws.protocoltests.restxml.synthetic",
|
229 229 | "XmlEmptyListsInput",
|
230 230 | ),
|
231 231 | ::aws_smithy_schema::ShapeType::List,
|
232 - | "flattened_list",
|
232 + | "flattenedList",
|
233 233 | 9,
|
234 234 | )
|
235 235 | .with_xml_flattened();
|
236 236 | static XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST2: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
237 237 | ::aws_smithy_schema::ShapeId::from_static(
|
238 238 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$flattenedList2",
|
239 239 | "aws.protocoltests.restxml.synthetic",
|
240 240 | "XmlEmptyListsInput",
|
241 241 | ),
|
242 242 | ::aws_smithy_schema::ShapeType::List,
|
243 - | "flattened_list2",
|
243 + | "flattenedList2",
|
244 244 | 10,
|
245 245 | )
|
246 246 | .with_xml_name("customName")
|
247 247 | .with_xml_flattened();
|
248 248 | static XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST_WITH_MEMBER_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
249 249 | ::aws_smithy_schema::ShapeId::from_static(
|
250 250 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$flattenedListWithMemberNamespace",
|
251 251 | "aws.protocoltests.restxml.synthetic",
|
252 252 | "XmlEmptyListsInput",
|
253 253 | ),
|
254 254 | ::aws_smithy_schema::ShapeType::List,
|
255 - | "flattened_list_with_member_namespace",
|
255 + | "flattenedListWithMemberNamespace",
|
256 256 | 11,
|
257 257 | )
|
258 258 | .with_xml_flattened();
|
259 259 | static XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST_WITH_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
260 260 | ::aws_smithy_schema::ShapeId::from_static(
|
261 261 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$flattenedListWithNamespace",
|
262 262 | "aws.protocoltests.restxml.synthetic",
|
263 263 | "XmlEmptyListsInput",
|
264 264 | ),
|
265 265 | ::aws_smithy_schema::ShapeType::List,
|
266 - | "flattened_list_with_namespace",
|
266 + | "flattenedListWithNamespace",
|
267 267 | 12,
|
268 268 | )
|
269 269 | .with_xml_flattened();
|
270 270 | static XMLEMPTYLISTSINPUT_MEMBER_STRUCTURE_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
271 271 | ::aws_smithy_schema::ShapeId::from_static(
|
272 272 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$structureList",
|
273 273 | "aws.protocoltests.restxml.synthetic",
|
274 274 | "XmlEmptyListsInput",
|
275 275 | ),
|
276 276 | ::aws_smithy_schema::ShapeType::List,
|
277 - | "structure_list",
|
277 + | "structureList",
|
278 278 | 13,
|
279 279 | )
|
280 280 | .with_xml_name("myStructureList");
|
281 281 | static XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_STRUCTURE_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
282 282 | ::aws_smithy_schema::ShapeId::from_static(
|
283 283 | "aws.protocoltests.restxml.synthetic#XmlEmptyListsInput$flattenedStructureList",
|
284 284 | "aws.protocoltests.restxml.synthetic",
|
285 285 | "XmlEmptyListsInput",
|
286 286 | ),
|
287 287 | ::aws_smithy_schema::ShapeType::List,
|
288 - | "flattened_structure_list",
|
288 + | "flattenedStructureList",
|
289 289 | 14,
|
290 290 | )
|
291 291 | .with_xml_flattened();
|
292 292 | static XMLEMPTYLISTSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
293 293 | XMLEMPTYLISTSINPUT_SCHEMA_ID,
|
294 294 | ::aws_smithy_schema::ShapeType::Structure,
|
295 295 | &[
|
296 296 | &XMLEMPTYLISTSINPUT_MEMBER_STRING_LIST,
|
297 297 | &XMLEMPTYLISTSINPUT_MEMBER_STRING_SET,
|
298 298 | &XMLEMPTYLISTSINPUT_MEMBER_INTEGER_LIST,
|
299 299 | &XMLEMPTYLISTSINPUT_MEMBER_BOOLEAN_LIST,
|
300 300 | &XMLEMPTYLISTSINPUT_MEMBER_TIMESTAMP_LIST,
|
301 301 | &XMLEMPTYLISTSINPUT_MEMBER_ENUM_LIST,
|
302 302 | &XMLEMPTYLISTSINPUT_MEMBER_INT_ENUM_LIST,
|
303 303 | &XMLEMPTYLISTSINPUT_MEMBER_NESTED_STRING_LIST,
|
304 304 | &XMLEMPTYLISTSINPUT_MEMBER_RENAMED_LIST_MEMBERS,
|
305 305 | &XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST,
|
306 306 | &XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST2,
|
307 307 | &XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST_WITH_MEMBER_NAMESPACE,
|
308 308 | &XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_LIST_WITH_NAMESPACE,
|
309 309 | &XMLEMPTYLISTSINPUT_MEMBER_STRUCTURE_LIST,
|
310 310 | &XMLEMPTYLISTSINPUT_MEMBER_FLATTENED_STRUCTURE_LIST,
|
311 311 | ],
|
312 - | );
|
312 + | )
|
313 + | .with_http(aws_smithy_schema::traits::HttpTrait::new("PUT", "/XmlEmptyLists", None));
|
313 314 | impl XmlEmptyListsInput {
|
314 315 | /// The schema for this shape.
|
315 316 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &XMLEMPTYLISTSINPUT_SCHEMA;
|
316 317 | }
|
317 318 | impl ::aws_smithy_schema::serde::SerializableStruct for XmlEmptyListsInput {
|
318 319 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
319 320 | fn serialize_members(
|
320 321 | &self,
|
321 322 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
322 323 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
483 492 | }
|
484 493 | Ok(())
|
485 494 | },
|
486 495 | )?;
|
487 496 | }
|
488 497 | Ok(())
|
489 498 | }
|
490 499 | }
|
491 500 | impl XmlEmptyListsInput {
|
492 501 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
493 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
494 - | deserializer: &mut D,
|
502 + | pub fn deserialize(
|
503 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
495 504 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
496 505 | #[allow(unused_variables, unused_mut)]
|
497 506 | let mut builder = Self::builder();
|
498 507 | #[allow(
|
499 508 | unused_variables,
|
500 509 | unreachable_code,
|
501 510 | clippy::single_match,
|
502 511 | clippy::match_single_binding,
|
503 512 | clippy::diverging_sub_expression
|
504 513 | )]
|
505 - | deserializer.read_struct(&XMLEMPTYLISTSINPUT_SCHEMA, (), |_, member, deser| {
|
514 + | deserializer.read_struct(&XMLEMPTYLISTSINPUT_SCHEMA, &mut |member, deser| {
|
506 515 | match member.member_index() {
|
507 516 | Some(0) => {
|
508 - | builder.string_list = Some({
|
509 - | let container = if let Some(cap) = deser.container_size() {
|
510 - | Vec::with_capacity(cap)
|
511 - | } else {
|
512 - | Vec::new()
|
513 - | };
|
514 - | deser.read_list(member, container, |mut list, deser| {
|
515 - | list.push(deser.read_string(member)?);
|
516 - | Ok(list)
|
517 - | })?
|
518 - | });
|
517 + | builder.string_list = Some(deser.read_string_list(member)?);
|
519 518 | }
|
520 519 | Some(1) => {
|
521 - | builder.string_set = Some({
|
522 - | let container = if let Some(cap) = deser.container_size() {
|
523 - | Vec::with_capacity(cap)
|
524 - | } else {
|
525 - | Vec::new()
|
526 - | };
|
527 - | deser.read_list(member, container, |mut list, deser| {
|
528 - | list.push(deser.read_string(member)?);
|
529 - | Ok(list)
|
530 - | })?
|
531 - | });
|
520 + | builder.string_set = Some(deser.read_string_list(member)?);
|
532 521 | }
|
533 522 | Some(2) => {
|
534 - | builder.integer_list = Some({
|
535 - | let container = if let Some(cap) = deser.container_size() {
|
536 - | Vec::with_capacity(cap)
|
537 - | } else {
|
538 - | Vec::new()
|
539 - | };
|
540 - | deser.read_list(member, container, |mut list, deser| {
|
541 - | list.push(deser.read_integer(member)?);
|
542 - | Ok(list)
|
543 - | })?
|
544 - | });
|
523 + | builder.integer_list = Some(deser.read_integer_list(member)?);
|
545 524 | }
|
546 525 | Some(3) => {
|
547 526 | builder.boolean_list = Some({
|
548 - | let container = if let Some(cap) = deser.container_size() {
|
549 - | Vec::with_capacity(cap)
|
550 - | } else {
|
551 - | Vec::new()
|
552 - | };
|
553 - | deser.read_list(member, container, |mut list, deser| {
|
554 - | list.push(deser.read_boolean(member)?);
|
555 - | Ok(list)
|
556 - | })?
|
527 + | let mut container = Vec::new();
|
528 + | deser.read_list(member, &mut |deser| {
|
529 + | container.push(deser.read_boolean(member)?);
|
530 + | Ok(())
|
531 + | })?;
|
532 + | container
|
557 533 | });
|
558 534 | }
|
559 535 | Some(4) => {
|
560 536 | builder.timestamp_list = Some({
|
561 - | let container = if let Some(cap) = deser.container_size() {
|
562 - | Vec::with_capacity(cap)
|
563 - | } else {
|
564 - | Vec::new()
|
565 - | };
|
566 - | deser.read_list(member, container, |mut list, deser| {
|
567 - | list.push(deser.read_timestamp(member)?);
|
568 - | Ok(list)
|
569 - | })?
|
537 + | let mut container = Vec::new();
|
538 + | deser.read_list(member, &mut |deser| {
|
539 + | container.push(deser.read_timestamp(member)?);
|
540 + | Ok(())
|
541 + | })?;
|
542 + | container
|
570 543 | });
|
571 544 | }
|
572 545 | Some(5) => {
|
573 546 | builder.enum_list = Some({
|
574 - | let container = if let Some(cap) = deser.container_size() {
|
575 - | Vec::with_capacity(cap)
|
576 - | } else {
|
577 - | Vec::new()
|
578 - | };
|
579 - | deser.read_list(member, container, |mut list, deser| {
|
580 - | list.push(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
581 - | Ok(list)
|
582 - | })?
|
547 + | let mut container = Vec::new();
|
548 + | deser.read_list(member, &mut |deser| {
|
549 + | container.push(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
550 + | Ok(())
|
551 + | })?;
|
552 + | container
|
583 553 | });
|
584 554 | }
|
585 555 | Some(6) => {
|
586 - | builder.int_enum_list = Some({
|
587 - | let container = if let Some(cap) = deser.container_size() {
|
588 - | Vec::with_capacity(cap)
|
589 - | } else {
|
590 - | Vec::new()
|
591 - | };
|
592 - | deser.read_list(member, container, |mut list, deser| {
|
593 - | list.push(deser.read_integer(member)?);
|
594 - | Ok(list)
|
595 - | })?
|
596 - | });
|
556 + | builder.int_enum_list = Some(deser.read_integer_list(member)?);
|
597 557 | }
|
598 558 | Some(7) => {
|
599 559 | builder.nested_string_list = Some({
|
600 - | let container = if let Some(cap) = deser.container_size() {
|
601 - | Vec::with_capacity(cap)
|
602 - | } else {
|
603 - | Vec::new()
|
604 - | };
|
605 - | deser.read_list(member, container, |mut list, deser| {
|
606 - | list.push(todo!("deserialize nested aggregate"));
|
607 - | Ok(list)
|
608 - | })?
|
560 + | let mut container = Vec::new();
|
561 + | deser.read_list(member, &mut |deser| {
|
562 + | container.push({
|
563 + | let mut list = Vec::new();
|
564 + | deser.read_list(member, &mut |deser| {
|
565 + | list.push(deser.read_string(&::aws_smithy_schema::prelude::DOCUMENT)?);
|
566 + | Ok(())
|
567 + | })?;
|
568 + | list
|
569 + | });
|
570 + | Ok(())
|
571 + | })?;
|
572 + | container
|
609 573 | });
|
610 574 | }
|
611 575 | Some(8) => {
|
612 - | builder.renamed_list_members = Some({
|
613 - | let container = if let Some(cap) = deser.container_size() {
|
614 - | Vec::with_capacity(cap)
|
615 - | } else {
|
616 - | Vec::new()
|
617 - | };
|
618 - | deser.read_list(member, container, |mut list, deser| {
|
619 - | list.push(deser.read_string(member)?);
|
620 - | Ok(list)
|
621 - | })?
|
622 - | });
|
576 + | builder.renamed_list_members = Some(deser.read_string_list(member)?);
|
623 577 | }
|
624 578 | Some(9) => {
|
625 - | builder.flattened_list = Some({
|
626 - | let container = if let Some(cap) = deser.container_size() {
|
627 - | Vec::with_capacity(cap)
|
628 - | } else {
|
629 - | Vec::new()
|
630 - | };
|
631 - | deser.read_list(member, container, |mut list, deser| {
|
632 - | list.push(deser.read_string(member)?);
|
633 - | Ok(list)
|
634 - | })?
|
635 - | });
|
579 + | builder.flattened_list = Some(deser.read_string_list(member)?);
|
636 580 | }
|
637 581 | Some(10) => {
|
638 - | builder.flattened_list2 = Some({
|
639 - | let container = if let Some(cap) = deser.container_size() {
|
640 - | Vec::with_capacity(cap)
|
641 - | } else {
|
642 - | Vec::new()
|
643 - | };
|
644 - | deser.read_list(member, container, |mut list, deser| {
|
645 - | list.push(deser.read_string(member)?);
|
646 - | Ok(list)
|
647 - | })?
|
648 - | });
|
582 + | builder.flattened_list2 = Some(deser.read_string_list(member)?);
|
649 583 | }
|
650 584 | Some(11) => {
|
651 - | builder.flattened_list_with_member_namespace = Some({
|
652 - | let container = if let Some(cap) = deser.container_size() {
|
653 - | Vec::with_capacity(cap)
|
654 - | } else {
|
655 - | Vec::new()
|
656 - | };
|
657 - | deser.read_list(member, container, |mut list, deser| {
|
658 - | list.push(deser.read_string(member)?);
|
659 - | Ok(list)
|
660 - | })?
|
661 - | });
|
585 + | builder.flattened_list_with_member_namespace = Some(deser.read_string_list(member)?);
|
662 586 | }
|
663 587 | Some(12) => {
|
664 - | builder.flattened_list_with_namespace = Some({
|
665 - | let container = if let Some(cap) = deser.container_size() {
|
666 - | Vec::with_capacity(cap)
|
667 - | } else {
|
668 - | Vec::new()
|
669 - | };
|
670 - | deser.read_list(member, container, |mut list, deser| {
|
671 - | list.push(deser.read_string(member)?);
|
672 - | Ok(list)
|
673 - | })?
|
674 - | });
|
588 + | builder.flattened_list_with_namespace = Some(deser.read_string_list(member)?);
|
675 589 | }
|
676 590 | Some(13) => {
|
677 591 | builder.structure_list = Some({
|
678 - | let container = if let Some(cap) = deser.container_size() {
|
679 - | Vec::with_capacity(cap)
|
680 - | } else {
|
681 - | Vec::new()
|
682 - | };
|
683 - | deser.read_list(member, container, |mut list, deser| {
|
684 - | list.push(crate::types::StructureListMember::deserialize(deser)?);
|
685 - | Ok(list)
|
686 - | })?
|
592 + | let mut container = Vec::new();
|
593 + | deser.read_list(member, &mut |deser| {
|
594 + | container.push(crate::types::StructureListMember::deserialize(deser)?);
|
595 + | Ok(())
|
596 + | })?;
|
597 + | container
|
687 598 | });
|
688 599 | }
|
689 600 | Some(14) => {
|
690 601 | builder.flattened_structure_list = Some({
|
691 - | let container = if let Some(cap) = deser.container_size() {
|
692 - | Vec::with_capacity(cap)
|
693 - | } else {
|
694 - | Vec::new()
|
695 - | };
|
696 - | deser.read_list(member, container, |mut list, deser| {
|
697 - | list.push(crate::types::StructureListMember::deserialize(deser)?);
|
698 - | Ok(list)
|
699 - | })?
|
602 + | let mut container = Vec::new();
|
603 + | deser.read_list(member, &mut |deser| {
|
604 + | container.push(crate::types::StructureListMember::deserialize(deser)?);
|
605 + | Ok(())
|
606 + | })?;
|
607 + | container
|
700 608 | });
|
701 609 | }
|
702 610 | _ => {}
|
703 611 | }
|
704 612 | Ok(())
|
705 613 | })?;
|
706 614 | builder
|
707 615 | .build()
|
708 616 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
709 617 | }
|
710 618 | }
|
619 + | impl XmlEmptyListsInput {
|
620 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
621 + | pub fn deserialize_with_response(
|
622 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
623 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
624 + | _status: u16,
|
625 + | _body: &[u8],
|
626 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
627 + | Self::deserialize(deserializer)
|
628 + | }
|
629 + | }
|
711 630 | impl XmlEmptyListsInput {
|
712 631 | /// Creates a new builder-style object to manufacture [`XmlEmptyListsInput`](crate::operation::xml_empty_lists::XmlEmptyListsInput).
|
713 632 | pub fn builder() -> crate::operation::xml_empty_lists::builders::XmlEmptyListsInputBuilder {
|
714 633 | crate::operation::xml_empty_lists::builders::XmlEmptyListsInputBuilder::default()
|
715 634 | }
|
716 635 | }
|
717 636 |
|
718 637 | /// A builder for [`XmlEmptyListsInput`](crate::operation::xml_empty_lists::XmlEmptyListsInput).
|
719 638 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
720 639 | #[non_exhaustive]
|