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