97 97 | "aws.protocoltests.json10.synthetic",
|
98 98 | "OperationWithRequiredMembersWithDefaultsOutput",
|
99 99 | );
|
100 100 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_STRING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
101 101 | ::aws_smithy_schema::ShapeId::from_static(
|
102 102 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredString",
|
103 103 | "aws.protocoltests.json10.synthetic",
|
104 104 | "OperationWithRequiredMembersWithDefaultsOutput",
|
105 105 | ),
|
106 106 | ::aws_smithy_schema::ShapeType::String,
|
107 - | "required_string",
|
107 + | "requiredString",
|
108 108 | 0,
|
109 109 | );
|
110 110 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_BOOLEAN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
111 111 | ::aws_smithy_schema::ShapeId::from_static(
|
112 112 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredBoolean",
|
113 113 | "aws.protocoltests.json10.synthetic",
|
114 114 | "OperationWithRequiredMembersWithDefaultsOutput",
|
115 115 | ),
|
116 116 | ::aws_smithy_schema::ShapeType::Boolean,
|
117 - | "required_boolean",
|
117 + | "requiredBoolean",
|
118 118 | 1,
|
119 119 | );
|
120 120 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_LIST: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
121 121 | ::aws_smithy_schema::ShapeId::from_static(
|
122 122 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredList",
|
123 123 | "aws.protocoltests.json10.synthetic",
|
124 124 | "OperationWithRequiredMembersWithDefaultsOutput",
|
125 125 | ),
|
126 126 | ::aws_smithy_schema::ShapeType::List,
|
127 - | "required_list",
|
127 + | "requiredList",
|
128 128 | 2,
|
129 129 | );
|
130 130 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_TIMESTAMP: ::aws_smithy_schema::Schema =
|
131 131 | ::aws_smithy_schema::Schema::new_member(
|
132 132 | ::aws_smithy_schema::ShapeId::from_static(
|
133 133 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredTimestamp",
|
134 134 | "aws.protocoltests.json10.synthetic",
|
135 135 | "OperationWithRequiredMembersWithDefaultsOutput",
|
136 136 | ),
|
137 137 | ::aws_smithy_schema::ShapeType::Timestamp,
|
138 - | "required_timestamp",
|
138 + | "requiredTimestamp",
|
139 139 | 3,
|
140 140 | );
|
141 141 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_BLOB: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
142 142 | ::aws_smithy_schema::ShapeId::from_static(
|
143 143 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredBlob",
|
144 144 | "aws.protocoltests.json10.synthetic",
|
145 145 | "OperationWithRequiredMembersWithDefaultsOutput",
|
146 146 | ),
|
147 147 | ::aws_smithy_schema::ShapeType::Blob,
|
148 - | "required_blob",
|
148 + | "requiredBlob",
|
149 149 | 4,
|
150 150 | );
|
151 151 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_BYTE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
152 152 | ::aws_smithy_schema::ShapeId::from_static(
|
153 153 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredByte",
|
154 154 | "aws.protocoltests.json10.synthetic",
|
155 155 | "OperationWithRequiredMembersWithDefaultsOutput",
|
156 156 | ),
|
157 157 | ::aws_smithy_schema::ShapeType::Byte,
|
158 - | "required_byte",
|
158 + | "requiredByte",
|
159 159 | 5,
|
160 160 | );
|
161 161 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_SHORT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
162 162 | ::aws_smithy_schema::ShapeId::from_static(
|
163 163 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredShort",
|
164 164 | "aws.protocoltests.json10.synthetic",
|
165 165 | "OperationWithRequiredMembersWithDefaultsOutput",
|
166 166 | ),
|
167 167 | ::aws_smithy_schema::ShapeType::Short,
|
168 - | "required_short",
|
168 + | "requiredShort",
|
169 169 | 6,
|
170 170 | );
|
171 171 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_INTEGER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
172 172 | ::aws_smithy_schema::ShapeId::from_static(
|
173 173 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredInteger",
|
174 174 | "aws.protocoltests.json10.synthetic",
|
175 175 | "OperationWithRequiredMembersWithDefaultsOutput",
|
176 176 | ),
|
177 177 | ::aws_smithy_schema::ShapeType::Integer,
|
178 - | "required_integer",
|
178 + | "requiredInteger",
|
179 179 | 7,
|
180 180 | );
|
181 181 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_LONG: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
182 182 | ::aws_smithy_schema::ShapeId::from_static(
|
183 183 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredLong",
|
184 184 | "aws.protocoltests.json10.synthetic",
|
185 185 | "OperationWithRequiredMembersWithDefaultsOutput",
|
186 186 | ),
|
187 187 | ::aws_smithy_schema::ShapeType::Long,
|
188 - | "required_long",
|
188 + | "requiredLong",
|
189 189 | 8,
|
190 190 | );
|
191 191 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_FLOAT: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
192 192 | ::aws_smithy_schema::ShapeId::from_static(
|
193 193 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredFloat",
|
194 194 | "aws.protocoltests.json10.synthetic",
|
195 195 | "OperationWithRequiredMembersWithDefaultsOutput",
|
196 196 | ),
|
197 197 | ::aws_smithy_schema::ShapeType::Float,
|
198 - | "required_float",
|
198 + | "requiredFloat",
|
199 199 | 9,
|
200 200 | );
|
201 201 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_DOUBLE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
202 202 | ::aws_smithy_schema::ShapeId::from_static(
|
203 203 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredDouble",
|
204 204 | "aws.protocoltests.json10.synthetic",
|
205 205 | "OperationWithRequiredMembersWithDefaultsOutput",
|
206 206 | ),
|
207 207 | ::aws_smithy_schema::ShapeType::Double,
|
208 - | "required_double",
|
208 + | "requiredDouble",
|
209 209 | 10,
|
210 210 | );
|
211 211 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_MAP: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
212 212 | ::aws_smithy_schema::ShapeId::from_static(
|
213 213 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredMap",
|
214 214 | "aws.protocoltests.json10.synthetic",
|
215 215 | "OperationWithRequiredMembersWithDefaultsOutput",
|
216 216 | ),
|
217 217 | ::aws_smithy_schema::ShapeType::Map,
|
218 - | "required_map",
|
218 + | "requiredMap",
|
219 219 | 11,
|
220 220 | );
|
221 221 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
222 222 | ::aws_smithy_schema::ShapeId::from_static(
|
223 223 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredEnum",
|
224 224 | "aws.protocoltests.json10.synthetic",
|
225 225 | "OperationWithRequiredMembersWithDefaultsOutput",
|
226 226 | ),
|
227 227 | ::aws_smithy_schema::ShapeType::String,
|
228 - | "required_enum",
|
228 + | "requiredEnum",
|
229 229 | 12,
|
230 230 | );
|
231 231 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_INT_ENUM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
232 232 | ::aws_smithy_schema::ShapeId::from_static(
|
233 233 | "aws.protocoltests.json10.synthetic#OperationWithRequiredMembersWithDefaultsOutput$requiredIntEnum",
|
234 234 | "aws.protocoltests.json10.synthetic",
|
235 235 | "OperationWithRequiredMembersWithDefaultsOutput",
|
236 236 | ),
|
237 237 | ::aws_smithy_schema::ShapeType::Integer,
|
238 - | "required_int_enum",
|
238 + | "requiredIntEnum",
|
239 239 | 13,
|
240 240 | );
|
241 241 | static OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
242 242 | OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_SCHEMA_ID,
|
243 243 | ::aws_smithy_schema::ShapeType::Structure,
|
244 244 | &[
|
245 245 | &OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_STRING,
|
246 246 | &OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_BOOLEAN,
|
247 247 | &OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_LIST,
|
248 248 | &OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_TIMESTAMP,
|
341 341 | }
|
342 342 | {
|
343 343 | let val = &self.required_int_enum;
|
344 344 | ser.write_integer(&OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_MEMBER_REQUIRED_INT_ENUM, *val)?;
|
345 345 | }
|
346 346 | Ok(())
|
347 347 | }
|
348 348 | }
|
349 349 | impl OperationWithRequiredMembersWithDefaultsOutput {
|
350 350 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
351 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
352 - | deserializer: &mut D,
|
351 + | pub fn deserialize(
|
352 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
353 353 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
354 354 | #[allow(unused_variables, unused_mut)]
|
355 355 | let mut builder = Self::builder();
|
356 356 | #[allow(
|
357 357 | unused_variables,
|
358 358 | unreachable_code,
|
359 359 | clippy::single_match,
|
360 360 | clippy::match_single_binding,
|
361 361 | clippy::diverging_sub_expression
|
362 362 | )]
|
363 - | deserializer.read_struct(&OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_SCHEMA, (), |_, member, deser| {
|
363 + | deserializer.read_struct(&OPERATIONWITHREQUIREDMEMBERSWITHDEFAULTSOUTPUT_SCHEMA, &mut |member, deser| {
|
364 364 | match member.member_index() {
|
365 365 | Some(0) => {
|
366 366 | builder.required_string = Some(deser.read_string(member)?);
|
367 367 | }
|
368 368 | Some(1) => {
|
369 369 | builder.required_boolean = Some(deser.read_boolean(member)?);
|
370 370 | }
|
371 371 | Some(2) => {
|
372 - | builder.required_list = Some({
|
373 - | let container = if let Some(cap) = deser.container_size() {
|
374 - | Vec::with_capacity(cap)
|
375 - | } else {
|
376 - | Vec::new()
|
377 - | };
|
378 - | deser.read_list(member, container, |mut list, deser| {
|
379 - | list.push(deser.read_string(member)?);
|
380 - | Ok(list)
|
381 - | })?
|
382 - | });
|
372 + | builder.required_list = Some(deser.read_string_list(member)?);
|
383 373 | }
|
384 374 | Some(3) => {
|
385 375 | builder.required_timestamp = Some(deser.read_timestamp(member)?);
|
386 376 | }
|
387 377 | Some(4) => {
|
388 378 | builder.required_blob = Some(deser.read_blob(member)?);
|
389 379 | }
|
390 380 | Some(5) => {
|
391 381 | builder.required_byte = Some(deser.read_byte(member)?);
|
392 382 | }
|
393 383 | Some(6) => {
|
394 384 | builder.required_short = Some(deser.read_short(member)?);
|
395 385 | }
|
396 386 | Some(7) => {
|
397 387 | builder.required_integer = Some(deser.read_integer(member)?);
|
398 388 | }
|
399 389 | Some(8) => {
|
400 390 | builder.required_long = Some(deser.read_long(member)?);
|
401 391 | }
|
402 392 | Some(9) => {
|
403 393 | builder.required_float = Some(deser.read_float(member)?);
|
404 394 | }
|
405 395 | Some(10) => {
|
406 396 | builder.required_double = Some(deser.read_double(member)?);
|
407 397 | }
|
408 398 | Some(11) => {
|
409 - | builder.required_map = Some({
|
410 - | let container = if let Some(cap) = deser.container_size() {
|
411 - | std::collections::HashMap::with_capacity(cap)
|
412 - | } else {
|
413 - | std::collections::HashMap::new()
|
414 - | };
|
415 - | deser.read_map(member, container, |mut map, key, deser| {
|
416 - | map.insert(key, deser.read_string(member)?);
|
417 - | Ok(map)
|
418 - | })?
|
419 - | });
|
399 + | builder.required_map = Some(deser.read_string_string_map(member)?);
|
420 400 | }
|
421 401 | Some(12) => {
|
422 402 | builder.required_enum = Some(crate::types::RequiredEnum::from(deser.read_string(member)?.as_str()));
|
423 403 | }
|
424 404 | Some(13) => {
|
425 405 | builder.required_int_enum = Some(deser.read_integer(member)?);
|
426 406 | }
|
427 407 | _ => {}
|
428 408 | }
|
429 409 | Ok(())
|
430 410 | })?;
|
431 411 | Ok(builder.build())
|
432 412 | }
|
433 413 | }
|
414 + | impl OperationWithRequiredMembersWithDefaultsOutput {
|
415 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
416 + | pub fn deserialize_with_response(
|
417 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
418 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
419 + | _status: u16,
|
420 + | _body: &[u8],
|
421 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
422 + | Self::deserialize(deserializer)
|
423 + | }
|
424 + | }
|
434 425 | impl OperationWithRequiredMembersWithDefaultsOutput {
|
435 426 | /// Creates a new builder-style object to manufacture [`OperationWithRequiredMembersWithDefaultsOutput`](crate::operation::operation_with_required_members_with_defaults::OperationWithRequiredMembersWithDefaultsOutput).
|
436 427 | pub fn builder(
|
437 428 | ) -> crate::operation::operation_with_required_members_with_defaults::builders::OperationWithRequiredMembersWithDefaultsOutputBuilder {
|
438 429 | crate::operation::operation_with_required_members_with_defaults::builders::OperationWithRequiredMembersWithDefaultsOutputBuilder::default()
|
439 430 | }
|
440 431 | }
|
441 432 |
|
442 433 | /// A builder for [`OperationWithRequiredMembersWithDefaultsOutput`](crate::operation::operation_with_required_members_with_defaults::OperationWithRequiredMembersWithDefaultsOutput).
|
443 434 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|