1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | /* RustType.kt:516 */
|
2 3 | #[allow(clippy::unnecessary_wraps)]
|
4 + | /* ProtocolParserGenerator.kt:99 */
|
3 5 | pub fn de_transact_write_items_http_error(
|
4 6 | _response_status: u16,
|
5 7 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|
6 8 | _response_body: &[u8],
|
7 9 | ) -> std::result::Result<
|
8 10 | crate::operation::transact_write_items::TransactWriteItemsOutput,
|
9 11 | crate::operation::transact_write_items::TransactWriteItemsError,
|
10 12 | > {
|
13 + | /* RustType.kt:516 */
|
11 14 | #[allow(unused_mut)]
|
15 + | /* ProtocolParserGenerator.kt:106 */
|
12 16 | let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body)
|
13 17 | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
18 + | /* ProtocolParserGenerator.kt:120 */
|
14 19 | let generic = generic_builder.build();
|
20 + | /* ProtocolParserGenerator.kt:122 */
|
15 21 | let error_code = match generic.code() {
|
16 22 | Some(code) => code,
|
17 23 | None => return Err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled(generic)),
|
18 24 | };
|
19 25 |
|
20 26 | let _error_message = generic.message().map(|msg| msg.to_owned());
|
27 + | /* ProtocolParserGenerator.kt:133 */
|
21 28 | Err(match error_code {
|
29 + | /* ProtocolParserGenerator.kt:139 */
|
22 30 | "IdempotentParameterMismatchException" => {
|
23 31 | crate::operation::transact_write_items::TransactWriteItemsError::IdempotentParameterMismatchError({
|
32 + | /* RustType.kt:516 */
|
24 33 | #[allow(unused_mut)]
|
25 - | let mut tmp = {
|
26 - | #[allow(unused_mut)]
|
27 - | let mut output = crate::types::error::builders::IdempotentParameterMismatchErrorBuilder::default();
|
28 - | output =
|
29 - | crate::protocol_serde::shape_idempotent_parameter_mismatch_exception::de_idempotent_parameter_mismatch_exception_json_err(
|
30 - | _response_body,
|
31 - | output,
|
32 - | )
|
33 - | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
34 - | let output = output.meta(generic);
|
35 - | output.build()
|
36 - | };
|
34 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
35 + | /* ProtocolParserGenerator.kt:146 */ {
|
36 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
37 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::IdempotentParameterMismatchErrorBuilder::default();
|
38 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_idempotent_parameter_mismatch_exception::de_idempotent_parameter_mismatch_exception_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
39 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
40 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
41 + | /* ProtocolParserGenerator.kt:146 */}
|
42 + | /* ProtocolParserGenerator.kt:145 */;
|
43 + | /* ProtocolParserGenerator.kt:170 */
|
37 44 | if tmp.message.is_none() {
|
38 45 | tmp.message = _error_message;
|
39 46 | }
|
47 + | /* ProtocolParserGenerator.kt:179 */
|
40 48 | tmp
|
49 + | /* ProtocolParserGenerator.kt:139 */
|
41 50 | })
|
42 51 | }
|
52 + | /* ProtocolParserGenerator.kt:139 */
|
43 53 | "InternalServerError" => crate::operation::transact_write_items::TransactWriteItemsError::InternalServerError({
|
54 + | /* RustType.kt:516 */
|
44 55 | #[allow(unused_mut)]
|
45 - | let mut tmp = {
|
46 - | #[allow(unused_mut)]
|
47 - | let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
|
48 - | output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output)
|
49 - | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
50 - | let output = output.meta(generic);
|
51 - | output.build()
|
52 - | };
|
56 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
57 + | /* ProtocolParserGenerator.kt:146 */ {
|
58 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
59 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
|
60 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
61 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
62 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
63 + | /* ProtocolParserGenerator.kt:146 */}
|
64 + | /* ProtocolParserGenerator.kt:145 */;
|
65 + | /* ProtocolParserGenerator.kt:170 */
|
53 66 | if tmp.message.is_none() {
|
54 67 | tmp.message = _error_message;
|
55 68 | }
|
69 + | /* ProtocolParserGenerator.kt:179 */
|
56 70 | tmp
|
71 + | /* ProtocolParserGenerator.kt:139 */
|
57 72 | }),
|
73 + | /* ProtocolParserGenerator.kt:139 */
|
58 74 | "InvalidEndpointException" => crate::operation::transact_write_items::TransactWriteItemsError::InvalidEndpointError({
|
75 + | /* RustType.kt:516 */
|
59 76 | #[allow(unused_mut)]
|
60 - | let mut tmp = {
|
61 - | #[allow(unused_mut)]
|
62 - | let mut output = crate::types::error::builders::InvalidEndpointErrorBuilder::default();
|
63 - | output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output)
|
64 - | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
65 - | let output = output.meta(generic);
|
66 - | output.build()
|
67 - | };
|
77 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
78 + | /* ProtocolParserGenerator.kt:146 */ {
|
79 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
80 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::InvalidEndpointErrorBuilder::default();
|
81 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
82 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
83 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
84 + | /* ProtocolParserGenerator.kt:146 */}
|
85 + | /* ProtocolParserGenerator.kt:145 */;
|
86 + | /* ProtocolParserGenerator.kt:170 */
|
68 87 | if tmp.message.is_none() {
|
69 88 | tmp.message = _error_message;
|
70 89 | }
|
90 + | /* ProtocolParserGenerator.kt:179 */
|
71 91 | tmp
|
92 + | /* ProtocolParserGenerator.kt:139 */
|
72 93 | }),
|
94 + | /* ProtocolParserGenerator.kt:139 */
|
73 95 | "ProvisionedThroughputExceededException" => {
|
74 96 | crate::operation::transact_write_items::TransactWriteItemsError::ProvisionedThroughputExceededError({
|
97 + | /* RustType.kt:516 */
|
75 98 | #[allow(unused_mut)]
|
76 - | let mut tmp = {
|
77 - | #[allow(unused_mut)]
|
78 - | let mut output = crate::types::error::builders::ProvisionedThroughputExceededErrorBuilder::default();
|
79 - | output = crate::protocol_serde::shape_provisioned_throughput_exceeded_exception::de_provisioned_throughput_exceeded_exception_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
80 - | let output = output.meta(generic);
|
81 - | output.build()
|
82 - | };
|
99 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
100 + | /* ProtocolParserGenerator.kt:146 */ {
|
101 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
102 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::ProvisionedThroughputExceededErrorBuilder::default();
|
103 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_provisioned_throughput_exceeded_exception::de_provisioned_throughput_exceeded_exception_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
104 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
105 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
106 + | /* ProtocolParserGenerator.kt:146 */}
|
107 + | /* ProtocolParserGenerator.kt:145 */;
|
108 + | /* ProtocolParserGenerator.kt:170 */
|
83 109 | if tmp.message.is_none() {
|
84 110 | tmp.message = _error_message;
|
85 111 | }
|
112 + | /* ProtocolParserGenerator.kt:179 */
|
86 113 | tmp
|
114 + | /* ProtocolParserGenerator.kt:139 */
|
87 115 | })
|
88 116 | }
|
117 + | /* ProtocolParserGenerator.kt:139 */
|
89 118 | "RequestLimitExceeded" => crate::operation::transact_write_items::TransactWriteItemsError::RequestLimitExceeded({
|
119 + | /* RustType.kt:516 */
|
90 120 | #[allow(unused_mut)]
|
91 - | let mut tmp = {
|
92 - | #[allow(unused_mut)]
|
93 - | let mut output = crate::types::error::builders::RequestLimitExceededBuilder::default();
|
94 - | output = crate::protocol_serde::shape_request_limit_exceeded::de_request_limit_exceeded_json_err(_response_body, output)
|
95 - | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
96 - | let output = output.meta(generic);
|
97 - | output.build()
|
98 - | };
|
121 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
122 + | /* ProtocolParserGenerator.kt:146 */ {
|
123 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
124 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::RequestLimitExceededBuilder::default();
|
125 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_request_limit_exceeded::de_request_limit_exceeded_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
126 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
127 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
128 + | /* ProtocolParserGenerator.kt:146 */}
|
129 + | /* ProtocolParserGenerator.kt:145 */;
|
130 + | /* ProtocolParserGenerator.kt:170 */
|
99 131 | if tmp.message.is_none() {
|
100 132 | tmp.message = _error_message;
|
101 133 | }
|
134 + | /* ProtocolParserGenerator.kt:179 */
|
102 135 | tmp
|
136 + | /* ProtocolParserGenerator.kt:139 */
|
103 137 | }),
|
138 + | /* ProtocolParserGenerator.kt:139 */
|
104 139 | "ResourceNotFoundException" => crate::operation::transact_write_items::TransactWriteItemsError::ResourceNotFoundError({
|
140 + | /* RustType.kt:516 */
|
105 141 | #[allow(unused_mut)]
|
106 - | let mut tmp = {
|
107 - | #[allow(unused_mut)]
|
108 - | let mut output = crate::types::error::builders::ResourceNotFoundErrorBuilder::default();
|
109 - | output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output)
|
110 - | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
111 - | let output = output.meta(generic);
|
112 - | output.build()
|
113 - | };
|
142 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
143 + | /* ProtocolParserGenerator.kt:146 */ {
|
144 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
145 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::ResourceNotFoundErrorBuilder::default();
|
146 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_resource_not_found_exception::de_resource_not_found_exception_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
147 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
148 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
149 + | /* ProtocolParserGenerator.kt:146 */}
|
150 + | /* ProtocolParserGenerator.kt:145 */;
|
151 + | /* ProtocolParserGenerator.kt:170 */
|
114 152 | if tmp.message.is_none() {
|
115 153 | tmp.message = _error_message;
|
116 154 | }
|
155 + | /* ProtocolParserGenerator.kt:179 */
|
117 156 | tmp
|
157 + | /* ProtocolParserGenerator.kt:139 */
|
118 158 | }),
|
159 + | /* ProtocolParserGenerator.kt:139 */
|
119 160 | "TransactionCanceledException" => crate::operation::transact_write_items::TransactWriteItemsError::TransactionCanceledError({
|
161 + | /* RustType.kt:516 */
|
120 162 | #[allow(unused_mut)]
|
121 - | let mut tmp = {
|
122 - | #[allow(unused_mut)]
|
123 - | let mut output = crate::types::error::builders::TransactionCanceledErrorBuilder::default();
|
124 - | output =
|
125 - | crate::protocol_serde::shape_transaction_canceled_exception::de_transaction_canceled_exception_json_err(_response_body, output)
|
126 - | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
127 - | let output = output.meta(generic);
|
128 - | output.build()
|
129 - | };
|
163 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
164 + | /* ProtocolParserGenerator.kt:146 */ {
|
165 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
166 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::TransactionCanceledErrorBuilder::default();
|
167 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_transaction_canceled_exception::de_transaction_canceled_exception_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
168 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
169 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
170 + | /* ProtocolParserGenerator.kt:146 */}
|
171 + | /* ProtocolParserGenerator.kt:145 */;
|
172 + | /* ProtocolParserGenerator.kt:170 */
|
130 173 | if tmp.message.is_none() {
|
131 174 | tmp.message = _error_message;
|
132 175 | }
|
176 + | /* ProtocolParserGenerator.kt:179 */
|
133 177 | tmp
|
178 + | /* ProtocolParserGenerator.kt:139 */
|
134 179 | }),
|
180 + | /* ProtocolParserGenerator.kt:139 */
|
135 181 | "TransactionInProgressException" => crate::operation::transact_write_items::TransactWriteItemsError::TransactionInProgressError({
|
182 + | /* RustType.kt:516 */
|
136 183 | #[allow(unused_mut)]
|
137 - | let mut tmp = {
|
138 - | #[allow(unused_mut)]
|
139 - | let mut output = crate::types::error::builders::TransactionInProgressErrorBuilder::default();
|
140 - | output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err(
|
141 - | _response_body,
|
142 - | output,
|
143 - | )
|
144 - | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
145 - | let output = output.meta(generic);
|
146 - | output.build()
|
147 - | };
|
184 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
185 + | /* ProtocolParserGenerator.kt:146 */ {
|
186 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
187 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::TransactionInProgressErrorBuilder::default();
|
188 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_transaction_in_progress_exception::de_transaction_in_progress_exception_json_err(_response_body, output).map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
189 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
190 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
191 + | /* ProtocolParserGenerator.kt:146 */}
|
192 + | /* ProtocolParserGenerator.kt:145 */;
|
193 + | /* ProtocolParserGenerator.kt:170 */
|
148 194 | if tmp.message.is_none() {
|
149 195 | tmp.message = _error_message;
|
150 196 | }
|
197 + | /* ProtocolParserGenerator.kt:179 */
|
151 198 | tmp
|
199 + | /* ProtocolParserGenerator.kt:139 */
|
152 200 | }),
|
153 - | _ => crate::operation::transact_write_items::TransactWriteItemsError::generic(generic),
|
201 + | /* ProtocolParserGenerator.kt:182 */
|
202 + | _ => crate::operation::transact_write_items::TransactWriteItemsError::generic(generic), /* ProtocolParserGenerator.kt:133 */
|
154 203 | })
|
204 + | /* ProtocolParserGenerator.kt:99 */
|
155 205 | }
|
156 206 |
|
207 + | /* RustType.kt:516 */
|
157 208 | #[allow(clippy::unnecessary_wraps)]
|
209 + | /* ProtocolParserGenerator.kt:71 */
|
158 210 | pub fn de_transact_write_items_http_response(
|
159 211 | _response_status: u16,
|
160 212 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|
161 213 | _response_body: &[u8],
|
162 214 | ) -> std::result::Result<
|
163 215 | crate::operation::transact_write_items::TransactWriteItemsOutput,
|
164 216 | crate::operation::transact_write_items::TransactWriteItemsError,
|
165 217 | > {
|
218 + | /* ProtocolParserGenerator.kt:77 */
|
166 219 | Ok({
|
220 + | /* RustType.kt:516 */
|
167 221 | #[allow(unused_mut)]
|
222 + | /* ProtocolParserGenerator.kt:240 */
|
168 223 | let mut output = crate::operation::transact_write_items::builders::TransactWriteItemsOutputBuilder::default();
|
224 + | /* ProtocolParserGenerator.kt:247 */
|
169 225 | output = crate::protocol_serde::shape_transact_write_items::de_transact_write_items(_response_body, output)
|
170 226 | .map_err(crate::operation::transact_write_items::TransactWriteItemsError::unhandled)?;
|
227 + | /* ClientBuilderInstantiator.kt:56 */
|
171 228 | output.build()
|
229 + | /* ProtocolParserGenerator.kt:77 */
|
172 230 | })
|
231 + | /* ProtocolParserGenerator.kt:71 */
|
173 232 | }
|
174 233 |
|
234 + | /* JsonSerializerGenerator.kt:287 */
|
175 235 | pub fn ser_transact_write_items_input(
|
176 236 | input: &crate::operation::transact_write_items::TransactWriteItemsInput,
|
177 237 | ) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
|
238 + | /* JsonSerializerGenerator.kt:291 */
|
178 239 | let mut out = String::new();
|
240 + | /* JsonSerializerGenerator.kt:292 */
|
179 241 | let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
|
242 + | /* JsonSerializerGenerator.kt:375 */
|
180 243 | crate::protocol_serde::shape_transact_write_items_input::ser_transact_write_items_input_input(&mut object, input)?;
|
244 + | /* JsonSerializerGenerator.kt:295 */
|
181 245 | object.finish();
|
246 + | /* JsonSerializerGenerator.kt:296 */
|
182 247 | Ok(::aws_smithy_types::body::SdkBody::from(out))
|
248 + | /* JsonSerializerGenerator.kt:287 */
|
183 249 | }
|
184 250 |
|
251 + | /* JsonParserGenerator.kt:148 */
|
185 252 | pub(crate) fn de_transact_write_items(
|
186 253 | value: &[u8],
|
187 254 | mut builder: crate::operation::transact_write_items::builders::TransactWriteItemsOutputBuilder,
|
188 255 | ) -> ::std::result::Result<
|
189 256 | crate::operation::transact_write_items::builders::TransactWriteItemsOutputBuilder,
|
190 257 | ::aws_smithy_json::deserialize::error::DeserializeError,
|
191 258 | > {
|
259 + | /* JsonParserGenerator.kt:153 */
|
192 260 | let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable();
|
193 261 | let tokens = &mut tokens_owned;
|
194 262 | ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
|
263 + | /* JsonParserGenerator.kt:684 */
|
195 264 | loop {
|
265 + | /* JsonParserGenerator.kt:685 */
|
196 266 | match tokens.next().transpose()? {
|
197 - | Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
|
198 - | Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
|
199 - | "ConsumedCapacity" => {
|
200 - | builder = builder.set_consumed_capacity(crate::protocol_serde::shape_consumed_capacity_multiple::de_consumed_capacity_multiple(
|
201 - | tokens,
|
202 - | )?);
|
203 - | }
|
204 - | "ItemCollectionMetrics" => {
|
205 - | builder = builder.set_item_collection_metrics(
|
206 - | crate::protocol_serde::shape_item_collection_metrics_per_table::de_item_collection_metrics_per_table(tokens)?,
|
207 - | );
|
267 + | /* JsonParserGenerator.kt:686 */ Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
|
268 + | Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
|
269 + | /* JsonParserGenerator.kt:260 */
|
270 + | match key.to_unescaped()?.as_ref() {
|
271 + | /* JsonParserGenerator.kt:262 */
|
272 + | "ConsumedCapacity" => {
|
273 + | /* JsonParserGenerator.kt:265 */
|
274 + | builder = builder.set_consumed_capacity(
|
275 + | /* JsonParserGenerator.kt:451 */crate::protocol_serde::shape_consumed_capacity_multiple::de_consumed_capacity_multiple(tokens)?
|
276 + | /* JsonParserGenerator.kt:265 */);
|
277 + | /* JsonParserGenerator.kt:262 */
|
278 + | }
|
279 + | /* JsonParserGenerator.kt:262 */
|
280 + | "ItemCollectionMetrics" => {
|
281 + | /* JsonParserGenerator.kt:265 */
|
282 + | builder = builder.set_item_collection_metrics(
|
283 + | /* JsonParserGenerator.kt:509 */crate::protocol_serde::shape_item_collection_metrics_per_table::de_item_collection_metrics_per_table(tokens)?
|
284 + | /* JsonParserGenerator.kt:265 */);
|
285 + | /* JsonParserGenerator.kt:262 */
|
286 + | }
|
287 + | /* JsonParserGenerator.kt:290 */
|
288 + | _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, /* JsonParserGenerator.kt:260 */
|
208 289 | }
|
209 - | _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
|
210 - | },
|
290 + | /* JsonParserGenerator.kt:686 */
|
291 + | }
|
292 + | /* JsonParserGenerator.kt:695 */
|
211 293 | other => {
|
212 294 | return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
|
213 295 | "expected object key or end object, found: {:?}",
|
214 296 | other
|
215 297 | )))
|
216 - | }
|
298 + | } /* JsonParserGenerator.kt:685 */
|
217 299 | }
|
300 + | /* JsonParserGenerator.kt:684 */
|
218 301 | }
|
302 + | /* JsonParserGenerator.kt:250 */
|
219 303 | if tokens.next().is_some() {
|
304 + | /* JsonParserGenerator.kt:251 */
|
220 305 | return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
|
221 306 | "found more JSON tokens after completing parsing",
|
222 307 | ));
|
308 + | /* JsonParserGenerator.kt:250 */
|
223 309 | }
|
310 + | /* JsonParserGenerator.kt:163 */
|
224 311 | Ok(builder)
|
312 + | /* JsonParserGenerator.kt:148 */
|
225 313 | }
|