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_restore_table_to_point_in_time_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::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput,
|
9 11 | crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
|
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::restore_table_to_point_in_time::RestoreTableToPointInTimeError::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::restore_table_to_point_in_time::RestoreTableToPointInTimeError::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 | "InternalServerError" => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::InternalServerError({
|
31 + | /* RustType.kt:516 */
|
23 32 | #[allow(unused_mut)]
|
24 - | let mut tmp = {
|
25 - | #[allow(unused_mut)]
|
26 - | let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
|
27 - | output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output)
|
28 - | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
29 - | let output = output.meta(generic);
|
30 - | output.build()
|
31 - | };
|
33 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
34 + | /* ProtocolParserGenerator.kt:146 */ {
|
35 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
36 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::InternalServerErrorBuilder::default();
|
37 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_internal_server_error::de_internal_server_error_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
38 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
39 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
40 + | /* ProtocolParserGenerator.kt:146 */}
|
41 + | /* ProtocolParserGenerator.kt:145 */;
|
42 + | /* ProtocolParserGenerator.kt:170 */
|
32 43 | if tmp.message.is_none() {
|
33 44 | tmp.message = _error_message;
|
34 45 | }
|
46 + | /* ProtocolParserGenerator.kt:179 */
|
35 47 | tmp
|
48 + | /* ProtocolParserGenerator.kt:139 */
|
36 49 | }),
|
50 + | /* ProtocolParserGenerator.kt:139 */
|
37 51 | "InvalidEndpointException" => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::InvalidEndpointError({
|
52 + | /* RustType.kt:516 */
|
38 53 | #[allow(unused_mut)]
|
39 - | let mut tmp = {
|
40 - | #[allow(unused_mut)]
|
41 - | let mut output = crate::types::error::builders::InvalidEndpointErrorBuilder::default();
|
42 - | output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output)
|
43 - | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
44 - | let output = output.meta(generic);
|
45 - | output.build()
|
46 - | };
|
54 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
55 + | /* ProtocolParserGenerator.kt:146 */ {
|
56 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
57 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::InvalidEndpointErrorBuilder::default();
|
58 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_invalid_endpoint_exception::de_invalid_endpoint_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
59 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
60 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
61 + | /* ProtocolParserGenerator.kt:146 */}
|
62 + | /* ProtocolParserGenerator.kt:145 */;
|
63 + | /* ProtocolParserGenerator.kt:170 */
|
47 64 | if tmp.message.is_none() {
|
48 65 | tmp.message = _error_message;
|
49 66 | }
|
67 + | /* ProtocolParserGenerator.kt:179 */
|
50 68 | tmp
|
69 + | /* ProtocolParserGenerator.kt:139 */
|
51 70 | }),
|
71 + | /* ProtocolParserGenerator.kt:139 */
|
52 72 | "InvalidRestoreTimeException" => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::InvalidRestoreTimeError({
|
73 + | /* RustType.kt:516 */
|
53 74 | #[allow(unused_mut)]
|
54 - | let mut tmp = {
|
55 - | #[allow(unused_mut)]
|
56 - | let mut output = crate::types::error::builders::InvalidRestoreTimeErrorBuilder::default();
|
57 - | output =
|
58 - | crate::protocol_serde::shape_invalid_restore_time_exception::de_invalid_restore_time_exception_json_err(_response_body, output)
|
59 - | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
60 - | let output = output.meta(generic);
|
61 - | output.build()
|
62 - | };
|
75 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
76 + | /* ProtocolParserGenerator.kt:146 */ {
|
77 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
78 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::InvalidRestoreTimeErrorBuilder::default();
|
79 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_invalid_restore_time_exception::de_invalid_restore_time_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
80 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
81 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
82 + | /* ProtocolParserGenerator.kt:146 */}
|
83 + | /* ProtocolParserGenerator.kt:145 */;
|
84 + | /* ProtocolParserGenerator.kt:170 */
|
63 85 | if tmp.message.is_none() {
|
64 86 | tmp.message = _error_message;
|
65 87 | }
|
88 + | /* ProtocolParserGenerator.kt:179 */
|
66 89 | tmp
|
90 + | /* ProtocolParserGenerator.kt:139 */
|
67 91 | }),
|
92 + | /* ProtocolParserGenerator.kt:139 */
|
68 93 | "LimitExceededException" => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::LimitExceededError({
|
94 + | /* RustType.kt:516 */
|
69 95 | #[allow(unused_mut)]
|
70 - | let mut tmp = {
|
71 - | #[allow(unused_mut)]
|
72 - | let mut output = crate::types::error::builders::LimitExceededErrorBuilder::default();
|
73 - | output = crate::protocol_serde::shape_limit_exceeded_exception::de_limit_exceeded_exception_json_err(_response_body, output)
|
74 - | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
75 - | let output = output.meta(generic);
|
76 - | output.build()
|
77 - | };
|
96 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
97 + | /* ProtocolParserGenerator.kt:146 */ {
|
98 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
99 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::LimitExceededErrorBuilder::default();
|
100 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_limit_exceeded_exception::de_limit_exceeded_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
101 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
102 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
103 + | /* ProtocolParserGenerator.kt:146 */}
|
104 + | /* ProtocolParserGenerator.kt:145 */;
|
105 + | /* ProtocolParserGenerator.kt:170 */
|
78 106 | if tmp.message.is_none() {
|
79 107 | tmp.message = _error_message;
|
80 108 | }
|
109 + | /* ProtocolParserGenerator.kt:179 */
|
81 110 | tmp
|
111 + | /* ProtocolParserGenerator.kt:139 */
|
82 112 | }),
|
113 + | /* ProtocolParserGenerator.kt:139 */
|
83 114 | "PointInTimeRecoveryUnavailableException" => {
|
84 115 | crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::PointInTimeRecoveryUnavailableError({
|
116 + | /* RustType.kt:516 */
|
85 117 | #[allow(unused_mut)]
|
86 - | let mut tmp = {
|
87 - | #[allow(unused_mut)]
|
88 - | let mut output = crate::types::error::builders::PointInTimeRecoveryUnavailableErrorBuilder::default();
|
89 - | output = crate::protocol_serde::shape_point_in_time_recovery_unavailable_exception::de_point_in_time_recovery_unavailable_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
90 - | let output = output.meta(generic);
|
91 - | output.build()
|
92 - | };
|
118 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
119 + | /* ProtocolParserGenerator.kt:146 */ {
|
120 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
121 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::PointInTimeRecoveryUnavailableErrorBuilder::default();
|
122 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_point_in_time_recovery_unavailable_exception::de_point_in_time_recovery_unavailable_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
123 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
124 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
125 + | /* ProtocolParserGenerator.kt:146 */}
|
126 + | /* ProtocolParserGenerator.kt:145 */;
|
127 + | /* ProtocolParserGenerator.kt:170 */
|
93 128 | if tmp.message.is_none() {
|
94 129 | tmp.message = _error_message;
|
95 130 | }
|
131 + | /* ProtocolParserGenerator.kt:179 */
|
96 132 | tmp
|
133 + | /* ProtocolParserGenerator.kt:139 */
|
97 134 | })
|
98 135 | }
|
136 + | /* ProtocolParserGenerator.kt:139 */
|
99 137 | "TableAlreadyExistsException" => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::TableAlreadyExistsError({
|
138 + | /* RustType.kt:516 */
|
100 139 | #[allow(unused_mut)]
|
101 - | let mut tmp = {
|
102 - | #[allow(unused_mut)]
|
103 - | let mut output = crate::types::error::builders::TableAlreadyExistsErrorBuilder::default();
|
104 - | output =
|
105 - | crate::protocol_serde::shape_table_already_exists_exception::de_table_already_exists_exception_json_err(_response_body, output)
|
106 - | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
107 - | let output = output.meta(generic);
|
108 - | output.build()
|
109 - | };
|
140 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
141 + | /* ProtocolParserGenerator.kt:146 */ {
|
142 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
143 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::TableAlreadyExistsErrorBuilder::default();
|
144 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_table_already_exists_exception::de_table_already_exists_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
145 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
146 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
147 + | /* ProtocolParserGenerator.kt:146 */}
|
148 + | /* ProtocolParserGenerator.kt:145 */;
|
149 + | /* ProtocolParserGenerator.kt:170 */
|
110 150 | if tmp.message.is_none() {
|
111 151 | tmp.message = _error_message;
|
112 152 | }
|
153 + | /* ProtocolParserGenerator.kt:179 */
|
113 154 | tmp
|
155 + | /* ProtocolParserGenerator.kt:139 */
|
114 156 | }),
|
157 + | /* ProtocolParserGenerator.kt:139 */
|
115 158 | "TableInUseException" => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::TableInUseError({
|
159 + | /* RustType.kt:516 */
|
116 160 | #[allow(unused_mut)]
|
117 - | let mut tmp = {
|
118 - | #[allow(unused_mut)]
|
119 - | let mut output = crate::types::error::builders::TableInUseErrorBuilder::default();
|
120 - | output = crate::protocol_serde::shape_table_in_use_exception::de_table_in_use_exception_json_err(_response_body, output)
|
121 - | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
122 - | let output = output.meta(generic);
|
123 - | output.build()
|
124 - | };
|
161 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
162 + | /* ProtocolParserGenerator.kt:146 */ {
|
163 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
164 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::TableInUseErrorBuilder::default();
|
165 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_table_in_use_exception::de_table_in_use_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
166 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
167 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
168 + | /* ProtocolParserGenerator.kt:146 */}
|
169 + | /* ProtocolParserGenerator.kt:145 */;
|
170 + | /* ProtocolParserGenerator.kt:170 */
|
125 171 | if tmp.message.is_none() {
|
126 172 | tmp.message = _error_message;
|
127 173 | }
|
174 + | /* ProtocolParserGenerator.kt:179 */
|
128 175 | tmp
|
176 + | /* ProtocolParserGenerator.kt:139 */
|
129 177 | }),
|
178 + | /* ProtocolParserGenerator.kt:139 */
|
130 179 | "TableNotFoundException" => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::TableNotFoundError({
|
180 + | /* RustType.kt:516 */
|
131 181 | #[allow(unused_mut)]
|
132 - | let mut tmp = {
|
133 - | #[allow(unused_mut)]
|
134 - | let mut output = crate::types::error::builders::TableNotFoundErrorBuilder::default();
|
135 - | output = crate::protocol_serde::shape_table_not_found_exception::de_table_not_found_exception_json_err(_response_body, output)
|
136 - | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
137 - | let output = output.meta(generic);
|
138 - | output.build()
|
139 - | };
|
182 + | /* ProtocolParserGenerator.kt:145 */let mut tmp =
|
183 + | /* ProtocolParserGenerator.kt:146 */ {
|
184 + | /* RustType.kt:516 */#[allow(unused_mut)]
|
185 + | /* ProtocolParserGenerator.kt:240 */let mut output = crate::types::error::builders::TableNotFoundErrorBuilder::default();
|
186 + | /* ProtocolParserGenerator.kt:257 */output = crate::protocol_serde::shape_table_not_found_exception::de_table_not_found_exception_json_err(_response_body, output).map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
187 + | /* ProtocolParserGenerator.kt:157 */let output = output.meta(generic);
|
188 + | /* ClientBuilderInstantiator.kt:56 */output.build()
|
189 + | /* ProtocolParserGenerator.kt:146 */}
|
190 + | /* ProtocolParserGenerator.kt:145 */;
|
191 + | /* ProtocolParserGenerator.kt:170 */
|
140 192 | if tmp.message.is_none() {
|
141 193 | tmp.message = _error_message;
|
142 194 | }
|
195 + | /* ProtocolParserGenerator.kt:179 */
|
143 196 | tmp
|
197 + | /* ProtocolParserGenerator.kt:139 */
|
144 198 | }),
|
145 - | _ => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::generic(generic),
|
199 + | /* ProtocolParserGenerator.kt:182 */
|
200 + | _ => crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::generic(generic), /* ProtocolParserGenerator.kt:133 */
|
146 201 | })
|
202 + | /* ProtocolParserGenerator.kt:99 */
|
147 203 | }
|
148 204 |
|
205 + | /* RustType.kt:516 */
|
149 206 | #[allow(clippy::unnecessary_wraps)]
|
207 + | /* ProtocolParserGenerator.kt:71 */
|
150 208 | pub fn de_restore_table_to_point_in_time_http_response(
|
151 209 | _response_status: u16,
|
152 210 | _response_headers: &::aws_smithy_runtime_api::http::Headers,
|
153 211 | _response_body: &[u8],
|
154 212 | ) -> std::result::Result<
|
155 213 | crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeOutput,
|
156 214 | crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError,
|
157 215 | > {
|
216 + | /* ProtocolParserGenerator.kt:77 */
|
158 217 | Ok({
|
218 + | /* RustType.kt:516 */
|
159 219 | #[allow(unused_mut)]
|
220 + | /* ProtocolParserGenerator.kt:240 */
|
160 221 | let mut output = crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeOutputBuilder::default();
|
222 + | /* ProtocolParserGenerator.kt:247 */
|
161 223 | output = crate::protocol_serde::shape_restore_table_to_point_in_time::de_restore_table_to_point_in_time(_response_body, output)
|
162 224 | .map_err(crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeError::unhandled)?;
|
225 + | /* ClientBuilderInstantiator.kt:56 */
|
163 226 | output.build()
|
227 + | /* ProtocolParserGenerator.kt:77 */
|
164 228 | })
|
229 + | /* ProtocolParserGenerator.kt:71 */
|
165 230 | }
|
166 231 |
|
232 + | /* JsonSerializerGenerator.kt:287 */
|
167 233 | pub fn ser_restore_table_to_point_in_time_input(
|
168 234 | input: &crate::operation::restore_table_to_point_in_time::RestoreTableToPointInTimeInput,
|
169 235 | ) -> ::std::result::Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
|
236 + | /* JsonSerializerGenerator.kt:291 */
|
170 237 | let mut out = String::new();
|
238 + | /* JsonSerializerGenerator.kt:292 */
|
171 239 | let mut object = ::aws_smithy_json::serialize::JsonObjectWriter::new(&mut out);
|
240 + | /* JsonSerializerGenerator.kt:375 */
|
172 241 | crate::protocol_serde::shape_restore_table_to_point_in_time_input::ser_restore_table_to_point_in_time_input_input(&mut object, input)?;
|
242 + | /* JsonSerializerGenerator.kt:295 */
|
173 243 | object.finish();
|
244 + | /* JsonSerializerGenerator.kt:296 */
|
174 245 | Ok(::aws_smithy_types::body::SdkBody::from(out))
|
246 + | /* JsonSerializerGenerator.kt:287 */
|
175 247 | }
|
176 248 |
|
249 + | /* JsonParserGenerator.kt:148 */
|
177 250 | pub(crate) fn de_restore_table_to_point_in_time(
|
178 251 | value: &[u8],
|
179 252 | mut builder: crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeOutputBuilder,
|
180 253 | ) -> ::std::result::Result<
|
181 254 | crate::operation::restore_table_to_point_in_time::builders::RestoreTableToPointInTimeOutputBuilder,
|
182 255 | ::aws_smithy_json::deserialize::error::DeserializeError,
|
183 256 | > {
|
257 + | /* JsonParserGenerator.kt:153 */
|
184 258 | let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable();
|
185 259 | let tokens = &mut tokens_owned;
|
186 260 | ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;
|
261 + | /* JsonParserGenerator.kt:684 */
|
187 262 | loop {
|
263 + | /* JsonParserGenerator.kt:685 */
|
188 264 | match tokens.next().transpose()? {
|
189 - | Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
|
190 - | Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => match key.to_unescaped()?.as_ref() {
|
191 - | "TableDescription" => {
|
192 - | builder = builder.set_table_description(crate::protocol_serde::shape_table_description::de_table_description(tokens)?);
|
265 + | /* JsonParserGenerator.kt:686 */ Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
|
266 + | Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
|
267 + | /* JsonParserGenerator.kt:260 */
|
268 + | match key.to_unescaped()?.as_ref() {
|
269 + | /* JsonParserGenerator.kt:262 */
|
270 + | "TableDescription" => {
|
271 + | /* JsonParserGenerator.kt:265 */
|
272 + | builder = builder.set_table_description(
|
273 + | /* JsonParserGenerator.kt:544 */
|
274 + | crate::protocol_serde::shape_table_description::de_table_description(tokens)?, /* JsonParserGenerator.kt:265 */
|
275 + | );
|
276 + | /* JsonParserGenerator.kt:262 */
|
277 + | }
|
278 + | /* JsonParserGenerator.kt:290 */
|
279 + | _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?, /* JsonParserGenerator.kt:260 */
|
193 280 | }
|
194 - | _ => ::aws_smithy_json::deserialize::token::skip_value(tokens)?,
|
195 - | },
|
281 + | /* JsonParserGenerator.kt:686 */
|
282 + | }
|
283 + | /* JsonParserGenerator.kt:695 */
|
196 284 | other => {
|
197 285 | return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
|
198 286 | "expected object key or end object, found: {:?}",
|
199 287 | other
|
200 288 | )))
|
201 - | }
|
289 + | } /* JsonParserGenerator.kt:685 */
|
202 290 | }
|
291 + | /* JsonParserGenerator.kt:684 */
|
203 292 | }
|
293 + | /* JsonParserGenerator.kt:250 */
|
204 294 | if tokens.next().is_some() {
|
295 + | /* JsonParserGenerator.kt:251 */
|
205 296 | return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
|
206 297 | "found more JSON tokens after completing parsing",
|
207 298 | ));
|
299 + | /* JsonParserGenerator.kt:250 */
|
208 300 | }
|
301 + | /* JsonParserGenerator.kt:163 */
|
209 302 | Ok(builder)
|
303 + | /* JsonParserGenerator.kt:148 */
|
210 304 | }
|