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