182 182 | "aws.protocoltests.json10.synthetic",
|
183 183 | "OperationWithDefaultsOutput",
|
184 184 | );
|
185 185 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
186 186 | ::aws_smithy_schema::ShapeId::from_static(
|
187 187 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultString",
|
188 188 | "aws.protocoltests.json10.synthetic",
|
189 189 | "OperationWithDefaultsOutput",
|
190 190 | ),
|
191 191 | ::aws_smithy_schema::ShapeType::String,
|
192 - | "default_string",
|
192 + | "defaultString",
|
193 193 | 0,
|
194 194 | );
|
195 195 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_BOOLEAN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
196 196 | ::aws_smithy_schema::ShapeId::from_static(
|
197 197 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultBoolean",
|
198 198 | "aws.protocoltests.json10.synthetic",
|
199 199 | "OperationWithDefaultsOutput",
|
200 200 | ),
|
201 201 | ::aws_smithy_schema::ShapeType::Boolean,
|
202 - | "default_boolean",
|
202 + | "defaultBoolean",
|
203 203 | 1,
|
204 204 | );
|
205 205 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
206 206 | ::aws_smithy_schema::ShapeId::from_static(
|
207 207 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultList",
|
208 208 | "aws.protocoltests.json10.synthetic",
|
209 209 | "OperationWithDefaultsOutput",
|
210 210 | ),
|
211 211 | ::aws_smithy_schema::ShapeType::List,
|
212 - | "default_list",
|
212 + | "defaultList",
|
213 213 | 2,
|
214 214 | );
|
215 215 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_DOCUMENT_MAP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
216 216 | ::aws_smithy_schema::ShapeId::from_static(
|
217 217 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultDocumentMap",
|
218 218 | "aws.protocoltests.json10.synthetic",
|
219 219 | "OperationWithDefaultsOutput",
|
220 220 | ),
|
221 221 | ::aws_smithy_schema::ShapeType::Document,
|
222 - | "default_document_map",
|
222 + | "defaultDocumentMap",
|
223 223 | 3,
|
224 224 | );
|
225 225 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_DOCUMENT_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
226 226 | ::aws_smithy_schema::ShapeId::from_static(
|
227 227 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultDocumentString",
|
228 228 | "aws.protocoltests.json10.synthetic",
|
229 229 | "OperationWithDefaultsOutput",
|
230 230 | ),
|
231 231 | ::aws_smithy_schema::ShapeType::Document,
|
232 - | "default_document_string",
|
232 + | "defaultDocumentString",
|
233 233 | 4,
|
234 234 | );
|
235 235 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_DOCUMENT_BOOLEAN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
236 236 | ::aws_smithy_schema::ShapeId::from_static(
|
237 237 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultDocumentBoolean",
|
238 238 | "aws.protocoltests.json10.synthetic",
|
239 239 | "OperationWithDefaultsOutput",
|
240 240 | ),
|
241 241 | ::aws_smithy_schema::ShapeType::Document,
|
242 - | "default_document_boolean",
|
242 + | "defaultDocumentBoolean",
|
243 243 | 5,
|
244 244 | );
|
245 245 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_DOCUMENT_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
246 246 | ::aws_smithy_schema::ShapeId::from_static(
|
247 247 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultDocumentList",
|
248 248 | "aws.protocoltests.json10.synthetic",
|
249 249 | "OperationWithDefaultsOutput",
|
250 250 | ),
|
251 251 | ::aws_smithy_schema::ShapeType::Document,
|
252 - | "default_document_list",
|
252 + | "defaultDocumentList",
|
253 253 | 6,
|
254 254 | );
|
255 255 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_NULL_DOCUMENT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
256 256 | ::aws_smithy_schema::ShapeId::from_static(
|
257 257 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultNullDocument",
|
258 258 | "aws.protocoltests.json10.synthetic",
|
259 259 | "OperationWithDefaultsOutput",
|
260 260 | ),
|
261 261 | ::aws_smithy_schema::ShapeType::Document,
|
262 - | "default_null_document",
|
262 + | "defaultNullDocument",
|
263 263 | 7,
|
264 264 | );
|
265 265 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_TIMESTAMP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
266 266 | ::aws_smithy_schema::ShapeId::from_static(
|
267 267 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultTimestamp",
|
268 268 | "aws.protocoltests.json10.synthetic",
|
269 269 | "OperationWithDefaultsOutput",
|
270 270 | ),
|
271 271 | ::aws_smithy_schema::ShapeType::Timestamp,
|
272 - | "default_timestamp",
|
272 + | "defaultTimestamp",
|
273 273 | 8,
|
274 274 | );
|
275 275 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_BLOB: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
276 276 | ::aws_smithy_schema::ShapeId::from_static(
|
277 277 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultBlob",
|
278 278 | "aws.protocoltests.json10.synthetic",
|
279 279 | "OperationWithDefaultsOutput",
|
280 280 | ),
|
281 281 | ::aws_smithy_schema::ShapeType::Blob,
|
282 - | "default_blob",
|
282 + | "defaultBlob",
|
283 283 | 9,
|
284 284 | );
|
285 285 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_BYTE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
286 286 | ::aws_smithy_schema::ShapeId::from_static(
|
287 287 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultByte",
|
288 288 | "aws.protocoltests.json10.synthetic",
|
289 289 | "OperationWithDefaultsOutput",
|
290 290 | ),
|
291 291 | ::aws_smithy_schema::ShapeType::Byte,
|
292 - | "default_byte",
|
292 + | "defaultByte",
|
293 293 | 10,
|
294 294 | );
|
295 295 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_SHORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
296 296 | ::aws_smithy_schema::ShapeId::from_static(
|
297 297 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultShort",
|
298 298 | "aws.protocoltests.json10.synthetic",
|
299 299 | "OperationWithDefaultsOutput",
|
300 300 | ),
|
301 301 | ::aws_smithy_schema::ShapeType::Short,
|
302 - | "default_short",
|
302 + | "defaultShort",
|
303 303 | 11,
|
304 304 | );
|
305 305 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_INTEGER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
306 306 | ::aws_smithy_schema::ShapeId::from_static(
|
307 307 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultInteger",
|
308 308 | "aws.protocoltests.json10.synthetic",
|
309 309 | "OperationWithDefaultsOutput",
|
310 310 | ),
|
311 311 | ::aws_smithy_schema::ShapeType::Integer,
|
312 - | "default_integer",
|
312 + | "defaultInteger",
|
313 313 | 12,
|
314 314 | );
|
315 315 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_LONG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
316 316 | ::aws_smithy_schema::ShapeId::from_static(
|
317 317 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultLong",
|
318 318 | "aws.protocoltests.json10.synthetic",
|
319 319 | "OperationWithDefaultsOutput",
|
320 320 | ),
|
321 321 | ::aws_smithy_schema::ShapeType::Long,
|
322 - | "default_long",
|
322 + | "defaultLong",
|
323 323 | 13,
|
324 324 | );
|
325 325 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_FLOAT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
326 326 | ::aws_smithy_schema::ShapeId::from_static(
|
327 327 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultFloat",
|
328 328 | "aws.protocoltests.json10.synthetic",
|
329 329 | "OperationWithDefaultsOutput",
|
330 330 | ),
|
331 331 | ::aws_smithy_schema::ShapeType::Float,
|
332 - | "default_float",
|
332 + | "defaultFloat",
|
333 333 | 14,
|
334 334 | );
|
335 335 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_DOUBLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
336 336 | ::aws_smithy_schema::ShapeId::from_static(
|
337 337 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultDouble",
|
338 338 | "aws.protocoltests.json10.synthetic",
|
339 339 | "OperationWithDefaultsOutput",
|
340 340 | ),
|
341 341 | ::aws_smithy_schema::ShapeType::Double,
|
342 - | "default_double",
|
342 + | "defaultDouble",
|
343 343 | 15,
|
344 344 | );
|
345 345 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_MAP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
346 346 | ::aws_smithy_schema::ShapeId::from_static(
|
347 347 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultMap",
|
348 348 | "aws.protocoltests.json10.synthetic",
|
349 349 | "OperationWithDefaultsOutput",
|
350 350 | ),
|
351 351 | ::aws_smithy_schema::ShapeType::Map,
|
352 - | "default_map",
|
352 + | "defaultMap",
|
353 353 | 16,
|
354 354 | );
|
355 355 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
356 356 | ::aws_smithy_schema::ShapeId::from_static(
|
357 357 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultEnum",
|
358 358 | "aws.protocoltests.json10.synthetic",
|
359 359 | "OperationWithDefaultsOutput",
|
360 360 | ),
|
361 361 | ::aws_smithy_schema::ShapeType::String,
|
362 - | "default_enum",
|
362 + | "defaultEnum",
|
363 363 | 17,
|
364 364 | );
|
365 365 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_INT_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
366 366 | ::aws_smithy_schema::ShapeId::from_static(
|
367 367 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$defaultIntEnum",
|
368 368 | "aws.protocoltests.json10.synthetic",
|
369 369 | "OperationWithDefaultsOutput",
|
370 370 | ),
|
371 371 | ::aws_smithy_schema::ShapeType::Integer,
|
372 - | "default_int_enum",
|
372 + | "defaultIntEnum",
|
373 373 | 18,
|
374 374 | );
|
375 375 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_EMPTY_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
376 376 | ::aws_smithy_schema::ShapeId::from_static(
|
377 377 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$emptyString",
|
378 378 | "aws.protocoltests.json10.synthetic",
|
379 379 | "OperationWithDefaultsOutput",
|
380 380 | ),
|
381 381 | ::aws_smithy_schema::ShapeType::String,
|
382 - | "empty_string",
|
382 + | "emptyString",
|
383 383 | 19,
|
384 384 | );
|
385 385 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_FALSE_BOOLEAN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
386 386 | ::aws_smithy_schema::ShapeId::from_static(
|
387 387 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$falseBoolean",
|
388 388 | "aws.protocoltests.json10.synthetic",
|
389 389 | "OperationWithDefaultsOutput",
|
390 390 | ),
|
391 391 | ::aws_smithy_schema::ShapeType::Boolean,
|
392 - | "false_boolean",
|
392 + | "falseBoolean",
|
393 393 | 20,
|
394 394 | );
|
395 395 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_EMPTY_BLOB: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
396 396 | ::aws_smithy_schema::ShapeId::from_static(
|
397 397 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$emptyBlob",
|
398 398 | "aws.protocoltests.json10.synthetic",
|
399 399 | "OperationWithDefaultsOutput",
|
400 400 | ),
|
401 401 | ::aws_smithy_schema::ShapeType::Blob,
|
402 - | "empty_blob",
|
402 + | "emptyBlob",
|
403 403 | 21,
|
404 404 | );
|
405 405 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_ZERO_BYTE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
406 406 | ::aws_smithy_schema::ShapeId::from_static(
|
407 407 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$zeroByte",
|
408 408 | "aws.protocoltests.json10.synthetic",
|
409 409 | "OperationWithDefaultsOutput",
|
410 410 | ),
|
411 411 | ::aws_smithy_schema::ShapeType::Byte,
|
412 - | "zero_byte",
|
412 + | "zeroByte",
|
413 413 | 22,
|
414 414 | );
|
415 415 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_ZERO_SHORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
416 416 | ::aws_smithy_schema::ShapeId::from_static(
|
417 417 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$zeroShort",
|
418 418 | "aws.protocoltests.json10.synthetic",
|
419 419 | "OperationWithDefaultsOutput",
|
420 420 | ),
|
421 421 | ::aws_smithy_schema::ShapeType::Short,
|
422 - | "zero_short",
|
422 + | "zeroShort",
|
423 423 | 23,
|
424 424 | );
|
425 425 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_ZERO_INTEGER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
426 426 | ::aws_smithy_schema::ShapeId::from_static(
|
427 427 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$zeroInteger",
|
428 428 | "aws.protocoltests.json10.synthetic",
|
429 429 | "OperationWithDefaultsOutput",
|
430 430 | ),
|
431 431 | ::aws_smithy_schema::ShapeType::Integer,
|
432 - | "zero_integer",
|
432 + | "zeroInteger",
|
433 433 | 24,
|
434 434 | );
|
435 435 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_ZERO_LONG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
436 436 | ::aws_smithy_schema::ShapeId::from_static(
|
437 437 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$zeroLong",
|
438 438 | "aws.protocoltests.json10.synthetic",
|
439 439 | "OperationWithDefaultsOutput",
|
440 440 | ),
|
441 441 | ::aws_smithy_schema::ShapeType::Long,
|
442 - | "zero_long",
|
442 + | "zeroLong",
|
443 443 | 25,
|
444 444 | );
|
445 445 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_ZERO_FLOAT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
446 446 | ::aws_smithy_schema::ShapeId::from_static(
|
447 447 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$zeroFloat",
|
448 448 | "aws.protocoltests.json10.synthetic",
|
449 449 | "OperationWithDefaultsOutput",
|
450 450 | ),
|
451 451 | ::aws_smithy_schema::ShapeType::Float,
|
452 - | "zero_float",
|
452 + | "zeroFloat",
|
453 453 | 26,
|
454 454 | );
|
455 455 | static OPERATIONWITHDEFAULTSOUTPUT_MEMBER_ZERO_DOUBLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
456 456 | ::aws_smithy_schema::ShapeId::from_static(
|
457 457 | "aws.protocoltests.json10.synthetic#OperationWithDefaultsOutput$zeroDouble",
|
458 458 | "aws.protocoltests.json10.synthetic",
|
459 459 | "OperationWithDefaultsOutput",
|
460 460 | ),
|
461 461 | ::aws_smithy_schema::ShapeType::Double,
|
462 - | "zero_double",
|
462 + | "zeroDouble",
|
463 463 | 27,
|
464 464 | );
|
465 465 | static OPERATIONWITHDEFAULTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
466 466 | OPERATIONWITHDEFAULTSOUTPUT_SCHEMA_ID,
|
467 467 | ::aws_smithy_schema::ShapeType::Structure,
|
468 468 | &[
|
469 469 | &OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_STRING,
|
470 470 | &OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_BOOLEAN,
|
471 471 | &OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_LIST,
|
472 472 | &OPERATIONWITHDEFAULTSOUTPUT_MEMBER_DEFAULT_DOCUMENT_MAP,
|
634 634 | }
|
635 635 | {
|
636 636 | let val = &self.zero_double;
|
637 637 | ser.write_double(&OPERATIONWITHDEFAULTSOUTPUT_MEMBER_ZERO_DOUBLE, *val)?;
|
638 638 | }
|
639 639 | Ok(())
|
640 640 | }
|
641 641 | }
|
642 642 | impl OperationWithDefaultsOutput {
|
643 643 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
644 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
645 - | deserializer: &mut D,
|
644 + | pub fn deserialize(
|
645 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
646 646 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
647 647 | #[allow(unused_variables, unused_mut)]
|
648 648 | let mut builder = Self::builder();
|
649 649 | #[allow(
|
650 650 | unused_variables,
|
651 651 | unreachable_code,
|
652 652 | clippy::single_match,
|
653 653 | clippy::match_single_binding,
|
654 654 | clippy::diverging_sub_expression
|
655 655 | )]
|
656 - | deserializer.read_struct(&OPERATIONWITHDEFAULTSOUTPUT_SCHEMA, (), |_, member, deser| {
|
656 + | deserializer.read_struct(&OPERATIONWITHDEFAULTSOUTPUT_SCHEMA, &mut |member, deser| {
|
657 657 | match member.member_index() {
|
658 658 | Some(0) => {
|
659 659 | builder.default_string = Some(deser.read_string(member)?);
|
660 660 | }
|
661 661 | Some(1) => {
|
662 662 | builder.default_boolean = Some(deser.read_boolean(member)?);
|
663 663 | }
|
664 664 | Some(2) => {
|
665 - | builder.default_list = Some({
|
666 - | let container = if let Some(cap) = deser.container_size() {
|
667 - | Vec::with_capacity(cap)
|
668 - | } else {
|
669 - | Vec::new()
|
670 - | };
|
671 - | deser.read_list(member, container, |mut list, deser| {
|
672 - | list.push(deser.read_string(member)?);
|
673 - | Ok(list)
|
674 - | })?
|
675 - | });
|
665 + | builder.default_list = Some(deser.read_string_list(member)?);
|
676 666 | }
|
677 667 | Some(3) => {
|
678 668 | builder.default_document_map = Some(deser.read_document(member)?);
|
679 669 | }
|
680 670 | Some(4) => {
|
681 671 | builder.default_document_string = Some(deser.read_document(member)?);
|
682 672 | }
|
683 673 | Some(5) => {
|
684 674 | builder.default_document_boolean = Some(deser.read_document(member)?);
|
685 675 | }
|
686 676 | Some(6) => {
|
687 677 | builder.default_document_list = Some(deser.read_document(member)?);
|
688 678 | }
|
689 679 | Some(7) => {
|
690 680 | builder.default_null_document = Some(deser.read_document(member)?);
|
691 681 | }
|
692 682 | Some(8) => {
|
693 683 | builder.default_timestamp = Some(deser.read_timestamp(member)?);
|
694 684 | }
|
695 685 | Some(9) => {
|
696 686 | builder.default_blob = Some(deser.read_blob(member)?);
|
697 687 | }
|
698 688 | Some(10) => {
|
699 689 | builder.default_byte = Some(deser.read_byte(member)?);
|
700 690 | }
|
701 691 | Some(11) => {
|
702 692 | builder.default_short = Some(deser.read_short(member)?);
|
703 693 | }
|
704 694 | Some(12) => {
|
705 695 | builder.default_integer = Some(deser.read_integer(member)?);
|
706 696 | }
|
707 697 | Some(13) => {
|
708 698 | builder.default_long = Some(deser.read_long(member)?);
|
709 699 | }
|
710 700 | Some(14) => {
|
711 701 | builder.default_float = Some(deser.read_float(member)?);
|
712 702 | }
|
713 703 | Some(15) => {
|
714 704 | builder.default_double = Some(deser.read_double(member)?);
|
715 705 | }
|
716 706 | Some(16) => {
|
717 - | builder.default_map = Some({
|
718 - | let container = if let Some(cap) = deser.container_size() {
|
719 - | std::collections::HashMap::with_capacity(cap)
|
720 - | } else {
|
721 - | std::collections::HashMap::new()
|
722 - | };
|
723 - | deser.read_map(member, container, |mut map, key, deser| {
|
724 - | map.insert(key, deser.read_string(member)?);
|
725 - | Ok(map)
|
726 - | })?
|
727 - | });
|
707 + | builder.default_map = Some(deser.read_string_string_map(member)?);
|
728 708 | }
|
729 709 | Some(17) => {
|
730 710 | builder.default_enum = Some(crate::types::TestEnum::from(deser.read_string(member)?.as_str()));
|
731 711 | }
|
732 712 | Some(18) => {
|
733 713 | builder.default_int_enum = Some(deser.read_integer(member)?);
|
734 714 | }
|
735 715 | Some(19) => {
|
736 716 | builder.empty_string = Some(deser.read_string(member)?);
|
737 717 | }
|
738 718 | Some(20) => {
|
739 719 | builder.false_boolean = Some(deser.read_boolean(member)?);
|
740 720 | }
|
741 721 | Some(21) => {
|
742 722 | builder.empty_blob = Some(deser.read_blob(member)?);
|
743 723 | }
|
744 724 | Some(22) => {
|
745 725 | builder.zero_byte = Some(deser.read_byte(member)?);
|
746 726 | }
|
747 727 | Some(23) => {
|
748 728 | builder.zero_short = Some(deser.read_short(member)?);
|
749 729 | }
|
750 730 | Some(24) => {
|
751 731 | builder.zero_integer = Some(deser.read_integer(member)?);
|
752 732 | }
|
753 733 | Some(25) => {
|
754 734 | builder.zero_long = Some(deser.read_long(member)?);
|
755 735 | }
|
756 736 | Some(26) => {
|
757 737 | builder.zero_float = Some(deser.read_float(member)?);
|
758 738 | }
|
759 739 | Some(27) => {
|
760 740 | builder.zero_double = Some(deser.read_double(member)?);
|
761 741 | }
|
762 742 | _ => {}
|
763 743 | }
|
764 744 | Ok(())
|
765 745 | })?;
|
766 746 | Ok(builder.build())
|
767 747 | }
|
768 748 | }
|
749 + | impl OperationWithDefaultsOutput {
|
750 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
751 + | pub fn deserialize_with_response(
|
752 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
753 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
754 + | _status: u16,
|
755 + | _body: &[u8],
|
756 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
757 + | Self::deserialize(deserializer)
|
758 + | }
|
759 + | }
|
769 760 | impl OperationWithDefaultsOutput {
|
770 761 | /// Creates a new builder-style object to manufacture [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
|
771 762 | pub fn builder() -> crate::operation::operation_with_defaults::builders::OperationWithDefaultsOutputBuilder {
|
772 763 | crate::operation::operation_with_defaults::builders::OperationWithDefaultsOutputBuilder::default()
|
773 764 | }
|
774 765 | }
|
775 766 |
|
776 767 | /// A builder for [`OperationWithDefaultsOutput`](crate::operation::operation_with_defaults::OperationWithDefaultsOutput).
|
777 768 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
778 769 | #[non_exhaustive]
|