155 155 | "aws.protocoltests.restxml.synthetic",
|
156 156 | "AllQueryStringTypesInput",
|
157 157 | );
|
158 158 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
159 159 | ::aws_smithy_schema::ShapeId::from_static(
|
160 160 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryString",
|
161 161 | "aws.protocoltests.restxml.synthetic",
|
162 162 | "AllQueryStringTypesInput",
|
163 163 | ),
|
164 164 | ::aws_smithy_schema::ShapeType::String,
|
165 - | "query_string",
|
165 + | "queryString",
|
166 166 | 0,
|
167 167 | )
|
168 168 | .with_http_query("String");
|
169 169 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_STRING_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
170 170 | ::aws_smithy_schema::ShapeId::from_static(
|
171 171 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryStringList",
|
172 172 | "aws.protocoltests.restxml.synthetic",
|
173 173 | "AllQueryStringTypesInput",
|
174 174 | ),
|
175 175 | ::aws_smithy_schema::ShapeType::List,
|
176 - | "query_string_list",
|
176 + | "queryStringList",
|
177 177 | 1,
|
178 178 | )
|
179 179 | .with_http_query("StringList");
|
180 180 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_STRING_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
181 181 | ::aws_smithy_schema::ShapeId::from_static(
|
182 182 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryStringSet",
|
183 183 | "aws.protocoltests.restxml.synthetic",
|
184 184 | "AllQueryStringTypesInput",
|
185 185 | ),
|
186 186 | ::aws_smithy_schema::ShapeType::List,
|
187 - | "query_string_set",
|
187 + | "queryStringSet",
|
188 188 | 2,
|
189 189 | )
|
190 190 | .with_http_query("StringSet");
|
191 191 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_BYTE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
192 192 | ::aws_smithy_schema::ShapeId::from_static(
|
193 193 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryByte",
|
194 194 | "aws.protocoltests.restxml.synthetic",
|
195 195 | "AllQueryStringTypesInput",
|
196 196 | ),
|
197 197 | ::aws_smithy_schema::ShapeType::Byte,
|
198 - | "query_byte",
|
198 + | "queryByte",
|
199 199 | 3,
|
200 200 | )
|
201 201 | .with_http_query("Byte");
|
202 202 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_SHORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
203 203 | ::aws_smithy_schema::ShapeId::from_static(
|
204 204 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryShort",
|
205 205 | "aws.protocoltests.restxml.synthetic",
|
206 206 | "AllQueryStringTypesInput",
|
207 207 | ),
|
208 208 | ::aws_smithy_schema::ShapeType::Short,
|
209 - | "query_short",
|
209 + | "queryShort",
|
210 210 | 4,
|
211 211 | )
|
212 212 | .with_http_query("Short");
|
213 213 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
214 214 | ::aws_smithy_schema::ShapeId::from_static(
|
215 215 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryInteger",
|
216 216 | "aws.protocoltests.restxml.synthetic",
|
217 217 | "AllQueryStringTypesInput",
|
218 218 | ),
|
219 219 | ::aws_smithy_schema::ShapeType::Integer,
|
220 - | "query_integer",
|
220 + | "queryInteger",
|
221 221 | 5,
|
222 222 | )
|
223 223 | .with_http_query("Integer");
|
224 224 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
225 225 | ::aws_smithy_schema::ShapeId::from_static(
|
226 226 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryIntegerList",
|
227 227 | "aws.protocoltests.restxml.synthetic",
|
228 228 | "AllQueryStringTypesInput",
|
229 229 | ),
|
230 230 | ::aws_smithy_schema::ShapeType::List,
|
231 - | "query_integer_list",
|
231 + | "queryIntegerList",
|
232 232 | 6,
|
233 233 | )
|
234 234 | .with_http_query("IntegerList");
|
235 235 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_SET: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryIntegerSet",
|
238 238 | "aws.protocoltests.restxml.synthetic",
|
239 239 | "AllQueryStringTypesInput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::List,
|
242 - | "query_integer_set",
|
242 + | "queryIntegerSet",
|
243 243 | 7,
|
244 244 | )
|
245 245 | .with_http_query("IntegerSet");
|
246 246 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_LONG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
247 247 | ::aws_smithy_schema::ShapeId::from_static(
|
248 248 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryLong",
|
249 249 | "aws.protocoltests.restxml.synthetic",
|
250 250 | "AllQueryStringTypesInput",
|
251 251 | ),
|
252 252 | ::aws_smithy_schema::ShapeType::Long,
|
253 - | "query_long",
|
253 + | "queryLong",
|
254 254 | 8,
|
255 255 | )
|
256 256 | .with_http_query("Long");
|
257 257 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_FLOAT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
258 258 | ::aws_smithy_schema::ShapeId::from_static(
|
259 259 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryFloat",
|
260 260 | "aws.protocoltests.restxml.synthetic",
|
261 261 | "AllQueryStringTypesInput",
|
262 262 | ),
|
263 263 | ::aws_smithy_schema::ShapeType::Float,
|
264 - | "query_float",
|
264 + | "queryFloat",
|
265 265 | 9,
|
266 266 | )
|
267 267 | .with_http_query("Float");
|
268 268 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_DOUBLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
269 269 | ::aws_smithy_schema::ShapeId::from_static(
|
270 270 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryDouble",
|
271 271 | "aws.protocoltests.restxml.synthetic",
|
272 272 | "AllQueryStringTypesInput",
|
273 273 | ),
|
274 274 | ::aws_smithy_schema::ShapeType::Double,
|
275 - | "query_double",
|
275 + | "queryDouble",
|
276 276 | 10,
|
277 277 | )
|
278 278 | .with_http_query("Double");
|
279 279 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_DOUBLE_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
280 280 | ::aws_smithy_schema::ShapeId::from_static(
|
281 281 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryDoubleList",
|
282 282 | "aws.protocoltests.restxml.synthetic",
|
283 283 | "AllQueryStringTypesInput",
|
284 284 | ),
|
285 285 | ::aws_smithy_schema::ShapeType::List,
|
286 - | "query_double_list",
|
286 + | "queryDoubleList",
|
287 287 | 11,
|
288 288 | )
|
289 289 | .with_http_query("DoubleList");
|
290 290 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_BOOLEAN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
291 291 | ::aws_smithy_schema::ShapeId::from_static(
|
292 292 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryBoolean",
|
293 293 | "aws.protocoltests.restxml.synthetic",
|
294 294 | "AllQueryStringTypesInput",
|
295 295 | ),
|
296 296 | ::aws_smithy_schema::ShapeType::Boolean,
|
297 - | "query_boolean",
|
297 + | "queryBoolean",
|
298 298 | 12,
|
299 299 | )
|
300 300 | .with_http_query("Boolean");
|
301 301 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_BOOLEAN_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
302 302 | ::aws_smithy_schema::ShapeId::from_static(
|
303 303 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryBooleanList",
|
304 304 | "aws.protocoltests.restxml.synthetic",
|
305 305 | "AllQueryStringTypesInput",
|
306 306 | ),
|
307 307 | ::aws_smithy_schema::ShapeType::List,
|
308 - | "query_boolean_list",
|
308 + | "queryBooleanList",
|
309 309 | 13,
|
310 310 | )
|
311 311 | .with_http_query("BooleanList");
|
312 312 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_TIMESTAMP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
313 313 | ::aws_smithy_schema::ShapeId::from_static(
|
314 314 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryTimestamp",
|
315 315 | "aws.protocoltests.restxml.synthetic",
|
316 316 | "AllQueryStringTypesInput",
|
317 317 | ),
|
318 318 | ::aws_smithy_schema::ShapeType::Timestamp,
|
319 - | "query_timestamp",
|
319 + | "queryTimestamp",
|
320 320 | 14,
|
321 321 | )
|
322 322 | .with_http_query("Timestamp");
|
323 323 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_TIMESTAMP_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
324 324 | ::aws_smithy_schema::ShapeId::from_static(
|
325 325 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryTimestampList",
|
326 326 | "aws.protocoltests.restxml.synthetic",
|
327 327 | "AllQueryStringTypesInput",
|
328 328 | ),
|
329 329 | ::aws_smithy_schema::ShapeType::List,
|
330 - | "query_timestamp_list",
|
330 + | "queryTimestampList",
|
331 331 | 15,
|
332 332 | )
|
333 333 | .with_http_query("TimestampList");
|
334 334 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
335 335 | ::aws_smithy_schema::ShapeId::from_static(
|
336 336 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryEnum",
|
337 337 | "aws.protocoltests.restxml.synthetic",
|
338 338 | "AllQueryStringTypesInput",
|
339 339 | ),
|
340 340 | ::aws_smithy_schema::ShapeType::String,
|
341 - | "query_enum",
|
341 + | "queryEnum",
|
342 342 | 16,
|
343 343 | )
|
344 344 | .with_http_query("Enum");
|
345 345 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_ENUM_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
346 346 | ::aws_smithy_schema::ShapeId::from_static(
|
347 347 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryEnumList",
|
348 348 | "aws.protocoltests.restxml.synthetic",
|
349 349 | "AllQueryStringTypesInput",
|
350 350 | ),
|
351 351 | ::aws_smithy_schema::ShapeType::List,
|
352 - | "query_enum_list",
|
352 + | "queryEnumList",
|
353 353 | 17,
|
354 354 | )
|
355 355 | .with_http_query("EnumList");
|
356 356 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
357 357 | ::aws_smithy_schema::ShapeId::from_static(
|
358 358 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryIntegerEnum",
|
359 359 | "aws.protocoltests.restxml.synthetic",
|
360 360 | "AllQueryStringTypesInput",
|
361 361 | ),
|
362 362 | ::aws_smithy_schema::ShapeType::Integer,
|
363 - | "query_integer_enum",
|
363 + | "queryIntegerEnum",
|
364 364 | 18,
|
365 365 | )
|
366 366 | .with_http_query("IntegerEnum");
|
367 367 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_ENUM_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
368 368 | ::aws_smithy_schema::ShapeId::from_static(
|
369 369 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryIntegerEnumList",
|
370 370 | "aws.protocoltests.restxml.synthetic",
|
371 371 | "AllQueryStringTypesInput",
|
372 372 | ),
|
373 373 | ::aws_smithy_schema::ShapeType::List,
|
374 - | "query_integer_enum_list",
|
374 + | "queryIntegerEnumList",
|
375 375 | 19,
|
376 376 | )
|
377 377 | .with_http_query("IntegerEnumList");
|
378 378 | static ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_PARAMS_MAP_OF_STRINGS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
379 379 | ::aws_smithy_schema::ShapeId::from_static(
|
380 380 | "aws.protocoltests.restxml.synthetic#AllQueryStringTypesInput$queryParamsMapOfStrings",
|
381 381 | "aws.protocoltests.restxml.synthetic",
|
382 382 | "AllQueryStringTypesInput",
|
383 383 | ),
|
384 384 | ::aws_smithy_schema::ShapeType::Map,
|
385 - | "query_params_map_of_strings",
|
385 + | "queryParamsMapOfStrings",
|
386 386 | 20,
|
387 387 | )
|
388 388 | .with_http_query_params();
|
389 389 | static ALLQUERYSTRINGTYPESINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
390 390 | ALLQUERYSTRINGTYPESINPUT_SCHEMA_ID,
|
391 391 | ::aws_smithy_schema::ShapeType::Structure,
|
392 392 | &[
|
393 393 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_STRING,
|
394 394 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_STRING_LIST,
|
395 395 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_STRING_SET,
|
396 396 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_BYTE,
|
397 397 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_SHORT,
|
398 398 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER,
|
399 399 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_LIST,
|
400 400 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_SET,
|
401 401 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_LONG,
|
402 402 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_FLOAT,
|
403 403 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_DOUBLE,
|
404 404 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_DOUBLE_LIST,
|
405 405 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_BOOLEAN,
|
406 406 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_BOOLEAN_LIST,
|
407 407 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_TIMESTAMP,
|
408 408 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_TIMESTAMP_LIST,
|
409 409 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_ENUM,
|
410 410 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_ENUM_LIST,
|
411 411 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_ENUM,
|
412 412 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_INTEGER_ENUM_LIST,
|
413 413 | &ALLQUERYSTRINGTYPESINPUT_MEMBER_QUERY_PARAMS_MAP_OF_STRINGS,
|
414 414 | ],
|
415 - | );
|
415 + | )
|
416 + | .with_http(aws_smithy_schema::traits::HttpTrait::new("GET", "/AllQueryStringTypesInput", None));
|
416 417 | impl AllQueryStringTypesInput {
|
417 418 | /// The schema for this shape.
|
418 419 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &ALLQUERYSTRINGTYPESINPUT_SCHEMA;
|
419 420 | }
|
420 421 | impl ::aws_smithy_schema::serde::SerializableStruct for AllQueryStringTypesInput {
|
421 422 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
422 423 | fn serialize_members(
|
423 424 | &self,
|
424 425 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
425 426 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
565 566 | }
|
566 567 | Ok(())
|
567 568 | },
|
568 569 | )?;
|
569 570 | }
|
570 571 | Ok(())
|
571 572 | }
|
572 573 | }
|
573 574 | impl AllQueryStringTypesInput {
|
574 575 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
575 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
576 - | deserializer: &mut D,
|
576 + | pub fn deserialize(
|
577 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
577 578 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
578 579 | #[allow(unused_variables, unused_mut)]
|
579 580 | let mut builder = Self::builder();
|
580 581 | #[allow(
|
581 582 | unused_variables,
|
582 583 | unreachable_code,
|
583 584 | clippy::single_match,
|
584 585 | clippy::match_single_binding,
|
585 586 | clippy::diverging_sub_expression
|
586 587 | )]
|
587 - | deserializer.read_struct(&ALLQUERYSTRINGTYPESINPUT_SCHEMA, (), |_, member, deser| {
|
588 + | deserializer.read_struct(&ALLQUERYSTRINGTYPESINPUT_SCHEMA, &mut |member, deser| {
|
588 589 | match member.member_index() {
|
589 590 | Some(0) => {
|
590 591 | builder.query_string = Some(deser.read_string(member)?);
|
591 592 | }
|
592 593 | Some(1) => {
|
593 - | builder.query_string_list = Some({
|
594 - | let container = if let Some(cap) = deser.container_size() {
|
595 - | Vec::with_capacity(cap)
|
596 - | } else {
|
597 - | Vec::new()
|
598 - | };
|
599 - | deser.read_list(member, container, |mut list, deser| {
|
600 - | list.push(deser.read_string(member)?);
|
601 - | Ok(list)
|
602 - | })?
|
603 - | });
|
594 + | builder.query_string_list = Some(deser.read_string_list(member)?);
|
604 595 | }
|
605 596 | Some(2) => {
|
606 - | builder.query_string_set = Some({
|
607 - | let container = if let Some(cap) = deser.container_size() {
|
608 - | Vec::with_capacity(cap)
|
609 - | } else {
|
610 - | Vec::new()
|
611 - | };
|
612 - | deser.read_list(member, container, |mut list, deser| {
|
613 - | list.push(deser.read_string(member)?);
|
614 - | Ok(list)
|
615 - | })?
|
616 - | });
|
597 + | builder.query_string_set = Some(deser.read_string_list(member)?);
|
617 598 | }
|
618 599 | Some(3) => {
|
619 600 | builder.query_byte = Some(deser.read_byte(member)?);
|
620 601 | }
|
621 602 | Some(4) => {
|
622 603 | builder.query_short = Some(deser.read_short(member)?);
|
623 604 | }
|
624 605 | Some(5) => {
|
625 606 | builder.query_integer = Some(deser.read_integer(member)?);
|
626 607 | }
|
627 608 | Some(6) => {
|
628 - | builder.query_integer_list = Some({
|
629 - | let container = if let Some(cap) = deser.container_size() {
|
630 - | Vec::with_capacity(cap)
|
631 - | } else {
|
632 - | Vec::new()
|
633 - | };
|
634 - | deser.read_list(member, container, |mut list, deser| {
|
635 - | list.push(deser.read_integer(member)?);
|
636 - | Ok(list)
|
637 - | })?
|
638 - | });
|
609 + | builder.query_integer_list = Some(deser.read_integer_list(member)?);
|
639 610 | }
|
640 611 | Some(7) => {
|
641 - | builder.query_integer_set = Some({
|
642 - | let container = if let Some(cap) = deser.container_size() {
|
643 - | Vec::with_capacity(cap)
|
644 - | } else {
|
645 - | Vec::new()
|
646 - | };
|
647 - | deser.read_list(member, container, |mut list, deser| {
|
648 - | list.push(deser.read_integer(member)?);
|
649 - | Ok(list)
|
650 - | })?
|
651 - | });
|
612 + | builder.query_integer_set = Some(deser.read_integer_list(member)?);
|
652 613 | }
|
653 614 | Some(8) => {
|
654 615 | builder.query_long = Some(deser.read_long(member)?);
|
655 616 | }
|
656 617 | Some(9) => {
|
657 618 | builder.query_float = Some(deser.read_float(member)?);
|
658 619 | }
|
659 620 | Some(10) => {
|
660 621 | builder.query_double = Some(deser.read_double(member)?);
|
661 622 | }
|
662 623 | Some(11) => {
|
663 624 | builder.query_double_list = Some({
|
664 - | let container = if let Some(cap) = deser.container_size() {
|
665 - | Vec::with_capacity(cap)
|
666 - | } else {
|
667 - | Vec::new()
|
668 - | };
|
669 - | deser.read_list(member, container, |mut list, deser| {
|
670 - | list.push(deser.read_double(member)?);
|
671 - | Ok(list)
|
672 - | })?
|
625 + | let mut container = Vec::new();
|
626 + | deser.read_list(member, &mut |deser| {
|
627 + | container.push(deser.read_double(member)?);
|
628 + | Ok(())
|
629 + | })?;
|
630 + | container
|
673 631 | });
|
674 632 | }
|
675 633 | Some(12) => {
|
676 634 | builder.query_boolean = Some(deser.read_boolean(member)?);
|
677 635 | }
|
678 636 | Some(13) => {
|
679 637 | builder.query_boolean_list = Some({
|
680 - | let container = if let Some(cap) = deser.container_size() {
|
681 - | Vec::with_capacity(cap)
|
682 - | } else {
|
683 - | Vec::new()
|
684 - | };
|
685 - | deser.read_list(member, container, |mut list, deser| {
|
686 - | list.push(deser.read_boolean(member)?);
|
687 - | Ok(list)
|
688 - | })?
|
638 + | let mut container = Vec::new();
|
639 + | deser.read_list(member, &mut |deser| {
|
640 + | container.push(deser.read_boolean(member)?);
|
641 + | Ok(())
|
642 + | })?;
|
643 + | container
|
689 644 | });
|
690 645 | }
|
691 646 | Some(14) => {
|
692 647 | builder.query_timestamp = Some(deser.read_timestamp(member)?);
|
693 648 | }
|
694 649 | Some(15) => {
|
695 650 | builder.query_timestamp_list = Some({
|
696 - | let container = if let Some(cap) = deser.container_size() {
|
697 - | Vec::with_capacity(cap)
|
698 - | } else {
|
699 - | Vec::new()
|
700 - | };
|
701 - | deser.read_list(member, container, |mut list, deser| {
|
702 - | list.push(deser.read_timestamp(member)?);
|
703 - | Ok(list)
|
704 - | })?
|
651 + | let mut container = Vec::new();
|
652 + | deser.read_list(member, &mut |deser| {
|
653 + | container.push(deser.read_timestamp(member)?);
|
654 + | Ok(())
|
655 + | })?;
|
656 + | container
|
705 657 | });
|
706 658 | }
|
707 659 | Some(16) => {
|
708 660 | builder.query_enum = Some(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
709 661 | }
|
710 662 | Some(17) => {
|
711 663 | builder.query_enum_list = Some({
|
712 - | let container = if let Some(cap) = deser.container_size() {
|
713 - | Vec::with_capacity(cap)
|
714 - | } else {
|
715 - | Vec::new()
|
716 - | };
|
717 - | deser.read_list(member, container, |mut list, deser| {
|
718 - | list.push(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
719 - | Ok(list)
|
720 - | })?
|
664 + | let mut container = Vec::new();
|
665 + | deser.read_list(member, &mut |deser| {
|
666 + | container.push(crate::types::FooEnum::from(deser.read_string(member)?.as_str()));
|
667 + | Ok(())
|
668 + | })?;
|
669 + | container
|
721 670 | });
|
722 671 | }
|
723 672 | Some(18) => {
|
724 673 | builder.query_integer_enum = Some(deser.read_integer(member)?);
|
725 674 | }
|
726 675 | Some(19) => {
|
727 - | builder.query_integer_enum_list = Some({
|
728 - | let container = if let Some(cap) = deser.container_size() {
|
729 - | Vec::with_capacity(cap)
|
730 - | } else {
|
731 - | Vec::new()
|
732 - | };
|
733 - | deser.read_list(member, container, |mut list, deser| {
|
734 - | list.push(deser.read_integer(member)?);
|
735 - | Ok(list)
|
736 - | })?
|
737 - | });
|
676 + | builder.query_integer_enum_list = Some(deser.read_integer_list(member)?);
|
738 677 | }
|
739 678 | Some(20) => {
|
740 - | builder.query_params_map_of_strings = Some({
|
741 - | let container = if let Some(cap) = deser.container_size() {
|
742 - | std::collections::HashMap::with_capacity(cap)
|
743 - | } else {
|
744 - | std::collections::HashMap::new()
|
745 - | };
|
746 - | deser.read_map(member, container, |mut map, key, deser| {
|
747 - | map.insert(key, deser.read_string(member)?);
|
748 - | Ok(map)
|
749 - | })?
|
750 - | });
|
679 + | builder.query_params_map_of_strings = Some(deser.read_string_string_map(member)?);
|
751 680 | }
|
752 681 | _ => {}
|
753 682 | }
|
754 683 | Ok(())
|
755 684 | })?;
|
756 685 | builder
|
757 686 | .build()
|
758 687 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
759 688 | }
|
760 689 | }
|
690 + | impl AllQueryStringTypesInput {
|
691 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
692 + | pub fn deserialize_with_response(
|
693 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
694 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
695 + | _status: u16,
|
696 + | _body: &[u8],
|
697 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
698 + | Self::deserialize(deserializer)
|
699 + | }
|
700 + | }
|
761 701 | impl AllQueryStringTypesInput {
|
762 702 | /// Creates a new builder-style object to manufacture [`AllQueryStringTypesInput`](crate::operation::all_query_string_types::AllQueryStringTypesInput).
|
763 703 | pub fn builder() -> crate::operation::all_query_string_types::builders::AllQueryStringTypesInputBuilder {
|
764 704 | crate::operation::all_query_string_types::builders::AllQueryStringTypesInputBuilder::default()
|
765 705 | }
|
766 706 | }
|
767 707 |
|
768 708 | /// A builder for [`AllQueryStringTypesInput`](crate::operation::all_query_string_types::AllQueryStringTypesInput).
|
769 709 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
770 710 | #[non_exhaustive]
|