123 123 | "aws.protocoltests.ec2.synthetic",
|
124 124 | "XmlListsOutput",
|
125 125 | );
|
126 126 | static XMLLISTSOUTPUT_MEMBER_STRING_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
127 127 | ::aws_smithy_schema::ShapeId::from_static(
|
128 128 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$stringList",
|
129 129 | "aws.protocoltests.ec2.synthetic",
|
130 130 | "XmlListsOutput",
|
131 131 | ),
|
132 132 | ::aws_smithy_schema::ShapeType::List,
|
133 - | "string_list",
|
133 + | "stringList",
|
134 134 | 0,
|
135 135 | );
|
136 136 | static XMLLISTSOUTPUT_MEMBER_STRING_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
137 137 | ::aws_smithy_schema::ShapeId::from_static(
|
138 138 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$stringSet",
|
139 139 | "aws.protocoltests.ec2.synthetic",
|
140 140 | "XmlListsOutput",
|
141 141 | ),
|
142 142 | ::aws_smithy_schema::ShapeType::List,
|
143 - | "string_set",
|
143 + | "stringSet",
|
144 144 | 1,
|
145 145 | );
|
146 146 | static XMLLISTSOUTPUT_MEMBER_INTEGER_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
147 147 | ::aws_smithy_schema::ShapeId::from_static(
|
148 148 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$integerList",
|
149 149 | "aws.protocoltests.ec2.synthetic",
|
150 150 | "XmlListsOutput",
|
151 151 | ),
|
152 152 | ::aws_smithy_schema::ShapeType::List,
|
153 - | "integer_list",
|
153 + | "integerList",
|
154 154 | 2,
|
155 155 | );
|
156 156 | static XMLLISTSOUTPUT_MEMBER_BOOLEAN_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
157 157 | ::aws_smithy_schema::ShapeId::from_static(
|
158 158 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$booleanList",
|
159 159 | "aws.protocoltests.ec2.synthetic",
|
160 160 | "XmlListsOutput",
|
161 161 | ),
|
162 162 | ::aws_smithy_schema::ShapeType::List,
|
163 - | "boolean_list",
|
163 + | "booleanList",
|
164 164 | 3,
|
165 165 | );
|
166 166 | static XMLLISTSOUTPUT_MEMBER_TIMESTAMP_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
167 167 | ::aws_smithy_schema::ShapeId::from_static(
|
168 168 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$timestampList",
|
169 169 | "aws.protocoltests.ec2.synthetic",
|
170 170 | "XmlListsOutput",
|
171 171 | ),
|
172 172 | ::aws_smithy_schema::ShapeType::List,
|
173 - | "timestamp_list",
|
173 + | "timestampList",
|
174 174 | 4,
|
175 175 | );
|
176 176 | static XMLLISTSOUTPUT_MEMBER_ENUM_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
177 177 | ::aws_smithy_schema::ShapeId::from_static(
|
178 178 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$enumList",
|
179 179 | "aws.protocoltests.ec2.synthetic",
|
180 180 | "XmlListsOutput",
|
181 181 | ),
|
182 182 | ::aws_smithy_schema::ShapeType::List,
|
183 - | "enum_list",
|
183 + | "enumList",
|
184 184 | 5,
|
185 185 | );
|
186 186 | static XMLLISTSOUTPUT_MEMBER_INT_ENUM_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
187 187 | ::aws_smithy_schema::ShapeId::from_static(
|
188 188 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$intEnumList",
|
189 189 | "aws.protocoltests.ec2.synthetic",
|
190 190 | "XmlListsOutput",
|
191 191 | ),
|
192 192 | ::aws_smithy_schema::ShapeType::List,
|
193 - | "int_enum_list",
|
193 + | "intEnumList",
|
194 194 | 6,
|
195 195 | );
|
196 196 | static XMLLISTSOUTPUT_MEMBER_NESTED_STRING_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
197 197 | ::aws_smithy_schema::ShapeId::from_static(
|
198 198 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$nestedStringList",
|
199 199 | "aws.protocoltests.ec2.synthetic",
|
200 200 | "XmlListsOutput",
|
201 201 | ),
|
202 202 | ::aws_smithy_schema::ShapeType::List,
|
203 - | "nested_string_list",
|
203 + | "nestedStringList",
|
204 204 | 7,
|
205 205 | );
|
206 206 | static XMLLISTSOUTPUT_MEMBER_RENAMED_LIST_MEMBERS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
207 207 | ::aws_smithy_schema::ShapeId::from_static(
|
208 208 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$renamedListMembers",
|
209 209 | "aws.protocoltests.ec2.synthetic",
|
210 210 | "XmlListsOutput",
|
211 211 | ),
|
212 212 | ::aws_smithy_schema::ShapeType::List,
|
213 - | "renamed_list_members",
|
213 + | "renamedListMembers",
|
214 214 | 8,
|
215 215 | )
|
216 216 | .with_xml_name("renamed");
|
217 217 | static XMLLISTSOUTPUT_MEMBER_FLATTENED_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
218 218 | ::aws_smithy_schema::ShapeId::from_static(
|
219 219 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$flattenedList",
|
220 220 | "aws.protocoltests.ec2.synthetic",
|
221 221 | "XmlListsOutput",
|
222 222 | ),
|
223 223 | ::aws_smithy_schema::ShapeType::List,
|
224 - | "flattened_list",
|
224 + | "flattenedList",
|
225 225 | 9,
|
226 226 | )
|
227 227 | .with_xml_flattened();
|
228 228 | static XMLLISTSOUTPUT_MEMBER_FLATTENED_LIST2: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
229 229 | ::aws_smithy_schema::ShapeId::from_static(
|
230 230 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$flattenedList2",
|
231 231 | "aws.protocoltests.ec2.synthetic",
|
232 232 | "XmlListsOutput",
|
233 233 | ),
|
234 234 | ::aws_smithy_schema::ShapeType::List,
|
235 - | "flattened_list2",
|
235 + | "flattenedList2",
|
236 236 | 10,
|
237 237 | )
|
238 238 | .with_xml_name("customName")
|
239 239 | .with_xml_flattened();
|
240 240 | static XMLLISTSOUTPUT_MEMBER_FLATTENED_LIST_WITH_MEMBER_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
241 241 | ::aws_smithy_schema::ShapeId::from_static(
|
242 242 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$flattenedListWithMemberNamespace",
|
243 243 | "aws.protocoltests.ec2.synthetic",
|
244 244 | "XmlListsOutput",
|
245 245 | ),
|
246 246 | ::aws_smithy_schema::ShapeType::List,
|
247 - | "flattened_list_with_member_namespace",
|
247 + | "flattenedListWithMemberNamespace",
|
248 248 | 11,
|
249 249 | )
|
250 250 | .with_xml_flattened();
|
251 251 | static XMLLISTSOUTPUT_MEMBER_FLATTENED_LIST_WITH_NAMESPACE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
252 252 | ::aws_smithy_schema::ShapeId::from_static(
|
253 253 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$flattenedListWithNamespace",
|
254 254 | "aws.protocoltests.ec2.synthetic",
|
255 255 | "XmlListsOutput",
|
256 256 | ),
|
257 257 | ::aws_smithy_schema::ShapeType::List,
|
258 - | "flattened_list_with_namespace",
|
258 + | "flattenedListWithNamespace",
|
259 259 | 12,
|
260 260 | )
|
261 261 | .with_xml_flattened();
|
262 262 | static XMLLISTSOUTPUT_MEMBER_STRUCTURE_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
263 263 | ::aws_smithy_schema::ShapeId::from_static(
|
264 264 | "aws.protocoltests.ec2.synthetic#XmlListsOutput$structureList",
|
265 265 | "aws.protocoltests.ec2.synthetic",
|
266 266 | "XmlListsOutput",
|
267 267 | ),
|
268 268 | ::aws_smithy_schema::ShapeType::List,
|
269 - | "structure_list",
|
269 + | "structureList",
|
270 270 | 13,
|
271 271 | )
|
272 272 | .with_xml_name("myStructureList");
|
273 273 | static XMLLISTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
274 274 | XMLLISTSOUTPUT_SCHEMA_ID,
|
275 275 | ::aws_smithy_schema::ShapeType::Structure,
|
276 276 | &[
|
277 277 | &XMLLISTSOUTPUT_MEMBER_STRING_LIST,
|
278 278 | &XMLLISTSOUTPUT_MEMBER_STRING_SET,
|
279 279 | &XMLLISTSOUTPUT_MEMBER_INTEGER_LIST,
|
452 460 | }
|
453 461 | Ok(())
|
454 462 | },
|
455 463 | )?;
|
456 464 | }
|
457 465 | Ok(())
|
458 466 | }
|
459 467 | }
|
460 468 | impl XmlListsOutput {
|
461 469 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
462 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
463 - | deserializer: &mut D,
|
470 + | pub fn deserialize(
|
471 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
464 472 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
465 473 | #[allow(unused_variables, unused_mut)]
|
466 474 | let mut builder = Self::builder();
|
467 475 | #[allow(
|
468 476 | unused_variables,
|
469 477 | unreachable_code,
|
470 478 | clippy::single_match,
|
471 479 | clippy::match_single_binding,
|
472 480 | clippy::diverging_sub_expression
|
473 481 | )]
|
474 - | deserializer.read_struct(&XMLLISTSOUTPUT_SCHEMA, (), |_, member, deser| {
|
482 + | deserializer.read_struct(&XMLLISTSOUTPUT_SCHEMA, &mut |member, deser| {
|
475 483 | match member.member_index() {
|
476 484 | Some(0) => {
|
477 - | builder.string_list = Some({
|
478 - | let container = if let Some(cap) = deser.container_size() {
|
479 - | Vec::with_capacity(cap)
|
480 - | } else {
|
481 - | Vec::new()
|
482 - | };
|
483 - | deser.read_list(member, container, |mut list, deser| {
|
484 - | list.push(deser.read_string(member)?);
|
485 - | Ok(list)
|
486 - | })?
|
487 - | });
|
485 + | builder.string_list = Some(deser.read_string_list(member)?);
|
488 486 | }
|
489 487 | Some(1) => {
|
490 - | builder.string_set = Some({
|
491 - | let container = if let Some(cap) = deser.container_size() {
|
492 - | Vec::with_capacity(cap)
|
493 - | } else {
|
494 - | Vec::new()
|
495 - | };
|
496 - | deser.read_list(member, container, |mut list, deser| {
|
497 - | list.push(deser.read_string(member)?);
|
498 - | Ok(list)
|
499 - | })?
|
500 - | });
|
488 + | builder.string_set = Some(deser.read_string_list(member)?);
|
501 489 | }
|
502 490 | Some(2) => {
|
503 - | builder.integer_list = Some({
|
504 - | let container = if let Some(cap) = deser.container_size() {
|
505 - | Vec::with_capacity(cap)
|
506 - | } else {
|
507 - | Vec::new()
|
508 - | };
|
509 - | deser.read_list(member, container, |mut list, deser| {
|
510 - | list.push(deser.read_integer(member)?);
|
511 - | Ok(list)
|
512 - | })?
|
513 - | });
|
491 + | builder.integer_list = Some(deser.read_integer_list(member)?);
|
514 492 | }
|
515 493 | Some(3) => {
|
516 494 | builder.boolean_list = Some({
|
517 - | let container = if let Some(cap) = deser.container_size() {
|
518 - | Vec::with_capacity(cap)
|
519 - | } else {
|
520 - | Vec::new()
|
521 - | };
|
522 - | deser.read_list(member, container, |mut list, deser| {
|
523 - | list.push(deser.read_boolean(member)?);
|
524 - | Ok(list)
|
525 - | })?
|
495 + | let mut container = Vec::new();
|
496 + | deser.read_list(member, &mut |deser| {
|
497 + | container.push(deser.read_boolean(member)?);
|
498 + | Ok(())
|
499 + | })?;
|
500 + | container
|
526 501 | });
|
527 502 | }
|
528 503 | Some(4) => {
|
529 504 | builder.timestamp_list = Some({
|
530 - | let container = if let Some(cap) = deser.container_size() {
|
531 - | Vec::with_capacity(cap)
|
532 - | } else {
|
533 - | Vec::new()
|
534 - | };
|
535 - | deser.read_list(member, container, |mut list, deser| {
|
536 - | list.push(deser.read_timestamp(member)?);
|
537 - | Ok(list)
|
538 - | })?
|
505 + | let mut container = Vec::new();
|
506 + | deser.read_list(member, &mut |deser| {
|
507 + | container.push(deser.read_timestamp(member)?);
|
508 + | Ok(())
|
509 + | })?;
|
510 + | container
|
539 511 | });
|
540 512 | }
|
541 513 | Some(5) => {
|
542 514 | builder.enum_list = Some({
|
543 - | let container = if let Some(cap) = deser.container_size() {
|
544 - | Vec::with_capacity(cap)
|
545 - | } else {
|
546 - | Vec::new()
|
547 - | };
|
548 - | deser.read_list(member, container, |mut list, deser| {
|
549 - | list.push(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
550 - | Ok(list)
|
551 - | })?
|
515 + | let mut container = Vec::new();
|
516 + | deser.read_list(member, &mut |deser| {
|
517 + | container.push(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
518 + | Ok(())
|
519 + | })?;
|
520 + | container
|
552 521 | });
|
553 522 | }
|
554 523 | Some(6) => {
|
555 - | builder.int_enum_list = Some({
|
556 - | let container = if let Some(cap) = deser.container_size() {
|
557 - | Vec::with_capacity(cap)
|
558 - | } else {
|
559 - | Vec::new()
|
560 - | };
|
561 - | deser.read_list(member, container, |mut list, deser| {
|
562 - | list.push(deser.read_integer(member)?);
|
563 - | Ok(list)
|
564 - | })?
|
565 - | });
|
524 + | builder.int_enum_list = Some(deser.read_integer_list(member)?);
|
566 525 | }
|
567 526 | Some(7) => {
|
568 527 | builder.nested_string_list = Some({
|
569 - | let container = if let Some(cap) = deser.container_size() {
|
570 - | Vec::with_capacity(cap)
|
571 - | } else {
|
572 - | Vec::new()
|
573 - | };
|
574 - | deser.read_list(member, container, |mut list, deser| {
|
575 - | list.push(todo!("deserialize nested aggregate"));
|
576 - | Ok(list)
|
577 - | })?
|
528 + | let mut container = Vec::new();
|
529 + | deser.read_list(member, &mut |deser| {
|
530 + | container.push({
|
531 + | let mut list = Vec::new();
|
532 + | deser.read_list(member, &mut |deser| {
|
533 + | list.push(deser.read_string(&::aws_smithy_schema::prelude::DOCUMENT)?);
|
534 + | Ok(())
|
535 + | })?;
|
536 + | list
|
537 + | });
|
538 + | Ok(())
|
539 + | })?;
|
540 + | container
|
578 541 | });
|
579 542 | }
|
580 543 | Some(8) => {
|
581 - | builder.renamed_list_members = Some({
|
582 - | let container = if let Some(cap) = deser.container_size() {
|
583 - | Vec::with_capacity(cap)
|
584 - | } else {
|
585 - | Vec::new()
|
586 - | };
|
587 - | deser.read_list(member, container, |mut list, deser| {
|
588 - | list.push(deser.read_string(member)?);
|
589 - | Ok(list)
|
590 - | })?
|
591 - | });
|
544 + | builder.renamed_list_members = Some(deser.read_string_list(member)?);
|
592 545 | }
|
593 546 | Some(9) => {
|
594 - | builder.flattened_list = Some({
|
595 - | let container = if let Some(cap) = deser.container_size() {
|
596 - | Vec::with_capacity(cap)
|
597 - | } else {
|
598 - | Vec::new()
|
599 - | };
|
600 - | deser.read_list(member, container, |mut list, deser| {
|
601 - | list.push(deser.read_string(member)?);
|
602 - | Ok(list)
|
603 - | })?
|
604 - | });
|
547 + | builder.flattened_list = Some(deser.read_string_list(member)?);
|
605 548 | }
|
606 549 | Some(10) => {
|
607 - | builder.flattened_list2 = Some({
|
608 - | let container = if let Some(cap) = deser.container_size() {
|
609 - | Vec::with_capacity(cap)
|
610 - | } else {
|
611 - | Vec::new()
|
612 - | };
|
613 - | deser.read_list(member, container, |mut list, deser| {
|
614 - | list.push(deser.read_string(member)?);
|
615 - | Ok(list)
|
616 - | })?
|
617 - | });
|
550 + | builder.flattened_list2 = Some(deser.read_string_list(member)?);
|
618 551 | }
|
619 552 | Some(11) => {
|
620 - | builder.flattened_list_with_member_namespace = Some({
|
621 - | let container = if let Some(cap) = deser.container_size() {
|
622 - | Vec::with_capacity(cap)
|
623 - | } else {
|
624 - | Vec::new()
|
625 - | };
|
626 - | deser.read_list(member, container, |mut list, deser| {
|
627 - | list.push(deser.read_string(member)?);
|
628 - | Ok(list)
|
629 - | })?
|
630 - | });
|
553 + | builder.flattened_list_with_member_namespace = Some(deser.read_string_list(member)?);
|
631 554 | }
|
632 555 | Some(12) => {
|
633 - | builder.flattened_list_with_namespace = Some({
|
634 - | let container = if let Some(cap) = deser.container_size() {
|
635 - | Vec::with_capacity(cap)
|
636 - | } else {
|
637 - | Vec::new()
|
638 - | };
|
639 - | deser.read_list(member, container, |mut list, deser| {
|
640 - | list.push(deser.read_string(member)?);
|
641 - | Ok(list)
|
642 - | })?
|
643 - | });
|
556 + | builder.flattened_list_with_namespace = Some(deser.read_string_list(member)?);
|
644 557 | }
|
645 558 | Some(13) => {
|
646 559 | builder.structure_list = Some({
|
647 - | let container = if let Some(cap) = deser.container_size() {
|
648 - | Vec::with_capacity(cap)
|
649 - | } else {
|
650 - | Vec::new()
|
651 - | };
|
652 - | deser.read_list(member, container, |mut list, deser| {
|
653 - | list.push(crate::types::StructureListMember::deserialize(deser)?);
|
654 - | Ok(list)
|
655 - | })?
|
560 + | let mut container = Vec::new();
|
561 + | deser.read_list(member, &mut |deser| {
|
562 + | container.push(crate::types::StructureListMember::deserialize(deser)?);
|
563 + | Ok(())
|
564 + | })?;
|
565 + | container
|
656 566 | });
|
657 567 | }
|
658 568 | _ => {}
|
659 569 | }
|
660 570 | Ok(())
|
661 571 | })?;
|
662 572 | Ok(builder.build())
|
663 573 | }
|
664 574 | }
|
575 + | impl XmlListsOutput {
|
576 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
577 + | pub fn deserialize_with_response(
|
578 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
579 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
580 + | _status: u16,
|
581 + | _body: &[u8],
|
582 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
583 + | Self::deserialize(deserializer)
|
584 + | }
|
585 + | }
|
665 586 | impl XmlListsOutput {
|
666 587 | /// Creates a new builder-style object to manufacture [`XmlListsOutput`](crate::operation::xml_lists::XmlListsOutput).
|
667 588 | pub fn builder() -> crate::operation::xml_lists::builders::XmlListsOutputBuilder {
|
668 589 | crate::operation::xml_lists::builders::XmlListsOutputBuilder::default()
|
669 590 | }
|
670 591 | }
|
671 592 |
|
672 593 | /// A builder for [`XmlListsOutput`](crate::operation::xml_lists::XmlListsOutput).
|
673 594 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
674 595 | #[non_exhaustive]
|