Server Test
rev. 1661690c47759989ca94986fb8d3e5132fc72dc5
Files changed:
@@ -1,1 +0,2 @@
1 1 | [build]
|
2 - | rustflags = ["--cfg", "aws_sdk_unstable"]
|
\ | No newline at end of file
|
2 + | rustflags = ["--deny", "warnings", "--cfg", "aws_sdk_unstable"]
|
@@ -28,28 +88,87 @@
28 28 | }
|
29 29 | }
|
30 30 |
|
31 31 | impl<B>
|
32 32 | ::aws_smithy_http_server::request::FromRequest<
|
33 33 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
34 34 | B,
|
35 35 | > for crate::input::EventStreamsOperationInput
|
36 36 | where
|
37 37 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38 38 | B: 'static,
|
39 39 |
|
40 40 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
41 41 | B::Data: Send,
|
42 42 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
43 43 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
44 44 | {
|
45 45 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
46 46 | type Future = EventStreamsOperationInputFuture;
|
47 47 |
|
48 48 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
49 49 | let fut = async move {
|
50 50 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
51 51 | request.headers(),
|
52 52 | &CONTENT_TYPE_EVENTSTREAMSOPERATION,
|
53 53 | ) {
|
54 54 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
55 55 | }
|
56 56 | crate::protocol_serde::shape_event_streams_operation::de_event_streams_operation_http_request(request)
|
57 57 | .await
|
58 - | .map_err(Into::into)
|
59 58 | };
|
60 59 | use ::futures_util::future::TryFutureExt;
|
61 60 | let fut = fut.map_err(
|
62 61 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
63 62 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
64 63 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
65 64 | e,
|
66 65 | )
|
67 66 | },
|
68 67 | );
|
69 68 | EventStreamsOperationInputFuture {
|
70 69 | inner: Box::pin(fut),
|
71 70 | }
|
72 71 | }
|
73 72 | }
|
74 73 | impl
|
75 74 | ::aws_smithy_http_server::response::IntoResponse<
|
76 75 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
77 76 | > for crate::output::EventStreamsOperationOutput
|
78 77 | {
|
79 78 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
80 79 | match crate::protocol_serde::shape_event_streams_operation::ser_event_streams_operation_http_response(self) {
|
81 80 | Ok(response) => response,
|
82 81 | Err(e) => {
|
83 82 | ::tracing::error!(error = %e, "failed to serialize response");
|
84 83 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
85 84 | }
|
86 85 | }
|
87 86 | }
|
88 87 | }
|
@@ -129,128 +189,187 @@
129 128 | }
|
130 129 | }
|
131 130 |
|
132 131 | impl<B>
|
133 132 | ::aws_smithy_http_server::request::FromRequest<
|
134 133 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
135 134 | B,
|
136 135 | > for crate::input::StreamingBlobOperationInput
|
137 136 | where
|
138 137 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
139 138 | B: 'static,
|
140 139 |
|
141 140 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
142 141 | B::Data: Send,
|
143 142 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
144 143 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
145 144 | {
|
146 145 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
147 146 | type Future = StreamingBlobOperationInputFuture;
|
148 147 |
|
149 148 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
150 149 | let fut = async move {
|
151 150 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
152 151 | request.headers(),
|
153 152 | &CONTENT_TYPE_STREAMINGBLOBOPERATION,
|
154 153 | ) {
|
155 154 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
156 155 | }
|
157 156 | crate::protocol_serde::shape_streaming_blob_operation::de_streaming_blob_operation_http_request(request)
|
158 157 | .await
|
159 - | .map_err(Into::into)
|
160 158 | };
|
161 159 | use ::futures_util::future::TryFutureExt;
|
162 160 | let fut = fut.map_err(
|
163 161 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
164 162 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
165 163 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
166 164 | e,
|
167 165 | )
|
168 166 | },
|
169 167 | );
|
170 168 | StreamingBlobOperationInputFuture {
|
171 169 | inner: Box::pin(fut),
|
172 170 | }
|
173 171 | }
|
174 172 | }
|
175 173 | impl
|
176 174 | ::aws_smithy_http_server::response::IntoResponse<
|
177 175 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
178 176 | > for crate::output::StreamingBlobOperationOutput
|
179 177 | {
|
180 178 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
181 179 | match crate::protocol_serde::shape_streaming_blob_operation::ser_streaming_blob_operation_http_response(self) {
|
182 180 | Ok(response) => response,
|
183 181 | Err(e) => {
|
184 182 | ::tracing::error!(error = %e, "failed to serialize response");
|
185 183 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
186 184 | }
|
187 185 | }
|
188 186 | }
|
189 187 | }
|
@@ -204,202 +264,261 @@
204 202 |
|
205 203 | fn poll(
|
206 204 | self: std::pin::Pin<&mut Self>,
|
207 205 | cx: &mut std::task::Context<'_>,
|
208 206 | ) -> std::task::Poll<Self::Output> {
|
209 207 | let this = self.project();
|
210 208 | this.inner.as_mut().poll(cx)
|
211 209 | }
|
212 210 | }
|
213 211 |
|
214 212 | impl<B>
|
215 213 | ::aws_smithy_http_server::request::FromRequest<
|
216 214 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
217 215 | B,
|
218 216 | > for crate::input::NonStreamingBlobOperationInput
|
219 217 | where
|
220 218 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
221 219 | B: 'static,
|
222 220 |
|
223 221 | B::Data: Send,
|
224 222 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
225 223 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
226 224 | {
|
227 225 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
228 226 | type Future = NonStreamingBlobOperationInputFuture;
|
229 227 |
|
230 228 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
231 229 | let fut = async move {
|
232 230 | crate::protocol_serde::shape_non_streaming_blob_operation::de_non_streaming_blob_operation_http_request(request)
|
233 231 | .await
|
234 - | .map_err(Into::into)
|
235 232 | };
|
236 233 | use ::futures_util::future::TryFutureExt;
|
237 234 | let fut = fut.map_err(
|
238 235 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
239 236 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
240 237 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
241 238 | e,
|
242 239 | )
|
243 240 | },
|
244 241 | );
|
245 242 | NonStreamingBlobOperationInputFuture {
|
246 243 | inner: Box::pin(fut),
|
247 244 | }
|
248 245 | }
|
249 246 | }
|
250 247 | impl
|
251 248 | ::aws_smithy_http_server::response::IntoResponse<
|
252 249 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
253 250 | > for crate::output::NonStreamingBlobOperationOutput
|
254 251 | {
|
255 252 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
256 253 | match crate::protocol_serde::shape_non_streaming_blob_operation::ser_non_streaming_blob_operation_http_response(self) {
|
257 254 | Ok(response) => response,
|
258 255 | Err(e) => {
|
259 256 | ::tracing::error!(error = %e, "failed to serialize response");
|
260 257 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
261 258 | }
|
262 259 | }
|
263 260 | }
|
264 261 | }
|
@@ -287,284 +347,343 @@
287 284 | this.inner.as_mut().poll(cx)
|
288 285 | }
|
289 286 | }
|
290 287 |
|
291 288 | impl<B>
|
292 289 | ::aws_smithy_http_server::request::FromRequest<
|
293 290 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
294 291 | B,
|
295 292 | > for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
296 293 | where
|
297 294 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
298 295 | B: 'static,
|
299 296 |
|
300 297 | B::Data: Send,
|
301 298 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
302 299 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
303 300 | {
|
304 301 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
305 302 | type Future = QueryParamsTargetingMapOfEnumStringOperationInputFuture;
|
306 303 |
|
307 304 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
308 305 | let fut = async move {
|
309 306 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
310 307 | request.headers(),
|
311 308 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFENUMSTRINGOPERATION,
|
312 309 | ) {
|
313 310 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
314 311 | }
|
315 312 | crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::de_query_params_targeting_map_of_enum_string_operation_http_request(request)
|
316 313 | .await
|
317 - | .map_err(Into::into)
|
318 314 | };
|
319 315 | use ::futures_util::future::TryFutureExt;
|
320 316 | let fut = fut.map_err(
|
321 317 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
322 318 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
323 319 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
324 320 | e,
|
325 321 | )
|
326 322 | },
|
327 323 | );
|
328 324 | QueryParamsTargetingMapOfEnumStringOperationInputFuture {
|
329 325 | inner: Box::pin(fut),
|
330 326 | }
|
331 327 | }
|
332 328 | }
|
333 329 | impl
|
334 330 | ::aws_smithy_http_server::response::IntoResponse<
|
335 331 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
336 332 | > for crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput
|
337 333 | {
|
338 334 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
339 335 | match crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::ser_query_params_targeting_map_of_enum_string_operation_http_response(self) {
|
340 336 | Ok(response) => response,
|
341 337 | Err(e) => {
|
342 338 | ::tracing::error!(error = %e, "failed to serialize response");
|
343 339 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
344 340 | }
|
345 341 | }
|
346 342 | }
|
347 343 | }
|
@@ -388,384 +448,443 @@
388 384 | this.inner.as_mut().poll(cx)
|
389 385 | }
|
390 386 | }
|
391 387 |
|
392 388 | impl<B>
|
393 389 | ::aws_smithy_http_server::request::FromRequest<
|
394 390 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
395 391 | B,
|
396 392 | > for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
397 393 | where
|
398 394 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
399 395 | B: 'static,
|
400 396 |
|
401 397 | B::Data: Send,
|
402 398 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
403 399 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
404 400 | {
|
405 401 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
406 402 | type Future = HttpPrefixHeadersTargetingLengthMapOperationInputFuture;
|
407 403 |
|
408 404 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
409 405 | let fut = async move {
|
410 406 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
411 407 | request.headers(),
|
412 408 | &CONTENT_TYPE_HTTPPREFIXHEADERSTARGETINGLENGTHMAPOPERATION,
|
413 409 | ) {
|
414 410 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
415 411 | }
|
416 412 | crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::de_http_prefix_headers_targeting_length_map_operation_http_request(request)
|
417 413 | .await
|
418 - | .map_err(Into::into)
|
419 414 | };
|
420 415 | use ::futures_util::future::TryFutureExt;
|
421 416 | let fut = fut.map_err(
|
422 417 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
423 418 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
424 419 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
425 420 | e,
|
426 421 | )
|
427 422 | },
|
428 423 | );
|
429 424 | HttpPrefixHeadersTargetingLengthMapOperationInputFuture {
|
430 425 | inner: Box::pin(fut),
|
431 426 | }
|
432 427 | }
|
433 428 | }
|
434 429 | impl
|
435 430 | ::aws_smithy_http_server::response::IntoResponse<
|
436 431 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
437 432 | > for crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput
|
438 433 | {
|
439 434 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
440 435 | match crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::ser_http_prefix_headers_targeting_length_map_operation_http_response(self) {
|
441 436 | Ok(response) => response,
|
442 437 | Err(e) => {
|
443 438 | ::tracing::error!(error = %e, "failed to serialize response");
|
444 439 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
445 440 | }
|
446 441 | }
|
447 442 | }
|
448 443 | }
|
@@ -491,486 +551,545 @@
491 486 | this.inner.as_mut().poll(cx)
|
492 487 | }
|
493 488 | }
|
494 489 |
|
495 490 | impl<B>
|
496 491 | ::aws_smithy_http_server::request::FromRequest<
|
497 492 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
498 493 | B,
|
499 494 | > for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
500 495 | where
|
501 496 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
502 497 | B: 'static,
|
503 498 |
|
504 499 | B::Data: Send,
|
505 500 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
506 501 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
507 502 | {
|
508 503 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
509 504 | type Future = QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture;
|
510 505 |
|
511 506 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
512 507 | let fut = async move {
|
513 508 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
514 509 | request.headers(),
|
515 510 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHPATTERNSTRINGOPERATION,
|
516 511 | ) {
|
517 512 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
518 513 | }
|
519 514 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::de_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_request(request)
|
520 515 | .await
|
521 - | .map_err(Into::into)
|
522 516 | };
|
523 517 | use ::futures_util::future::TryFutureExt;
|
524 518 | let fut = fut.map_err(
|
525 519 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
526 520 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
527 521 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
528 522 | e,
|
529 523 | )
|
530 524 | },
|
531 525 | );
|
532 526 | QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture {
|
533 527 | inner: Box::pin(fut),
|
534 528 | }
|
535 529 | }
|
536 530 | }
|
537 531 | impl
|
538 532 | ::aws_smithy_http_server::response::IntoResponse<
|
539 533 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
540 534 | > for crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
541 535 | {
|
542 536 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
543 537 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::ser_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_response(self) {
|
544 538 | Ok(response) => response,
|
545 539 | Err(e) => {
|
546 540 | ::tracing::error!(error = %e, "failed to serialize response");
|
547 541 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
548 542 | }
|
549 543 | }
|
550 544 | }
|
551 545 | }
|
@@ -592,586 +652,645 @@
592 586 | this.inner.as_mut().poll(cx)
|
593 587 | }
|
594 588 | }
|
595 589 |
|
596 590 | impl<B>
|
597 591 | ::aws_smithy_http_server::request::FromRequest<
|
598 592 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
599 593 | B,
|
600 594 | > for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
601 595 | where
|
602 596 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
603 597 | B: 'static,
|
604 598 |
|
605 599 | B::Data: Send,
|
606 600 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
607 601 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
608 602 | {
|
609 603 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
610 604 | type Future = QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture;
|
611 605 |
|
612 606 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
613 607 | let fut = async move {
|
614 608 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
615 609 | request.headers(),
|
616 610 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHPATTERNSTRINGOPERATION,
|
617 611 | ) {
|
618 612 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
619 613 | }
|
620 614 | crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::de_query_params_targeting_map_of_length_pattern_string_operation_http_request(request)
|
621 615 | .await
|
622 - | .map_err(Into::into)
|
623 616 | };
|
624 617 | use ::futures_util::future::TryFutureExt;
|
625 618 | let fut = fut.map_err(
|
626 619 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
627 620 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
628 621 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
629 622 | e,
|
630 623 | )
|
631 624 | },
|
632 625 | );
|
633 626 | QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture {
|
634 627 | inner: Box::pin(fut),
|
635 628 | }
|
636 629 | }
|
637 630 | }
|
638 631 | impl
|
639 632 | ::aws_smithy_http_server::response::IntoResponse<
|
640 633 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
641 634 | > for crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput
|
642 635 | {
|
643 636 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
644 637 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::ser_query_params_targeting_map_of_length_pattern_string_operation_http_response(self) {
|
645 638 | Ok(response) => response,
|
646 639 | Err(e) => {
|
647 640 | ::tracing::error!(error = %e, "failed to serialize response");
|
648 641 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
649 642 | }
|
650 643 | }
|
651 644 | }
|
652 645 | }
|
@@ -693,686 +753,745 @@
693 686 | this.inner.as_mut().poll(cx)
|
694 687 | }
|
695 688 | }
|
696 689 |
|
697 690 | impl<B>
|
698 691 | ::aws_smithy_http_server::request::FromRequest<
|
699 692 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
700 693 | B,
|
701 694 | > for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
702 695 | where
|
703 696 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
704 697 | B: 'static,
|
705 698 |
|
706 699 | B::Data: Send,
|
707 700 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
708 701 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
709 702 | {
|
710 703 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
711 704 | type Future = QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture;
|
712 705 |
|
713 706 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
714 707 | let fut = async move {
|
715 708 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
716 709 | request.headers(),
|
717 710 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFPATTERNSTRINGOPERATION,
|
718 711 | ) {
|
719 712 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
720 713 | }
|
721 714 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::de_query_params_targeting_map_of_list_of_pattern_string_operation_http_request(request)
|
722 715 | .await
|
723 - | .map_err(Into::into)
|
724 716 | };
|
725 717 | use ::futures_util::future::TryFutureExt;
|
726 718 | let fut = fut.map_err(
|
727 719 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
728 720 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
729 721 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
730 722 | e,
|
731 723 | )
|
732 724 | },
|
733 725 | );
|
734 726 | QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture {
|
735 727 | inner: Box::pin(fut),
|
736 728 | }
|
737 729 | }
|
738 730 | }
|
739 731 | impl
|
740 732 | ::aws_smithy_http_server::response::IntoResponse<
|
741 733 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
742 734 | > for crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput
|
743 735 | {
|
744 736 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
745 737 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::ser_query_params_targeting_map_of_list_of_pattern_string_operation_http_response(self) {
|
746 738 | Ok(response) => response,
|
747 739 | Err(e) => {
|
748 740 | ::tracing::error!(error = %e, "failed to serialize response");
|
749 741 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
750 742 | }
|
751 743 | }
|
752 744 | }
|
753 745 | }
|
@@ -794,786 +854,845 @@
794 786 | this.inner.as_mut().poll(cx)
|
795 787 | }
|
796 788 | }
|
797 789 |
|
798 790 | impl<B>
|
799 791 | ::aws_smithy_http_server::request::FromRequest<
|
800 792 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
801 793 | B,
|
802 794 | > for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
803 795 | where
|
804 796 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
805 797 | B: 'static,
|
806 798 |
|
807 799 | B::Data: Send,
|
808 800 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
809 801 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
810 802 | {
|
811 803 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
812 804 | type Future = QueryParamsTargetingMapOfPatternStringOperationInputFuture;
|
813 805 |
|
814 806 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
815 807 | let fut = async move {
|
816 808 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
817 809 | request.headers(),
|
818 810 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFPATTERNSTRINGOPERATION,
|
819 811 | ) {
|
820 812 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
821 813 | }
|
822 814 | crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::de_query_params_targeting_map_of_pattern_string_operation_http_request(request)
|
823 815 | .await
|
824 - | .map_err(Into::into)
|
825 816 | };
|
826 817 | use ::futures_util::future::TryFutureExt;
|
827 818 | let fut = fut.map_err(
|
828 819 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
829 820 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
830 821 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
831 822 | e,
|
832 823 | )
|
833 824 | },
|
834 825 | );
|
835 826 | QueryParamsTargetingMapOfPatternStringOperationInputFuture {
|
836 827 | inner: Box::pin(fut),
|
837 828 | }
|
838 829 | }
|
839 830 | }
|
840 831 | impl
|
841 832 | ::aws_smithy_http_server::response::IntoResponse<
|
842 833 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
843 834 | > for crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput
|
844 835 | {
|
845 836 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
846 837 | match crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::ser_query_params_targeting_map_of_pattern_string_operation_http_response(self) {
|
847 838 | Ok(response) => response,
|
848 839 | Err(e) => {
|
849 840 | ::tracing::error!(error = %e, "failed to serialize response");
|
850 841 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
851 842 | }
|
852 843 | }
|
853 844 | }
|
854 845 | }
|
@@ -895,886 +955,945 @@
895 886 | this.inner.as_mut().poll(cx)
|
896 887 | }
|
897 888 | }
|
898 889 |
|
899 890 | impl<B>
|
900 891 | ::aws_smithy_http_server::request::FromRequest<
|
901 892 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
902 893 | B,
|
903 894 | > for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
904 895 | where
|
905 896 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
906 897 | B: 'static,
|
907 898 |
|
908 899 | B::Data: Send,
|
909 900 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
910 901 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
911 902 | {
|
912 903 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
913 904 | type Future = QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture;
|
914 905 |
|
915 906 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
916 907 | let fut = async move {
|
917 908 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
918 909 | request.headers(),
|
919 910 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFENUMSTRINGOPERATION,
|
920 911 | ) {
|
921 912 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
922 913 | }
|
923 914 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::de_query_params_targeting_map_of_list_of_enum_string_operation_http_request(request)
|
924 915 | .await
|
925 - | .map_err(Into::into)
|
926 916 | };
|
927 917 | use ::futures_util::future::TryFutureExt;
|
928 918 | let fut = fut.map_err(
|
929 919 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
930 920 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
931 921 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
932 922 | e,
|
933 923 | )
|
934 924 | },
|
935 925 | );
|
936 926 | QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture {
|
937 927 | inner: Box::pin(fut),
|
938 928 | }
|
939 929 | }
|
940 930 | }
|
941 931 | impl
|
942 932 | ::aws_smithy_http_server::response::IntoResponse<
|
943 933 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
944 934 | > for crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput
|
945 935 | {
|
946 936 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
947 937 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::ser_query_params_targeting_map_of_list_of_enum_string_operation_http_response(self) {
|
948 938 | Ok(response) => response,
|
949 939 | Err(e) => {
|
950 940 | ::tracing::error!(error = %e, "failed to serialize response");
|
951 941 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
952 942 | }
|
953 943 | }
|
954 944 | }
|
955 945 | }
|
@@ -998,988 +1058,1047 @@
998 988 | this.inner.as_mut().poll(cx)
|
999 989 | }
|
1000 990 | }
|
1001 991 |
|
1002 992 | impl<B>
|
1003 993 | ::aws_smithy_http_server::request::FromRequest<
|
1004 994 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1005 995 | B,
|
1006 996 | > for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
1007 997 | where
|
1008 998 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1009 999 | B: 'static,
|
1010 1000 |
|
1011 1001 | B::Data: Send,
|
1012 1002 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1013 1003 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1014 1004 | {
|
1015 1005 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1016 1006 | type Future = QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture;
|
1017 1007 |
|
1018 1008 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1019 1009 | let fut = async move {
|
1020 1010 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1021 1011 | request.headers(),
|
1022 1012 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHLISTOFPATTERNSTRINGOPERATION,
|
1023 1013 | ) {
|
1024 1014 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1025 1015 | }
|
1026 1016 | crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::de_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_request(request)
|
1027 1017 | .await
|
1028 - | .map_err(Into::into)
|
1029 1018 | };
|
1030 1019 | use ::futures_util::future::TryFutureExt;
|
1031 1020 | let fut = fut.map_err(
|
1032 1021 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1033 1022 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1034 1023 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1035 1024 | e,
|
1036 1025 | )
|
1037 1026 | },
|
1038 1027 | );
|
1039 1028 | QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture {
|
1040 1029 | inner: Box::pin(fut),
|
1041 1030 | }
|
1042 1031 | }
|
1043 1032 | }
|
1044 1033 | impl
|
1045 1034 | ::aws_smithy_http_server::response::IntoResponse<
|
1046 1035 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1047 1036 | > for crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1048 1037 | {
|
1049 1038 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1050 1039 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::ser_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_response(self) {
|
1051 1040 | Ok(response) => response,
|
1052 1041 | Err(e) => {
|
1053 1042 | ::tracing::error!(error = %e, "failed to serialize response");
|
1054 1043 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1055 1044 | }
|
1056 1045 | }
|
1057 1046 | }
|
1058 1047 | }
|
@@ -1099,1088 +1159,1147 @@
1099 1088 | this.inner.as_mut().poll(cx)
|
1100 1089 | }
|
1101 1090 | }
|
1102 1091 |
|
1103 1092 | impl<B>
|
1104 1093 | ::aws_smithy_http_server::request::FromRequest<
|
1105 1094 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1106 1095 | B,
|
1107 1096 | > for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1108 1097 | where
|
1109 1098 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1110 1099 | B: 'static,
|
1111 1100 |
|
1112 1101 | B::Data: Send,
|
1113 1102 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1114 1103 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1115 1104 | {
|
1116 1105 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1117 1106 | type Future = QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture;
|
1118 1107 |
|
1119 1108 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1120 1109 | let fut = async move {
|
1121 1110 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1122 1111 | request.headers(),
|
1123 1112 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFSETOFLENGTHSTRINGOPERATION,
|
1124 1113 | ) {
|
1125 1114 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1126 1115 | }
|
1127 1116 | crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::de_query_params_targeting_map_of_set_of_length_string_operation_http_request(request)
|
1128 1117 | .await
|
1129 - | .map_err(Into::into)
|
1130 1118 | };
|
1131 1119 | use ::futures_util::future::TryFutureExt;
|
1132 1120 | let fut = fut.map_err(
|
1133 1121 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1134 1122 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1135 1123 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1136 1124 | e,
|
1137 1125 | )
|
1138 1126 | },
|
1139 1127 | );
|
1140 1128 | QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture {
|
1141 1129 | inner: Box::pin(fut),
|
1142 1130 | }
|
1143 1131 | }
|
1144 1132 | }
|
1145 1133 | impl
|
1146 1134 | ::aws_smithy_http_server::response::IntoResponse<
|
1147 1135 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1148 1136 | > for crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput
|
1149 1137 | {
|
1150 1138 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1151 1139 | match crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::ser_query_params_targeting_map_of_set_of_length_string_operation_http_response(self) {
|
1152 1140 | Ok(response) => response,
|
1153 1141 | Err(e) => {
|
1154 1142 | ::tracing::error!(error = %e, "failed to serialize response");
|
1155 1143 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1156 1144 | }
|
1157 1145 | }
|
1158 1146 | }
|
1159 1147 | }
|
@@ -1200,1188 +1260,1247 @@
1200 1188 | this.inner.as_mut().poll(cx)
|
1201 1189 | }
|
1202 1190 | }
|
1203 1191 |
|
1204 1192 | impl<B>
|
1205 1193 | ::aws_smithy_http_server::request::FromRequest<
|
1206 1194 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1207 1195 | B,
|
1208 1196 | > for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
1209 1197 | where
|
1210 1198 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1211 1199 | B: 'static,
|
1212 1200 |
|
1213 1201 | B::Data: Send,
|
1214 1202 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1215 1203 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1216 1204 | {
|
1217 1205 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1218 1206 | type Future = QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture;
|
1219 1207 |
|
1220 1208 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1221 1209 | let fut = async move {
|
1222 1210 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1223 1211 | request.headers(),
|
1224 1212 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHSTRINGOPERATION,
|
1225 1213 | ) {
|
1226 1214 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1227 1215 | }
|
1228 1216 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::de_query_params_targeting_map_of_list_of_length_string_operation_http_request(request)
|
1229 1217 | .await
|
1230 - | .map_err(Into::into)
|
1231 1218 | };
|
1232 1219 | use ::futures_util::future::TryFutureExt;
|
1233 1220 | let fut = fut.map_err(
|
1234 1221 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1235 1222 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1236 1223 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1237 1224 | e,
|
1238 1225 | )
|
1239 1226 | },
|
1240 1227 | );
|
1241 1228 | QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture {
|
1242 1229 | inner: Box::pin(fut),
|
1243 1230 | }
|
1244 1231 | }
|
1245 1232 | }
|
1246 1233 | impl
|
1247 1234 | ::aws_smithy_http_server::response::IntoResponse<
|
1248 1235 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1249 1236 | > for crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput
|
1250 1237 | {
|
1251 1238 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1252 1239 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::ser_query_params_targeting_map_of_list_of_length_string_operation_http_response(self) {
|
1253 1240 | Ok(response) => response,
|
1254 1241 | Err(e) => {
|
1255 1242 | ::tracing::error!(error = %e, "failed to serialize response");
|
1256 1243 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1257 1244 | }
|
1258 1245 | }
|
1259 1246 | }
|
1260 1247 | }
|
@@ -1301,1288 +1361,1347 @@
1301 1288 | this.inner.as_mut().poll(cx)
|
1302 1289 | }
|
1303 1290 | }
|
1304 1291 |
|
1305 1292 | impl<B>
|
1306 1293 | ::aws_smithy_http_server::request::FromRequest<
|
1307 1294 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1308 1295 | B,
|
1309 1296 | > for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
1310 1297 | where
|
1311 1298 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1312 1299 | B: 'static,
|
1313 1300 |
|
1314 1301 | B::Data: Send,
|
1315 1302 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1316 1303 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1317 1304 | {
|
1318 1305 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1319 1306 | type Future = QueryParamsTargetingMapOfLengthStringOperationInputFuture;
|
1320 1307 |
|
1321 1308 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1322 1309 | let fut = async move {
|
1323 1310 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1324 1311 | request.headers(),
|
1325 1312 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHSTRINGOPERATION,
|
1326 1313 | ) {
|
1327 1314 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1328 1315 | }
|
1329 1316 | crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::de_query_params_targeting_map_of_length_string_operation_http_request(request)
|
1330 1317 | .await
|
1331 - | .map_err(Into::into)
|
1332 1318 | };
|
1333 1319 | use ::futures_util::future::TryFutureExt;
|
1334 1320 | let fut = fut.map_err(
|
1335 1321 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1336 1322 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1337 1323 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1338 1324 | e,
|
1339 1325 | )
|
1340 1326 | },
|
1341 1327 | );
|
1342 1328 | QueryParamsTargetingMapOfLengthStringOperationInputFuture {
|
1343 1329 | inner: Box::pin(fut),
|
1344 1330 | }
|
1345 1331 | }
|
1346 1332 | }
|
1347 1333 | impl
|
1348 1334 | ::aws_smithy_http_server::response::IntoResponse<
|
1349 1335 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1350 1336 | > for crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput
|
1351 1337 | {
|
1352 1338 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1353 1339 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::ser_query_params_targeting_map_of_length_string_operation_http_response(self) {
|
1354 1340 | Ok(response) => response,
|
1355 1341 | Err(e) => {
|
1356 1342 | ::tracing::error!(error = %e, "failed to serialize response");
|
1357 1343 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1358 1344 | }
|
1359 1345 | }
|
1360 1346 | }
|
1361 1347 | }
|
@@ -1401,1387 +1461,1446 @@
1401 1387 | this.inner.as_mut().poll(cx)
|
1402 1388 | }
|
1403 1389 | }
|
1404 1390 |
|
1405 1391 | impl<B>
|
1406 1392 | ::aws_smithy_http_server::request::FromRequest<
|
1407 1393 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1408 1394 | B,
|
1409 1395 | > for crate::input::QueryParamsTargetingLengthMapOperationInput
|
1410 1396 | where
|
1411 1397 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1412 1398 | B: 'static,
|
1413 1399 |
|
1414 1400 | B::Data: Send,
|
1415 1401 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1416 1402 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1417 1403 | {
|
1418 1404 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1419 1405 | type Future = QueryParamsTargetingLengthMapOperationInputFuture;
|
1420 1406 |
|
1421 1407 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1422 1408 | let fut = async move {
|
1423 1409 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1424 1410 | request.headers(),
|
1425 1411 | &CONTENT_TYPE_QUERYPARAMSTARGETINGLENGTHMAPOPERATION,
|
1426 1412 | ) {
|
1427 1413 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1428 1414 | }
|
1429 1415 | crate::protocol_serde::shape_query_params_targeting_length_map_operation::de_query_params_targeting_length_map_operation_http_request(request)
|
1430 1416 | .await
|
1431 - | .map_err(Into::into)
|
1432 1417 | };
|
1433 1418 | use ::futures_util::future::TryFutureExt;
|
1434 1419 | let fut = fut.map_err(
|
1435 1420 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1436 1421 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1437 1422 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1438 1423 | e,
|
1439 1424 | )
|
1440 1425 | },
|
1441 1426 | );
|
1442 1427 | QueryParamsTargetingLengthMapOperationInputFuture {
|
1443 1428 | inner: Box::pin(fut),
|
1444 1429 | }
|
1445 1430 | }
|
1446 1431 | }
|
1447 1432 | impl
|
1448 1433 | ::aws_smithy_http_server::response::IntoResponse<
|
1449 1434 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1450 1435 | > for crate::output::QueryParamsTargetingLengthMapOperationOutput
|
1451 1436 | {
|
1452 1437 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1453 1438 | match crate::protocol_serde::shape_query_params_targeting_length_map_operation::ser_query_params_targeting_length_map_operation_http_response(self) {
|
1454 1439 | Ok(response) => response,
|
1455 1440 | Err(e) => {
|
1456 1441 | ::tracing::error!(error = %e, "failed to serialize response");
|
1457 1442 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1458 1443 | }
|
1459 1444 | }
|
1460 1445 | }
|
1461 1446 | }
|
@@ -1501,1486 +1561,1545 @@
1501 1486 | this.inner.as_mut().poll(cx)
|
1502 1487 | }
|
1503 1488 | }
|
1504 1489 |
|
1505 1490 | impl<B>
|
1506 1491 | ::aws_smithy_http_server::request::FromRequest<
|
1507 1492 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1508 1493 | B,
|
1509 1494 | > for crate::input::ConstrainedRecursiveShapesOperationInput
|
1510 1495 | where
|
1511 1496 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1512 1497 | B: 'static,
|
1513 1498 |
|
1514 1499 | B::Data: Send,
|
1515 1500 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1516 1501 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1517 1502 | {
|
1518 1503 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1519 1504 | type Future = ConstrainedRecursiveShapesOperationInputFuture;
|
1520 1505 |
|
1521 1506 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1522 1507 | let fut = async move {
|
1523 1508 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1524 1509 | request.headers(),
|
1525 1510 | &CONTENT_TYPE_CONSTRAINEDRECURSIVESHAPESOPERATION,
|
1526 1511 | ) {
|
1527 1512 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1528 1513 | }
|
1529 1514 | crate::protocol_serde::shape_constrained_recursive_shapes_operation::de_constrained_recursive_shapes_operation_http_request(request)
|
1530 1515 | .await
|
1531 - | .map_err(Into::into)
|
1532 1516 | };
|
1533 1517 | use ::futures_util::future::TryFutureExt;
|
1534 1518 | let fut = fut.map_err(
|
1535 1519 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1536 1520 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1537 1521 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1538 1522 | e,
|
1539 1523 | )
|
1540 1524 | },
|
1541 1525 | );
|
1542 1526 | ConstrainedRecursiveShapesOperationInputFuture {
|
1543 1527 | inner: Box::pin(fut),
|
1544 1528 | }
|
1545 1529 | }
|
1546 1530 | }
|
1547 1531 | impl
|
1548 1532 | ::aws_smithy_http_server::response::IntoResponse<
|
1549 1533 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1550 1534 | > for crate::output::ConstrainedRecursiveShapesOperationOutput
|
1551 1535 | {
|
1552 1536 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1553 1537 | match crate::protocol_serde::shape_constrained_recursive_shapes_operation::ser_constrained_recursive_shapes_operation_http_response(self) {
|
1554 1538 | Ok(response) => response,
|
1555 1539 | Err(e) => {
|
1556 1540 | ::tracing::error!(error = %e, "failed to serialize response");
|
1557 1541 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1558 1542 | }
|
1559 1543 | }
|
1560 1544 | }
|
1561 1545 | }
|
@@ -1602,1586 +1662,1645 @@
1602 1586 | this.inner.as_mut().poll(cx)
|
1603 1587 | }
|
1604 1588 | }
|
1605 1589 |
|
1606 1590 | impl<B>
|
1607 1591 | ::aws_smithy_http_server::request::FromRequest<
|
1608 1592 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1609 1593 | B,
|
1610 1594 | > for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
1611 1595 | where
|
1612 1596 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1613 1597 | B: 'static,
|
1614 1598 |
|
1615 1599 | B::Data: Send,
|
1616 1600 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1617 1601 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1618 1602 | {
|
1619 1603 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1620 1604 | type Future = ConstrainedHttpPayloadBoundShapeOperationInputFuture;
|
1621 1605 |
|
1622 1606 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1623 1607 | let fut = async move {
|
1624 1608 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1625 1609 | request.headers(),
|
1626 1610 | &CONTENT_TYPE_CONSTRAINEDHTTPPAYLOADBOUNDSHAPEOPERATION,
|
1627 1611 | ) {
|
1628 1612 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1629 1613 | }
|
1630 1614 | crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::de_constrained_http_payload_bound_shape_operation_http_request(request)
|
1631 1615 | .await
|
1632 - | .map_err(Into::into)
|
1633 1616 | };
|
1634 1617 | use ::futures_util::future::TryFutureExt;
|
1635 1618 | let fut = fut.map_err(
|
1636 1619 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1637 1620 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1638 1621 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1639 1622 | e,
|
1640 1623 | )
|
1641 1624 | },
|
1642 1625 | );
|
1643 1626 | ConstrainedHttpPayloadBoundShapeOperationInputFuture {
|
1644 1627 | inner: Box::pin(fut),
|
1645 1628 | }
|
1646 1629 | }
|
1647 1630 | }
|
1648 1631 | impl
|
1649 1632 | ::aws_smithy_http_server::response::IntoResponse<
|
1650 1633 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1651 1634 | > for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
1652 1635 | {
|
1653 1636 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1654 1637 | match crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::ser_constrained_http_payload_bound_shape_operation_http_response(self) {
|
1655 1638 | Ok(response) => response,
|
1656 1639 | Err(e) => {
|
1657 1640 | ::tracing::error!(error = %e, "failed to serialize response");
|
1658 1641 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1659 1642 | }
|
1660 1643 | }
|
1661 1644 | }
|
1662 1645 | }
|
@@ -1702,1685 +1762,1744 @@
1702 1685 | this.inner.as_mut().poll(cx)
|
1703 1686 | }
|
1704 1687 | }
|
1705 1688 |
|
1706 1689 | impl<B>
|
1707 1690 | ::aws_smithy_http_server::request::FromRequest<
|
1708 1691 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1709 1692 | B,
|
1710 1693 | > for crate::input::ConstrainedHttpBoundShapesOperationInput
|
1711 1694 | where
|
1712 1695 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1713 1696 | B: 'static,
|
1714 1697 |
|
1715 1698 | B::Data: Send,
|
1716 1699 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1717 1700 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1718 1701 | {
|
1719 1702 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1720 1703 | type Future = ConstrainedHttpBoundShapesOperationInputFuture;
|
1721 1704 |
|
1722 1705 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1723 1706 | let fut = async move {
|
1724 1707 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1725 1708 | request.headers(),
|
1726 1709 | &CONTENT_TYPE_CONSTRAINEDHTTPBOUNDSHAPESOPERATION,
|
1727 1710 | ) {
|
1728 1711 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1729 1712 | }
|
1730 1713 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation::de_constrained_http_bound_shapes_operation_http_request(request)
|
1731 1714 | .await
|
1732 - | .map_err(Into::into)
|
1733 1715 | };
|
1734 1716 | use ::futures_util::future::TryFutureExt;
|
1735 1717 | let fut = fut.map_err(
|
1736 1718 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1737 1719 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1738 1720 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1739 1721 | e,
|
1740 1722 | )
|
1741 1723 | },
|
1742 1724 | );
|
1743 1725 | ConstrainedHttpBoundShapesOperationInputFuture {
|
1744 1726 | inner: Box::pin(fut),
|
1745 1727 | }
|
1746 1728 | }
|
1747 1729 | }
|
1748 1730 | impl
|
1749 1731 | ::aws_smithy_http_server::response::IntoResponse<
|
1750 1732 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1751 1733 | > for crate::output::ConstrainedHttpBoundShapesOperationOutput
|
1752 1734 | {
|
1753 1735 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1754 1736 | match crate::protocol_serde::shape_constrained_http_bound_shapes_operation::ser_constrained_http_bound_shapes_operation_http_response(self) {
|
1755 1737 | Ok(response) => response,
|
1756 1738 | Err(e) => {
|
1757 1739 | ::tracing::error!(error = %e, "failed to serialize response");
|
1758 1740 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1759 1741 | }
|
1760 1742 | }
|
1761 1743 | }
|
1762 1744 | }
|
@@ -1802,1784 +1862,1843 @@
1802 1784 | this.inner.as_mut().poll(cx)
|
1803 1785 | }
|
1804 1786 | }
|
1805 1787 |
|
1806 1788 | impl<B>
|
1807 1789 | ::aws_smithy_http_server::request::FromRequest<
|
1808 1790 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1809 1791 | B,
|
1810 1792 | > for crate::input::ConstrainedShapesOnlyInOutputOperationInput
|
1811 1793 | where
|
1812 1794 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1813 1795 | B: 'static,
|
1814 1796 |
|
1815 1797 | B::Data: Send,
|
1816 1798 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1817 1799 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1818 1800 | {
|
1819 1801 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1820 1802 | type Future = ConstrainedShapesOnlyInOutputOperationInputFuture;
|
1821 1803 |
|
1822 1804 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1823 1805 | let fut = async move {
|
1824 1806 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1825 1807 | request.headers(),
|
1826 1808 | &CONTENT_TYPE_CONSTRAINEDSHAPESONLYINOUTPUTOPERATION,
|
1827 1809 | ) {
|
1828 1810 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1829 1811 | }
|
1830 1812 | crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::de_constrained_shapes_only_in_output_operation_http_request(request)
|
1831 1813 | .await
|
1832 - | .map_err(Into::into)
|
1833 1814 | };
|
1834 1815 | use ::futures_util::future::TryFutureExt;
|
1835 1816 | let fut = fut.map_err(
|
1836 1817 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1837 1818 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1838 1819 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1839 1820 | e,
|
1840 1821 | )
|
1841 1822 | },
|
1842 1823 | );
|
1843 1824 | ConstrainedShapesOnlyInOutputOperationInputFuture {
|
1844 1825 | inner: Box::pin(fut),
|
1845 1826 | }
|
1846 1827 | }
|
1847 1828 | }
|
1848 1829 | impl
|
1849 1830 | ::aws_smithy_http_server::response::IntoResponse<
|
1850 1831 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1851 1832 | > for crate::output::ConstrainedShapesOnlyInOutputOperationOutput
|
1852 1833 | {
|
1853 1834 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1854 1835 | match crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::ser_constrained_shapes_only_in_output_operation_http_response(self) {
|
1855 1836 | Ok(response) => response,
|
1856 1837 | Err(e) => {
|
1857 1838 | ::tracing::error!(error = %e, "failed to serialize response");
|
1858 1839 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1859 1840 | }
|
1860 1841 | }
|
1861 1842 | }
|
1862 1843 | }
|
@@ -1884,1865 +1944,1924 @@
1884 1865 | this.inner.as_mut().poll(cx)
|
1885 1866 | }
|
1886 1867 | }
|
1887 1868 |
|
1888 1869 | impl<B>
|
1889 1870 | ::aws_smithy_http_server::request::FromRequest<
|
1890 1871 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1891 1872 | B,
|
1892 1873 | > for crate::input::ConstrainedShapesOperationInput
|
1893 1874 | where
|
1894 1875 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1895 1876 | B: 'static,
|
1896 1877 |
|
1897 1878 | B::Data: Send,
|
1898 1879 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1899 1880 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1900 1881 | {
|
1901 1882 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1902 1883 | type Future = ConstrainedShapesOperationInputFuture;
|
1903 1884 |
|
1904 1885 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1905 1886 | let fut = async move {
|
1906 1887 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1907 1888 | request.headers(),
|
1908 1889 | &CONTENT_TYPE_CONSTRAINEDSHAPESOPERATION,
|
1909 1890 | ) {
|
1910 1891 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1911 1892 | }
|
1912 1893 | crate::protocol_serde::shape_constrained_shapes_operation::de_constrained_shapes_operation_http_request(request)
|
1913 1894 | .await
|
1914 - | .map_err(Into::into)
|
1915 1895 | };
|
1916 1896 | use ::futures_util::future::TryFutureExt;
|
1917 1897 | let fut = fut.map_err(
|
1918 1898 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1919 1899 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1920 1900 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1921 1901 | e,
|
1922 1902 | )
|
1923 1903 | },
|
1924 1904 | );
|
1925 1905 | ConstrainedShapesOperationInputFuture {
|
1926 1906 | inner: Box::pin(fut),
|
1927 1907 | }
|
1928 1908 | }
|
1929 1909 | }
|
1930 1910 | impl
|
1931 1911 | ::aws_smithy_http_server::response::IntoResponse<
|
1932 1912 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1933 1913 | > for crate::output::ConstrainedShapesOperationOutput
|
1934 1914 | {
|
1935 1915 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1936 1916 | match crate::protocol_serde::shape_constrained_shapes_operation::ser_constrained_shapes_operation_http_response(self) {
|
1937 1917 | Ok(response) => response,
|
1938 1918 | Err(e) => {
|
1939 1919 | ::tracing::error!(error = %e, "failed to serialize response");
|
1940 1920 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1941 1921 | }
|
1942 1922 | }
|
1943 1923 | }
|
1944 1924 | }
|
@@ -101,101 +177,177 @@
101 101 | ::nom::bytes::complete::tag("/"),
|
102 102 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
103 103 | ::nom::bytes::complete::take_until("/"),
|
104 104 | ::nom::combinator::rest,
|
105 105 | )),
|
106 106 | ),
|
107 107 | ::nom::sequence::preceded(
|
108 108 | ::nom::bytes::complete::tag("/"),
|
109 109 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
110 110 | ::nom::bytes::complete::take_until("/"),
|
111 111 | ::nom::combinator::rest,
|
112 112 | )),
|
113 113 | ),
|
114 114 | ::nom::sequence::preceded(
|
115 115 | ::nom::bytes::complete::tag("/"),
|
116 116 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
117 117 | ::nom::bytes::complete::take_until("/"),
|
118 118 | ::nom::combinator::rest,
|
119 119 | )),
|
120 120 | ),
|
121 121 | ::nom::sequence::preceded(
|
122 122 | ::nom::bytes::complete::tag("/"),
|
123 123 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
124 124 | ::nom::bytes::complete::take_until("/"),
|
125 125 | ::nom::combinator::rest,
|
126 126 | )),
|
127 127 | ),
|
128 128 | ))(input_string)?;
|
129 129 | debug_assert_eq!("", input_string);
|
130 130 | input = input.set_range_integer_label(
|
131 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
132 - | );
|
131 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
132 + | );
|
133 133 | input = input.set_range_short_label(
|
134 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
135 - | );
|
134 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
135 + | );
|
136 136 | input = input.set_range_long_label(
|
137 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
138 - | );
|
137 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
138 + | );
|
139 139 | input = input.set_range_byte_label(
|
140 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
141 - | );
|
140 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
141 + | );
|
142 142 | input = input.set_length_string_label(
|
143 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
144 - | );
|
143 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
144 + | );
|
145 145 | input = input.set_enum_string_label(
|
146 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
147 - | );
|
146 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
147 + | );
|
148 148 | let query_string = uri.query().unwrap_or("");
|
149 149 | let pairs = ::form_urlencoded::parse(query_string.as_bytes());
|
150 150 | let mut enum_string_query_seen = false;
|
151 151 | let mut length_string_query_seen = false;
|
152 152 | let mut range_byte_query_seen = false;
|
153 153 | let mut range_integer_query_seen = false;
|
154 154 | let mut range_long_query_seen = false;
|
155 155 | let mut range_short_query_seen = false;
|
156 156 | let mut enum_string_list_query = Vec::new();
|
157 157 | let mut length_list_pattern_string_query = Vec::new();
|
158 158 | let mut length_string_list_query = Vec::new();
|
159 159 | let mut length_string_set_query = Vec::new();
|
160 160 | let mut range_byte_list_query = Vec::new();
|
161 161 | let mut range_byte_set_query = Vec::new();
|
162 162 | let mut range_integer_list_query = Vec::new();
|
163 163 | let mut range_integer_set_query = Vec::new();
|
164 164 | let mut range_long_list_query = Vec::new();
|
165 165 | let mut range_long_set_query = Vec::new();
|
166 166 | let mut range_short_list_query = Vec::new();
|
167 167 | let mut range_short_set_query = Vec::new();
|
168 168 | for (k, v) in pairs {
|
169 169 | if !enum_string_query_seen && k == "enumString" {
|
170 170 | input = input.set_enum_string_query(
|
171 171 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_query(&v)?
|
172 172 | );
|
173 173 | enum_string_query_seen = true;
|
174 174 | }
|
175 175 | if !length_string_query_seen && k == "lengthString" {
|
176 176 | input = input.set_length_string_query(
|
177 177 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_query(&v)?
|
@@ -1045,1045 +1105,1104 @@
1045 1045 | /// A builder for [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
1046 1046 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1047 1047 | pub struct Builder {
|
1048 1048 | pub(crate) message_content: ::std::option::Option<::std::string::String>,
|
1049 1049 | }
|
1050 1050 | impl Builder {
|
1051 1051 | #[allow(missing_docs)] // documentation missing in model
|
1052 1052 | pub fn message_content(
|
1053 1053 | mut self,
|
1054 1054 | input: ::std::option::Option<::std::string::String>,
|
1055 1055 | ) -> Self {
|
1056 1056 | self.message_content = input;
|
1057 1057 | self
|
1058 1058 | }
|
1059 1059 | /// Consumes the builder and constructs a [`EventStreamErrorMessage`](crate::error::EventStreamErrorMessage).
|
1060 1060 | pub fn build(self) -> crate::error::EventStreamErrorMessage {
|
1061 1061 | self.build_enforcing_required_and_enum_traits()
|
1062 1062 | }
|
1063 1063 | fn build_enforcing_required_and_enum_traits(self) -> crate::error::EventStreamErrorMessage {
|
1064 1064 | crate::error::EventStreamErrorMessage {
|
1065 1065 | message_content: self.message_content,
|
1066 1066 | }
|
1067 1067 | }
|
1068 1068 | }
|
1069 1069 | }
|
1070 1070 | /// See [`ValidationException`](crate::error::ValidationException).
|
1071 1071 | pub mod validation_exception {
|
1072 1072 |
|
1073 1073 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1074 1074 | /// Holds one variant for each of the ways the builder can fail.
|
1075 - |
|
1076 1075 | #[allow(clippy::enum_variant_names)]
|
1077 1076 | pub enum ConstraintViolation {
|
1078 1077 | /// `message` was not provided but it is required when building `ValidationException`.
|
1079 1078 | MissingMessage,
|
1080 1079 | }
|
1081 1080 | impl ::std::fmt::Display for ConstraintViolation {
|
1082 1081 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1083 1082 | match self {
|
1084 1083 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationException`"),
|
1085 1084 | }
|
1086 1085 | }
|
1087 1086 | }
|
1088 1087 | impl ::std::error::Error for ConstraintViolation {}
|
1089 1088 | impl ::std::convert::TryFrom<Builder> for crate::error::ValidationException {
|
1090 1089 | type Error = ConstraintViolation;
|
1091 1090 |
|
1092 1091 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1093 1092 | builder.build()
|
1094 1093 | }
|
1095 1094 | }
|
1096 1095 | /// A builder for [`ValidationException`](crate::error::ValidationException).
|
1097 1096 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1098 1097 | pub struct Builder {
|
1099 1098 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
1100 1099 | pub(crate) field_list:
|
1101 1100 | ::std::option::Option<::std::vec::Vec<crate::model::ValidationExceptionField>>,
|
1102 1101 | }
|
1103 1102 | impl Builder {
|
1104 1103 | /// A summary of the validation failure.
|
1105 1104 | pub fn message(mut self, input: ::std::string::String) -> Self {
|
@@ -923,923 +983,982 @@
923 923 | crate::error::EventError,
|
924 924 | >,
|
925 925 | >,
|
926 926 | ) -> Self {
|
927 927 | self.events = Some(input.into());
|
928 928 | self
|
929 929 | }
|
930 930 | /// Consumes the builder and constructs a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
931 931 | ///
|
932 932 | /// The builder fails to construct a [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) if a [`ConstraintViolation`] occurs.
|
933 933 | ///
|
934 934 | pub fn build(
|
935 935 | self,
|
936 936 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
937 937 | self.build_enforcing_all_constraints()
|
938 938 | }
|
939 939 | fn build_enforcing_all_constraints(
|
940 940 | self,
|
941 941 | ) -> Result<crate::input::EventStreamsOperationInput, ConstraintViolation> {
|
942 942 | Ok(crate::input::EventStreamsOperationInput {
|
943 943 | events: self.events.ok_or(ConstraintViolation::MissingEvents)?,
|
944 944 | })
|
945 945 | }
|
946 946 | }
|
947 947 | }
|
948 948 | /// See [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
949 949 | pub mod event_streams_operation_input {
|
950 950 |
|
951 951 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
952 952 | /// Holds one variant for each of the ways the builder can fail.
|
953 - |
|
954 953 | #[allow(clippy::enum_variant_names)]
|
955 954 | pub enum ConstraintViolation {
|
956 955 | /// `events` was not provided but it is required when building `EventStreamsOperationInput`.
|
957 956 | MissingEvents,
|
958 957 | }
|
959 958 | impl ::std::fmt::Display for ConstraintViolation {
|
960 959 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
961 960 | match self {
|
962 961 | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationInput`"),
|
963 962 | }
|
964 963 | }
|
965 964 | }
|
966 965 | impl ::std::error::Error for ConstraintViolation {}
|
967 966 | impl ::std::convert::TryFrom<Builder> for crate::input::EventStreamsOperationInput {
|
968 967 | type Error = ConstraintViolation;
|
969 968 |
|
970 969 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
971 970 | builder.build()
|
972 971 | }
|
973 972 | }
|
974 973 | /// A builder for [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput).
|
975 974 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
976 975 | pub struct Builder {
|
977 976 | pub(crate) events: ::std::option::Option<
|
978 977 | ::aws_smithy_http::event_stream::Receiver<
|
979 978 | crate::model::Event,
|
980 979 | crate::error::EventError,
|
981 980 | >,
|
982 981 | >,
|
983 982 | }
|
@@ -3273,3272 +3333,3331 @@
3273 3272 | Ok(crate::input::ConstrainedRecursiveShapesOperationInput {
|
3274 3273 | nested: self
|
3275 3274 | .nested
|
3276 3275 | .map(|v| match v {
|
3277 3276 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3278 3277 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3279 3278 | })
|
3280 3279 | .map(|res| res.map_err(ConstraintViolation::Nested))
|
3281 3280 | .transpose()?,
|
3282 3281 | recursive_list: self
|
3283 3282 | .recursive_list
|
3284 3283 | .map(|v| match v {
|
3285 3284 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3286 3285 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3287 3286 | })
|
3288 3287 | .map(|res| {
|
3289 3288 | res.map(|v| v.into())
|
3290 3289 | .map_err(ConstraintViolation::RecursiveList)
|
3291 3290 | })
|
3292 3291 | .transpose()?
|
3293 3292 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
3294 3293 | })
|
3295 3294 | }
|
3296 3295 | }
|
3297 3296 | }
|
3298 3297 | /// See [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3299 3298 | pub mod constrained_recursive_shapes_operation_input {
|
3300 3299 |
|
3301 3300 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3302 3301 | /// Holds one variant for each of the ways the builder can fail.
|
3303 - |
|
3304 3302 | #[allow(clippy::enum_variant_names)]
|
3305 3303 | pub enum ConstraintViolation {
|
3306 3304 | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`.
|
3307 3305 | MissingRecursiveList,
|
3308 3306 | }
|
3309 3307 | impl ::std::fmt::Display for ConstraintViolation {
|
3310 3308 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3311 3309 | match self {
|
3312 3310 | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationInput`"),
|
3313 3311 | }
|
3314 3312 | }
|
3315 3313 | }
|
3316 3314 | impl ::std::error::Error for ConstraintViolation {}
|
3317 3315 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedRecursiveShapesOperationInput {
|
3318 3316 | type Error = ConstraintViolation;
|
3319 3317 |
|
3320 3318 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3321 3319 | builder.build()
|
3322 3320 | }
|
3323 3321 | }
|
3324 3322 | /// A builder for [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput).
|
3325 3323 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3326 3324 | pub struct Builder {
|
3327 3325 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
3328 3326 | pub(crate) recursive_list:
|
3329 3327 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
3330 3328 | }
|
3331 3329 | impl Builder {
|
3332 3330 | #[allow(missing_docs)] // documentation missing in model
|
3333 3331 | pub fn nested(
|
@@ -3468,3466 +3528,3525 @@
3468 3466 | {
|
3469 3467 | self.build_enforcing_all_constraints()
|
3470 3468 | }
|
3471 3469 | fn build_enforcing_all_constraints(
|
3472 3470 | self,
|
3473 3471 | ) -> Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ConstraintViolation>
|
3474 3472 | {
|
3475 3473 | Ok(
|
3476 3474 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput {
|
3477 3475 | http_payload_bound_constrained_shape: self
|
3478 3476 | .http_payload_bound_constrained_shape
|
3479 3477 | .map(|v| match v {
|
3480 3478 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
3481 3479 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
3482 3480 | })
|
3483 3481 | .map(|res| {
|
3484 3482 | res.map_err(ConstraintViolation::HttpPayloadBoundConstrainedShape)
|
3485 3483 | })
|
3486 3484 | .transpose()?
|
3487 3485 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
3488 3486 | },
|
3489 3487 | )
|
3490 3488 | }
|
3491 3489 | }
|
3492 3490 | }
|
3493 3491 | /// See [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3494 3492 | pub mod constrained_http_payload_bound_shape_operation_input {
|
3495 3493 |
|
3496 3494 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
3497 3495 | /// Holds one variant for each of the ways the builder can fail.
|
3498 - |
|
3499 3496 | #[allow(clippy::enum_variant_names)]
|
3500 3497 | pub enum ConstraintViolation {
|
3501 3498 | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`.
|
3502 3499 | MissingHttpPayloadBoundConstrainedShape,
|
3503 3500 | }
|
3504 3501 | impl ::std::fmt::Display for ConstraintViolation {
|
3505 3502 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
3506 3503 | match self {
|
3507 3504 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationInput`"),
|
3508 3505 | }
|
3509 3506 | }
|
3510 3507 | }
|
3511 3508 | impl ::std::error::Error for ConstraintViolation {}
|
3512 3509 | impl ::std::convert::TryFrom<Builder>
|
3513 3510 | for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
3514 3511 | {
|
3515 3512 | type Error = ConstraintViolation;
|
3516 3513 |
|
3517 3514 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
3518 3515 | builder.build()
|
3519 3516 | }
|
3520 3517 | }
|
3521 3518 | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput).
|
3522 3519 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
3523 3520 | pub struct Builder {
|
3524 3521 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
3525 3522 | }
|
3526 3523 | impl Builder {
|
3527 3524 | #[allow(missing_docs)] // documentation missing in model
|
3528 3525 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
@@ -4738,4735 +4798,4794 @@
4738 4735 | .map(|v: crate::model::SetOfRangeInteger| v.into()),
|
4739 4736 | range_long_set_query: self
|
4740 4737 | .range_long_set_query
|
4741 4738 | .map(|v| match v {
|
4742 4739 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4743 4740 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4744 4741 | })
|
4745 4742 | .map(|res| res.map_err(ConstraintViolation::RangeLongSetQuery))
|
4746 4743 | .transpose()?
|
4747 4744 | .map(|v: crate::model::SetOfRangeLong| v.into()),
|
4748 4745 | enum_string_list_query: self
|
4749 4746 | .enum_string_list_query
|
4750 4747 | .map(|v| match v {
|
4751 4748 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
4752 4749 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
4753 4750 | })
|
4754 4751 | .map(|res| {
|
4755 4752 | res.map(|v| v.into())
|
4756 4753 | .map_err(ConstraintViolation::EnumStringListQuery)
|
4757 4754 | })
|
4758 4755 | .transpose()?,
|
4759 4756 | })
|
4760 4757 | }
|
4761 4758 | }
|
4762 4759 | }
|
4763 4760 | /// See [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4764 4761 | pub mod constrained_http_bound_shapes_operation_input {
|
4765 4762 |
|
4766 4763 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4767 4764 | /// Holds one variant for each of the ways the builder can fail.
|
4768 - |
|
4769 4765 | #[allow(clippy::enum_variant_names)]
|
4770 4766 | pub enum ConstraintViolation {
|
4771 4767 | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4772 4768 | MissingLengthStringLabel,
|
4773 4769 | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4774 4770 | MissingEnumStringLabel,
|
4775 4771 | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`.
|
4776 4772 | MissingLengthStringHeaderMap,
|
4777 4773 | }
|
4778 4774 | impl ::std::fmt::Display for ConstraintViolation {
|
4779 4775 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4780 4776 | match self {
|
4781 4777 | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4782 4778 | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4783 4779 | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationInput`"),
|
4784 4780 | }
|
4785 4781 | }
|
4786 4782 | }
|
4787 4783 | impl ::std::error::Error for ConstraintViolation {}
|
4788 4784 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedHttpBoundShapesOperationInput {
|
4789 4785 | type Error = ConstraintViolation;
|
4790 4786 |
|
4791 4787 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4792 4788 | builder.build()
|
4793 4789 | }
|
4794 4790 | }
|
4795 4791 | /// A builder for [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput).
|
4796 4792 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4797 4793 | pub struct Builder {
|
4798 4794 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
@@ -5351,5347 +5411,5406 @@
5351 5347 | /// The builder fails to construct a [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) if a [`ConstraintViolation`] occurs.
|
5352 5348 | ///
|
5353 5349 | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
5354 5350 | pub fn build(
|
5355 5351 | self,
|
5356 5352 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5357 5353 | self.build_enforcing_all_constraints()
|
5358 5354 | }
|
5359 5355 | fn build_enforcing_all_constraints(
|
5360 5356 | self,
|
5361 5357 | ) -> Result<crate::input::ConstrainedShapesOperationInput, ConstraintViolation> {
|
5362 5358 | Ok(crate::input::ConstrainedShapesOperationInput {
|
5363 5359 | con_a: self
|
5364 5360 | .con_a
|
5365 5361 | .map(|v| match v {
|
5366 5362 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
5367 5363 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
5368 5364 | })
|
5369 5365 | .map(|res| res.map_err(ConstraintViolation::ConA))
|
5370 5366 | .transpose()?
|
5371 5367 | .ok_or(ConstraintViolation::MissingConA)?,
|
5372 5368 | })
|
5373 5369 | }
|
5374 5370 | }
|
5375 5371 | }
|
5376 5372 | /// See [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5377 5373 | pub mod constrained_shapes_operation_input {
|
5378 5374 |
|
5379 5375 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5380 5376 | /// Holds one variant for each of the ways the builder can fail.
|
5381 - |
|
5382 5377 | #[allow(clippy::enum_variant_names)]
|
5383 5378 | pub enum ConstraintViolation {
|
5384 5379 | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`.
|
5385 5380 | MissingConA,
|
5386 5381 | }
|
5387 5382 | impl ::std::fmt::Display for ConstraintViolation {
|
5388 5383 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5389 5384 | match self {
|
5390 5385 | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationInput`"),
|
5391 5386 | }
|
5392 5387 | }
|
5393 5388 | }
|
5394 5389 | impl ::std::error::Error for ConstraintViolation {}
|
5395 5390 | impl ::std::convert::TryFrom<Builder> for crate::input::ConstrainedShapesOperationInput {
|
5396 5391 | type Error = ConstraintViolation;
|
5397 5392 |
|
5398 5393 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5399 5394 | builder.build()
|
5400 5395 | }
|
5401 5396 | }
|
5402 5397 | /// A builder for [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput).
|
5403 5398 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5404 5399 | pub struct Builder {
|
5405 5400 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
5406 5401 | }
|
5407 5402 | impl Builder {
|
5408 5403 | #[allow(missing_docs)] // documentation missing in model
|
5409 5404 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
5410 5405 | self.con_a = Some(input);
|
5411 5406 | self
|
@@ -4222,4222 +4282,4281 @@
4222 4222 | }
|
4223 4223 | }
|
4224 4224 | impl ::std::convert::TryFrom<::std::vec::Vec<crate::model::ConstrainedUnionInOutput>>
|
4225 4225 | for ConstrainedListInOutput
|
4226 4226 | {
|
4227 4227 | type Error = crate::model::constrained_list_in_output_internal::ConstraintViolation;
|
4228 4228 |
|
4229 4229 | /// Constructs a `ConstrainedListInOutput` from an [`::std::vec::Vec<crate::model::ConstrainedUnionInOutput>`], failing when the provided value does not satisfy the modeled constraints.
|
4230 4230 | fn try_from(
|
4231 4231 | value: ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>,
|
4232 4232 | ) -> ::std::result::Result<Self, Self::Error> {
|
4233 4233 | Self::check_length(value.len())?;
|
4234 4234 |
|
4235 4235 | Ok(Self(value))
|
4236 4236 | }
|
4237 4237 | }
|
4238 4238 |
|
4239 4239 | impl ::std::convert::From<ConstrainedListInOutput>
|
4240 4240 | for ::std::vec::Vec<crate::model::ConstrainedUnionInOutput>
|
4241 4241 | {
|
4242 4242 | fn from(value: ConstrainedListInOutput) -> Self {
|
4243 4243 | value.into_inner()
|
4244 4244 | }
|
4245 4245 | }
|
4246 4246 |
|
4247 4247 | /// See [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
4248 4248 | pub mod validation_exception_field {
|
4249 4249 |
|
4250 4250 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
4251 4251 | /// Holds one variant for each of the ways the builder can fail.
|
4252 - |
|
4253 4252 | #[allow(clippy::enum_variant_names)]
|
4254 4253 | pub enum ConstraintViolation {
|
4255 4254 | /// `path` was not provided but it is required when building `ValidationExceptionField`.
|
4256 4255 | MissingPath,
|
4257 4256 | /// `message` was not provided but it is required when building `ValidationExceptionField`.
|
4258 4257 | MissingMessage,
|
4259 4258 | }
|
4260 4259 | impl ::std::fmt::Display for ConstraintViolation {
|
4261 4260 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
4262 4261 | match self {
|
4263 4262 | ConstraintViolation::MissingPath => write!(f, "`path` was not provided but it is required when building `ValidationExceptionField`"),
|
4264 4263 | ConstraintViolation::MissingMessage => write!(f, "`message` was not provided but it is required when building `ValidationExceptionField`"),
|
4265 4264 | }
|
4266 4265 | }
|
4267 4266 | }
|
4268 4267 | impl ::std::error::Error for ConstraintViolation {}
|
4269 4268 | impl ::std::convert::TryFrom<Builder> for crate::model::ValidationExceptionField {
|
4270 4269 | type Error = ConstraintViolation;
|
4271 4270 |
|
4272 4271 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
4273 4272 | builder.build()
|
4274 4273 | }
|
4275 4274 | }
|
4276 4275 | /// A builder for [`ValidationExceptionField`](crate::model::ValidationExceptionField).
|
4277 4276 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
4278 4277 | pub struct Builder {
|
4279 4278 | pub(crate) path: ::std::option::Option<::std::string::String>,
|
4280 4279 | pub(crate) message: ::std::option::Option<::std::string::String>,
|
4281 4280 | }
|
4282 4281 | impl Builder {
|
@@ -5347,5346 +5407,5405 @@
5347 5346 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
5348 5347 | self.build_enforcing_all_constraints()
|
5349 5348 | }
|
5350 5349 | fn build_enforcing_all_constraints(
|
5351 5350 | self,
|
5352 5351 | ) -> Result<crate::model::RecursiveShapesInputOutputNested1, ConstraintViolation> {
|
5353 5352 | Ok(crate::model::RecursiveShapesInputOutputNested1 {
|
5354 5353 | recursive_member: self
|
5355 5354 | .recursive_member
|
5356 5355 | .map(|v| match *v {
|
5357 5356 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(Box::new(x)),
|
5358 5357 | crate::constrained::MaybeConstrained::Unconstrained(x) => {
|
5359 5358 | Ok(Box::new(x.try_into()?))
|
5360 5359 | }
|
5361 5360 | })
|
5362 5361 | .map(|res| {
|
5363 5362 | res.map_err(Box::new)
|
5364 5363 | .map_err(ConstraintViolation::RecursiveMember)
|
5365 5364 | })
|
5366 5365 | .transpose()?
|
5367 5366 | .ok_or(ConstraintViolation::MissingRecursiveMember)?,
|
5368 5367 | })
|
5369 5368 | }
|
5370 5369 | }
|
5371 5370 | }
|
5372 5371 | /// See [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
5373 5372 | pub mod recursive_shapes_input_output_nested1 {
|
5374 5373 |
|
5375 5374 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5376 5375 | /// Holds one variant for each of the ways the builder can fail.
|
5377 - |
|
5378 5376 | #[allow(clippy::enum_variant_names)]
|
5379 5377 | pub enum ConstraintViolation {
|
5380 5378 | /// `recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`.
|
5381 5379 | MissingRecursiveMember,
|
5382 5380 | }
|
5383 5381 | impl ::std::fmt::Display for ConstraintViolation {
|
5384 5382 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
5385 5383 | match self {
|
5386 5384 | ConstraintViolation::MissingRecursiveMember => write!(f, "`recursive_member` was not provided but it is required when building `RecursiveShapesInputOutputNested1`"),
|
5387 5385 | }
|
5388 5386 | }
|
5389 5387 | }
|
5390 5388 | impl ::std::error::Error for ConstraintViolation {}
|
5391 5389 | impl ::std::convert::TryFrom<Builder> for crate::model::RecursiveShapesInputOutputNested1 {
|
5392 5390 | type Error = ConstraintViolation;
|
5393 5391 |
|
5394 5392 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
5395 5393 | builder.build()
|
5396 5394 | }
|
5397 5395 | }
|
5398 5396 | /// A builder for [`RecursiveShapesInputOutputNested1`](crate::model::RecursiveShapesInputOutputNested1).
|
5399 5397 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
5400 5398 | pub struct Builder {
|
5401 5399 | pub(crate) recursive_member: ::std::option::Option<
|
5402 5400 | ::std::boxed::Box<crate::model::RecursiveShapesInputOutputNested2>,
|
5403 5401 | >,
|
5404 5402 | }
|
5405 5403 | impl Builder {
|
5406 5404 | #[allow(missing_docs)] // documentation missing in model
|
5407 5405 | pub fn recursive_member(
|
@@ -7490,7488 +7550,7547 @@
7490 7488 | .map(|res| res.map_err(ConstraintViolation::SetOfLengthPatternString))
|
7491 7489 | .transpose()?
|
7492 7490 | .map(|v: crate::model::SetOfLengthPatternString| v.into()),
|
7493 7491 | length_list_of_pattern_string: self
|
7494 7492 | .length_list_of_pattern_string
|
7495 7493 | .map(|v| match v {
|
7496 7494 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7497 7495 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7498 7496 | })
|
7499 7497 | .map(|res| res.map_err(ConstraintViolation::LengthListOfPatternString))
|
7500 7498 | .transpose()?
|
7501 7499 | .map(|v: crate::model::LengthListOfPatternString| v.into()),
|
7502 7500 | length_set_of_pattern_string: self
|
7503 7501 | .length_set_of_pattern_string
|
7504 7502 | .map(|v| match v {
|
7505 7503 | crate::constrained::MaybeConstrained::Constrained(x) => Ok(x),
|
7506 7504 | crate::constrained::MaybeConstrained::Unconstrained(x) => x.try_into(),
|
7507 7505 | })
|
7508 7506 | .map(|res| res.map_err(ConstraintViolation::LengthSetOfPatternString))
|
7509 7507 | .transpose()?
|
7510 7508 | .map(|v: crate::model::LengthSetOfPatternString| v.into()),
|
7511 7509 | })
|
7512 7510 | }
|
7513 7511 | }
|
7514 7512 | }
|
7515 7513 | /// See [`ConA`](crate::model::ConA).
|
7516 7514 | pub mod con_a {
|
7517 7515 |
|
7518 7516 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
7519 7517 | /// Holds one variant for each of the ways the builder can fail.
|
7520 - |
|
7521 7518 | #[allow(clippy::enum_variant_names)]
|
7522 7519 | pub enum ConstraintViolation {
|
7523 7520 | /// `con_b` was not provided but it is required when building `ConA`.
|
7524 7521 | MissingConB,
|
7525 7522 | }
|
7526 7523 | impl ::std::fmt::Display for ConstraintViolation {
|
7527 7524 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
7528 7525 | match self {
|
7529 7526 | ConstraintViolation::MissingConB => write!(
|
7530 7527 | f,
|
7531 7528 | "`con_b` was not provided but it is required when building `ConA`"
|
7532 7529 | ),
|
7533 7530 | }
|
7534 7531 | }
|
7535 7532 | }
|
7536 7533 | impl ::std::error::Error for ConstraintViolation {}
|
7537 7534 | impl ::std::convert::TryFrom<Builder> for crate::model::ConA {
|
7538 7535 | type Error = ConstraintViolation;
|
7539 7536 |
|
7540 7537 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
7541 7538 | builder.build()
|
7542 7539 | }
|
7543 7540 | }
|
7544 7541 | /// A builder for [`ConA`](crate::model::ConA).
|
7545 7542 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
7546 7543 | pub struct Builder {
|
7547 7544 | pub(crate) con_b: ::std::option::Option<crate::model::ConB>,
|
7548 7545 | pub(crate) opt_con_b: ::std::option::Option<crate::model::ConB>,
|
7549 7546 | pub(crate) length_string: ::std::option::Option<::std::string::String>,
|
7550 7547 | pub(crate) min_length_string: ::std::option::Option<::std::string::String>,
|
@@ -9502,9499 +9562,9558 @@
9502 9499 | #[allow(missing_docs)] // documentation missing in model
|
9503 9500 | pub(crate) fn set_opt_int(mut self, input: Option<impl ::std::convert::Into<i32>>) -> Self {
|
9504 9501 | self.opt_int = input.map(|v| v.into());
|
9505 9502 | self
|
9506 9503 | }
|
9507 9504 | /// Consumes the builder and constructs a [`ConB`](crate::model::ConB).
|
9508 9505 | ///
|
9509 9506 | /// The builder fails to construct a [`ConB`](crate::model::ConB) if a [`ConstraintViolation`] occurs.
|
9510 9507 | ///
|
9511 9508 | /// If the builder fails, it will return the _first_ encountered [`ConstraintViolation`].
|
9512 9509 | pub fn build(self) -> Result<crate::model::ConB, ConstraintViolation> {
|
9513 9510 | self.build_enforcing_all_constraints()
|
9514 9511 | }
|
9515 9512 | fn build_enforcing_all_constraints(
|
9516 9513 | self,
|
9517 9514 | ) -> Result<crate::model::ConB, ConstraintViolation> {
|
9518 9515 | Ok(crate::model::ConB {
|
9519 9516 | nice: self.nice.ok_or(ConstraintViolation::MissingNice)?,
|
9520 9517 | int: self.int.ok_or(ConstraintViolation::MissingInt)?,
|
9521 9518 | opt_nice: self.opt_nice,
|
9522 9519 | opt_int: self.opt_int,
|
9523 9520 | })
|
9524 9521 | }
|
9525 9522 | }
|
9526 9523 | }
|
9527 9524 | /// See [`ConB`](crate::model::ConB).
|
9528 9525 | pub mod con_b {
|
9529 9526 |
|
9530 9527 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
9531 9528 | /// Holds one variant for each of the ways the builder can fail.
|
9532 - |
|
9533 9529 | #[allow(clippy::enum_variant_names)]
|
9534 9530 | pub enum ConstraintViolation {
|
9535 9531 | /// `nice` was not provided but it is required when building `ConB`.
|
9536 9532 | MissingNice,
|
9537 9533 | /// `int` was not provided but it is required when building `ConB`.
|
9538 9534 | MissingInt,
|
9539 9535 | }
|
9540 9536 | impl ::std::fmt::Display for ConstraintViolation {
|
9541 9537 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
9542 9538 | match self {
|
9543 9539 | ConstraintViolation::MissingNice => write!(
|
9544 9540 | f,
|
9545 9541 | "`nice` was not provided but it is required when building `ConB`"
|
9546 9542 | ),
|
9547 9543 | ConstraintViolation::MissingInt => write!(
|
9548 9544 | f,
|
9549 9545 | "`int` was not provided but it is required when building `ConB`"
|
9550 9546 | ),
|
9551 9547 | }
|
9552 9548 | }
|
9553 9549 | }
|
9554 9550 | impl ::std::error::Error for ConstraintViolation {}
|
9555 9551 | impl ::std::convert::TryFrom<Builder> for crate::model::ConB {
|
9556 9552 | type Error = ConstraintViolation;
|
9557 9553 |
|
9558 9554 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
9559 9555 | builder.build()
|
9560 9556 | }
|
9561 9557 | }
|
9562 9558 | /// A builder for [`ConB`](crate::model::ConB).
|
@@ -28,28 +88,87 @@
28 28 | }
|
29 29 | }
|
30 30 |
|
31 31 | impl<B>
|
32 32 | ::aws_smithy_http_server::request::FromRequest<
|
33 33 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
34 34 | B,
|
35 35 | > for crate::input::EventStreamsOperationInput
|
36 36 | where
|
37 37 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38 38 | B: 'static,
|
39 39 |
|
40 40 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
41 41 | B::Data: Send,
|
42 42 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
43 43 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
44 44 | {
|
45 45 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
46 46 | type Future = EventStreamsOperationInputFuture;
|
47 47 |
|
48 48 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
49 49 | let fut = async move {
|
50 50 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
51 51 | request.headers(),
|
52 52 | &CONTENT_TYPE_EVENTSTREAMSOPERATION,
|
53 53 | ) {
|
54 54 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
55 55 | }
|
56 56 | crate::protocol_serde::shape_event_streams_operation::de_event_streams_operation_http_request(request)
|
57 57 | .await
|
58 - | .map_err(Into::into)
|
59 58 | };
|
60 59 | use ::futures_util::future::TryFutureExt;
|
61 60 | let fut = fut.map_err(
|
62 61 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
63 62 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
64 63 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
65 64 | e,
|
66 65 | )
|
67 66 | },
|
68 67 | );
|
69 68 | EventStreamsOperationInputFuture {
|
70 69 | inner: Box::pin(fut),
|
71 70 | }
|
72 71 | }
|
73 72 | }
|
74 73 | impl
|
75 74 | ::aws_smithy_http_server::response::IntoResponse<
|
76 75 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
77 76 | > for crate::output::EventStreamsOperationOutput
|
78 77 | {
|
79 78 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
80 79 | match crate::protocol_serde::shape_event_streams_operation::ser_event_streams_operation_http_response(self) {
|
81 80 | Ok(response) => response,
|
82 81 | Err(e) => {
|
83 82 | ::tracing::error!(error = %e, "failed to serialize response");
|
84 83 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
85 84 | }
|
86 85 | }
|
87 86 | }
|
88 87 | }
|
@@ -129,128 +189,187 @@
129 128 | }
|
130 129 | }
|
131 130 |
|
132 131 | impl<B>
|
133 132 | ::aws_smithy_http_server::request::FromRequest<
|
134 133 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
135 134 | B,
|
136 135 | > for crate::input::StreamingBlobOperationInput
|
137 136 | where
|
138 137 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
139 138 | B: 'static,
|
140 139 |
|
141 140 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
142 141 | B::Data: Send,
|
143 142 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
144 143 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
145 144 | {
|
146 145 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
147 146 | type Future = StreamingBlobOperationInputFuture;
|
148 147 |
|
149 148 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
150 149 | let fut = async move {
|
151 150 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
152 151 | request.headers(),
|
153 152 | &CONTENT_TYPE_STREAMINGBLOBOPERATION,
|
154 153 | ) {
|
155 154 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
156 155 | }
|
157 156 | crate::protocol_serde::shape_streaming_blob_operation::de_streaming_blob_operation_http_request(request)
|
158 157 | .await
|
159 - | .map_err(Into::into)
|
160 158 | };
|
161 159 | use ::futures_util::future::TryFutureExt;
|
162 160 | let fut = fut.map_err(
|
163 161 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
164 162 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
165 163 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
166 164 | e,
|
167 165 | )
|
168 166 | },
|
169 167 | );
|
170 168 | StreamingBlobOperationInputFuture {
|
171 169 | inner: Box::pin(fut),
|
172 170 | }
|
173 171 | }
|
174 172 | }
|
175 173 | impl
|
176 174 | ::aws_smithy_http_server::response::IntoResponse<
|
177 175 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
178 176 | > for crate::output::StreamingBlobOperationOutput
|
179 177 | {
|
180 178 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
181 179 | match crate::protocol_serde::shape_streaming_blob_operation::ser_streaming_blob_operation_http_response(self) {
|
182 180 | Ok(response) => response,
|
183 181 | Err(e) => {
|
184 182 | ::tracing::error!(error = %e, "failed to serialize response");
|
185 183 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
186 184 | }
|
187 185 | }
|
188 186 | }
|
189 187 | }
|
@@ -204,202 +264,261 @@
204 202 |
|
205 203 | fn poll(
|
206 204 | self: std::pin::Pin<&mut Self>,
|
207 205 | cx: &mut std::task::Context<'_>,
|
208 206 | ) -> std::task::Poll<Self::Output> {
|
209 207 | let this = self.project();
|
210 208 | this.inner.as_mut().poll(cx)
|
211 209 | }
|
212 210 | }
|
213 211 |
|
214 212 | impl<B>
|
215 213 | ::aws_smithy_http_server::request::FromRequest<
|
216 214 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
217 215 | B,
|
218 216 | > for crate::input::NonStreamingBlobOperationInput
|
219 217 | where
|
220 218 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
221 219 | B: 'static,
|
222 220 |
|
223 221 | B::Data: Send,
|
224 222 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
225 223 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
226 224 | {
|
227 225 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
228 226 | type Future = NonStreamingBlobOperationInputFuture;
|
229 227 |
|
230 228 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
231 229 | let fut = async move {
|
232 230 | crate::protocol_serde::shape_non_streaming_blob_operation::de_non_streaming_blob_operation_http_request(request)
|
233 231 | .await
|
234 - | .map_err(Into::into)
|
235 232 | };
|
236 233 | use ::futures_util::future::TryFutureExt;
|
237 234 | let fut = fut.map_err(
|
238 235 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
239 236 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
240 237 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
241 238 | e,
|
242 239 | )
|
243 240 | },
|
244 241 | );
|
245 242 | NonStreamingBlobOperationInputFuture {
|
246 243 | inner: Box::pin(fut),
|
247 244 | }
|
248 245 | }
|
249 246 | }
|
250 247 | impl
|
251 248 | ::aws_smithy_http_server::response::IntoResponse<
|
252 249 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
253 250 | > for crate::output::NonStreamingBlobOperationOutput
|
254 251 | {
|
255 252 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
256 253 | match crate::protocol_serde::shape_non_streaming_blob_operation::ser_non_streaming_blob_operation_http_response(self) {
|
257 254 | Ok(response) => response,
|
258 255 | Err(e) => {
|
259 256 | ::tracing::error!(error = %e, "failed to serialize response");
|
260 257 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
261 258 | }
|
262 259 | }
|
263 260 | }
|
264 261 | }
|
@@ -287,284 +347,343 @@
287 284 | this.inner.as_mut().poll(cx)
|
288 285 | }
|
289 286 | }
|
290 287 |
|
291 288 | impl<B>
|
292 289 | ::aws_smithy_http_server::request::FromRequest<
|
293 290 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
294 291 | B,
|
295 292 | > for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
296 293 | where
|
297 294 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
298 295 | B: 'static,
|
299 296 |
|
300 297 | B::Data: Send,
|
301 298 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
302 299 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
303 300 | {
|
304 301 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
305 302 | type Future = QueryParamsTargetingMapOfEnumStringOperationInputFuture;
|
306 303 |
|
307 304 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
308 305 | let fut = async move {
|
309 306 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
310 307 | request.headers(),
|
311 308 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFENUMSTRINGOPERATION,
|
312 309 | ) {
|
313 310 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
314 311 | }
|
315 312 | crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::de_query_params_targeting_map_of_enum_string_operation_http_request(request)
|
316 313 | .await
|
317 - | .map_err(Into::into)
|
318 314 | };
|
319 315 | use ::futures_util::future::TryFutureExt;
|
320 316 | let fut = fut.map_err(
|
321 317 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
322 318 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
323 319 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
324 320 | e,
|
325 321 | )
|
326 322 | },
|
327 323 | );
|
328 324 | QueryParamsTargetingMapOfEnumStringOperationInputFuture {
|
329 325 | inner: Box::pin(fut),
|
330 326 | }
|
331 327 | }
|
332 328 | }
|
333 329 | impl
|
334 330 | ::aws_smithy_http_server::response::IntoResponse<
|
335 331 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
336 332 | > for crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput
|
337 333 | {
|
338 334 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
339 335 | match crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::ser_query_params_targeting_map_of_enum_string_operation_http_response(self) {
|
340 336 | Ok(response) => response,
|
341 337 | Err(e) => {
|
342 338 | ::tracing::error!(error = %e, "failed to serialize response");
|
343 339 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
344 340 | }
|
345 341 | }
|
346 342 | }
|
347 343 | }
|
@@ -388,384 +448,443 @@
388 384 | this.inner.as_mut().poll(cx)
|
389 385 | }
|
390 386 | }
|
391 387 |
|
392 388 | impl<B>
|
393 389 | ::aws_smithy_http_server::request::FromRequest<
|
394 390 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
395 391 | B,
|
396 392 | > for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
397 393 | where
|
398 394 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
399 395 | B: 'static,
|
400 396 |
|
401 397 | B::Data: Send,
|
402 398 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
403 399 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
404 400 | {
|
405 401 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
406 402 | type Future = HttpPrefixHeadersTargetingLengthMapOperationInputFuture;
|
407 403 |
|
408 404 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
409 405 | let fut = async move {
|
410 406 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
411 407 | request.headers(),
|
412 408 | &CONTENT_TYPE_HTTPPREFIXHEADERSTARGETINGLENGTHMAPOPERATION,
|
413 409 | ) {
|
414 410 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
415 411 | }
|
416 412 | crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::de_http_prefix_headers_targeting_length_map_operation_http_request(request)
|
417 413 | .await
|
418 - | .map_err(Into::into)
|
419 414 | };
|
420 415 | use ::futures_util::future::TryFutureExt;
|
421 416 | let fut = fut.map_err(
|
422 417 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
423 418 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
424 419 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
425 420 | e,
|
426 421 | )
|
427 422 | },
|
428 423 | );
|
429 424 | HttpPrefixHeadersTargetingLengthMapOperationInputFuture {
|
430 425 | inner: Box::pin(fut),
|
431 426 | }
|
432 427 | }
|
433 428 | }
|
434 429 | impl
|
435 430 | ::aws_smithy_http_server::response::IntoResponse<
|
436 431 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
437 432 | > for crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput
|
438 433 | {
|
439 434 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
440 435 | match crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::ser_http_prefix_headers_targeting_length_map_operation_http_response(self) {
|
441 436 | Ok(response) => response,
|
442 437 | Err(e) => {
|
443 438 | ::tracing::error!(error = %e, "failed to serialize response");
|
444 439 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
445 440 | }
|
446 441 | }
|
447 442 | }
|
448 443 | }
|
@@ -491,486 +551,545 @@
491 486 | this.inner.as_mut().poll(cx)
|
492 487 | }
|
493 488 | }
|
494 489 |
|
495 490 | impl<B>
|
496 491 | ::aws_smithy_http_server::request::FromRequest<
|
497 492 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
498 493 | B,
|
499 494 | > for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
500 495 | where
|
501 496 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
502 497 | B: 'static,
|
503 498 |
|
504 499 | B::Data: Send,
|
505 500 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
506 501 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
507 502 | {
|
508 503 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
509 504 | type Future = QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture;
|
510 505 |
|
511 506 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
512 507 | let fut = async move {
|
513 508 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
514 509 | request.headers(),
|
515 510 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHPATTERNSTRINGOPERATION,
|
516 511 | ) {
|
517 512 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
518 513 | }
|
519 514 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::de_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_request(request)
|
520 515 | .await
|
521 - | .map_err(Into::into)
|
522 516 | };
|
523 517 | use ::futures_util::future::TryFutureExt;
|
524 518 | let fut = fut.map_err(
|
525 519 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
526 520 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
527 521 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
528 522 | e,
|
529 523 | )
|
530 524 | },
|
531 525 | );
|
532 526 | QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture {
|
533 527 | inner: Box::pin(fut),
|
534 528 | }
|
535 529 | }
|
536 530 | }
|
537 531 | impl
|
538 532 | ::aws_smithy_http_server::response::IntoResponse<
|
539 533 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
540 534 | > for crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
541 535 | {
|
542 536 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
543 537 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_pattern_string_operation::ser_query_params_targeting_map_of_list_of_length_pattern_string_operation_http_response(self) {
|
544 538 | Ok(response) => response,
|
545 539 | Err(e) => {
|
546 540 | ::tracing::error!(error = %e, "failed to serialize response");
|
547 541 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
548 542 | }
|
549 543 | }
|
550 544 | }
|
551 545 | }
|
@@ -592,586 +652,645 @@
592 586 | this.inner.as_mut().poll(cx)
|
593 587 | }
|
594 588 | }
|
595 589 |
|
596 590 | impl<B>
|
597 591 | ::aws_smithy_http_server::request::FromRequest<
|
598 592 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
599 593 | B,
|
600 594 | > for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
601 595 | where
|
602 596 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
603 597 | B: 'static,
|
604 598 |
|
605 599 | B::Data: Send,
|
606 600 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
607 601 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
608 602 | {
|
609 603 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
610 604 | type Future = QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture;
|
611 605 |
|
612 606 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
613 607 | let fut = async move {
|
614 608 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
615 609 | request.headers(),
|
616 610 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHPATTERNSTRINGOPERATION,
|
617 611 | ) {
|
618 612 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
619 613 | }
|
620 614 | crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::de_query_params_targeting_map_of_length_pattern_string_operation_http_request(request)
|
621 615 | .await
|
622 - | .map_err(Into::into)
|
623 616 | };
|
624 617 | use ::futures_util::future::TryFutureExt;
|
625 618 | let fut = fut.map_err(
|
626 619 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
627 620 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
628 621 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
629 622 | e,
|
630 623 | )
|
631 624 | },
|
632 625 | );
|
633 626 | QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture {
|
634 627 | inner: Box::pin(fut),
|
635 628 | }
|
636 629 | }
|
637 630 | }
|
638 631 | impl
|
639 632 | ::aws_smithy_http_server::response::IntoResponse<
|
640 633 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
641 634 | > for crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput
|
642 635 | {
|
643 636 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
644 637 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_pattern_string_operation::ser_query_params_targeting_map_of_length_pattern_string_operation_http_response(self) {
|
645 638 | Ok(response) => response,
|
646 639 | Err(e) => {
|
647 640 | ::tracing::error!(error = %e, "failed to serialize response");
|
648 641 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
649 642 | }
|
650 643 | }
|
651 644 | }
|
652 645 | }
|
@@ -693,686 +753,745 @@
693 686 | this.inner.as_mut().poll(cx)
|
694 687 | }
|
695 688 | }
|
696 689 |
|
697 690 | impl<B>
|
698 691 | ::aws_smithy_http_server::request::FromRequest<
|
699 692 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
700 693 | B,
|
701 694 | > for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
702 695 | where
|
703 696 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
704 697 | B: 'static,
|
705 698 |
|
706 699 | B::Data: Send,
|
707 700 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
708 701 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
709 702 | {
|
710 703 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
711 704 | type Future = QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture;
|
712 705 |
|
713 706 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
714 707 | let fut = async move {
|
715 708 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
716 709 | request.headers(),
|
717 710 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFPATTERNSTRINGOPERATION,
|
718 711 | ) {
|
719 712 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
720 713 | }
|
721 714 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::de_query_params_targeting_map_of_list_of_pattern_string_operation_http_request(request)
|
722 715 | .await
|
723 - | .map_err(Into::into)
|
724 716 | };
|
725 717 | use ::futures_util::future::TryFutureExt;
|
726 718 | let fut = fut.map_err(
|
727 719 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
728 720 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
729 721 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
730 722 | e,
|
731 723 | )
|
732 724 | },
|
733 725 | );
|
734 726 | QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture {
|
735 727 | inner: Box::pin(fut),
|
736 728 | }
|
737 729 | }
|
738 730 | }
|
739 731 | impl
|
740 732 | ::aws_smithy_http_server::response::IntoResponse<
|
741 733 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
742 734 | > for crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput
|
743 735 | {
|
744 736 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
745 737 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_pattern_string_operation::ser_query_params_targeting_map_of_list_of_pattern_string_operation_http_response(self) {
|
746 738 | Ok(response) => response,
|
747 739 | Err(e) => {
|
748 740 | ::tracing::error!(error = %e, "failed to serialize response");
|
749 741 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
750 742 | }
|
751 743 | }
|
752 744 | }
|
753 745 | }
|
@@ -794,786 +854,845 @@
794 786 | this.inner.as_mut().poll(cx)
|
795 787 | }
|
796 788 | }
|
797 789 |
|
798 790 | impl<B>
|
799 791 | ::aws_smithy_http_server::request::FromRequest<
|
800 792 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
801 793 | B,
|
802 794 | > for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
803 795 | where
|
804 796 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
805 797 | B: 'static,
|
806 798 |
|
807 799 | B::Data: Send,
|
808 800 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
809 801 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
810 802 | {
|
811 803 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
812 804 | type Future = QueryParamsTargetingMapOfPatternStringOperationInputFuture;
|
813 805 |
|
814 806 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
815 807 | let fut = async move {
|
816 808 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
817 809 | request.headers(),
|
818 810 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFPATTERNSTRINGOPERATION,
|
819 811 | ) {
|
820 812 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
821 813 | }
|
822 814 | crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::de_query_params_targeting_map_of_pattern_string_operation_http_request(request)
|
823 815 | .await
|
824 - | .map_err(Into::into)
|
825 816 | };
|
826 817 | use ::futures_util::future::TryFutureExt;
|
827 818 | let fut = fut.map_err(
|
828 819 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
829 820 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
830 821 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
831 822 | e,
|
832 823 | )
|
833 824 | },
|
834 825 | );
|
835 826 | QueryParamsTargetingMapOfPatternStringOperationInputFuture {
|
836 827 | inner: Box::pin(fut),
|
837 828 | }
|
838 829 | }
|
839 830 | }
|
840 831 | impl
|
841 832 | ::aws_smithy_http_server::response::IntoResponse<
|
842 833 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
843 834 | > for crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput
|
844 835 | {
|
845 836 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
846 837 | match crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::ser_query_params_targeting_map_of_pattern_string_operation_http_response(self) {
|
847 838 | Ok(response) => response,
|
848 839 | Err(e) => {
|
849 840 | ::tracing::error!(error = %e, "failed to serialize response");
|
850 841 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
851 842 | }
|
852 843 | }
|
853 844 | }
|
854 845 | }
|
@@ -895,886 +955,945 @@
895 886 | this.inner.as_mut().poll(cx)
|
896 887 | }
|
897 888 | }
|
898 889 |
|
899 890 | impl<B>
|
900 891 | ::aws_smithy_http_server::request::FromRequest<
|
901 892 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
902 893 | B,
|
903 894 | > for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
904 895 | where
|
905 896 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
906 897 | B: 'static,
|
907 898 |
|
908 899 | B::Data: Send,
|
909 900 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
910 901 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
911 902 | {
|
912 903 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
913 904 | type Future = QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture;
|
914 905 |
|
915 906 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
916 907 | let fut = async move {
|
917 908 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
918 909 | request.headers(),
|
919 910 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFENUMSTRINGOPERATION,
|
920 911 | ) {
|
921 912 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
922 913 | }
|
923 914 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::de_query_params_targeting_map_of_list_of_enum_string_operation_http_request(request)
|
924 915 | .await
|
925 - | .map_err(Into::into)
|
926 916 | };
|
927 917 | use ::futures_util::future::TryFutureExt;
|
928 918 | let fut = fut.map_err(
|
929 919 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
930 920 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
931 921 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
932 922 | e,
|
933 923 | )
|
934 924 | },
|
935 925 | );
|
936 926 | QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture {
|
937 927 | inner: Box::pin(fut),
|
938 928 | }
|
939 929 | }
|
940 930 | }
|
941 931 | impl
|
942 932 | ::aws_smithy_http_server::response::IntoResponse<
|
943 933 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
944 934 | > for crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput
|
945 935 | {
|
946 936 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
947 937 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_enum_string_operation::ser_query_params_targeting_map_of_list_of_enum_string_operation_http_response(self) {
|
948 938 | Ok(response) => response,
|
949 939 | Err(e) => {
|
950 940 | ::tracing::error!(error = %e, "failed to serialize response");
|
951 941 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
952 942 | }
|
953 943 | }
|
954 944 | }
|
955 945 | }
|
@@ -998,988 +1058,1047 @@
998 988 | this.inner.as_mut().poll(cx)
|
999 989 | }
|
1000 990 | }
|
1001 991 |
|
1002 992 | impl<B>
|
1003 993 | ::aws_smithy_http_server::request::FromRequest<
|
1004 994 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1005 995 | B,
|
1006 996 | > for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
1007 997 | where
|
1008 998 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1009 999 | B: 'static,
|
1010 1000 |
|
1011 1001 | B::Data: Send,
|
1012 1002 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1013 1003 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1014 1004 | {
|
1015 1005 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1016 1006 | type Future = QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture;
|
1017 1007 |
|
1018 1008 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1019 1009 | let fut = async move {
|
1020 1010 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1021 1011 | request.headers(),
|
1022 1012 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHLISTOFPATTERNSTRINGOPERATION,
|
1023 1013 | ) {
|
1024 1014 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1025 1015 | }
|
1026 1016 | crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::de_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_request(request)
|
1027 1017 | .await
|
1028 - | .map_err(Into::into)
|
1029 1018 | };
|
1030 1019 | use ::futures_util::future::TryFutureExt;
|
1031 1020 | let fut = fut.map_err(
|
1032 1021 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1033 1022 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1034 1023 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1035 1024 | e,
|
1036 1025 | )
|
1037 1026 | },
|
1038 1027 | );
|
1039 1028 | QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture {
|
1040 1029 | inner: Box::pin(fut),
|
1041 1030 | }
|
1042 1031 | }
|
1043 1032 | }
|
1044 1033 | impl
|
1045 1034 | ::aws_smithy_http_server::response::IntoResponse<
|
1046 1035 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1047 1036 | > for crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1048 1037 | {
|
1049 1038 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1050 1039 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_list_of_pattern_string_operation::ser_query_params_targeting_map_of_length_list_of_pattern_string_operation_http_response(self) {
|
1051 1040 | Ok(response) => response,
|
1052 1041 | Err(e) => {
|
1053 1042 | ::tracing::error!(error = %e, "failed to serialize response");
|
1054 1043 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1055 1044 | }
|
1056 1045 | }
|
1057 1046 | }
|
1058 1047 | }
|
@@ -1099,1088 +1159,1147 @@
1099 1088 | this.inner.as_mut().poll(cx)
|
1100 1089 | }
|
1101 1090 | }
|
1102 1091 |
|
1103 1092 | impl<B>
|
1104 1093 | ::aws_smithy_http_server::request::FromRequest<
|
1105 1094 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1106 1095 | B,
|
1107 1096 | > for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1108 1097 | where
|
1109 1098 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1110 1099 | B: 'static,
|
1111 1100 |
|
1112 1101 | B::Data: Send,
|
1113 1102 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1114 1103 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1115 1104 | {
|
1116 1105 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1117 1106 | type Future = QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture;
|
1118 1107 |
|
1119 1108 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1120 1109 | let fut = async move {
|
1121 1110 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1122 1111 | request.headers(),
|
1123 1112 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFSETOFLENGTHSTRINGOPERATION,
|
1124 1113 | ) {
|
1125 1114 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1126 1115 | }
|
1127 1116 | crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::de_query_params_targeting_map_of_set_of_length_string_operation_http_request(request)
|
1128 1117 | .await
|
1129 - | .map_err(Into::into)
|
1130 1118 | };
|
1131 1119 | use ::futures_util::future::TryFutureExt;
|
1132 1120 | let fut = fut.map_err(
|
1133 1121 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1134 1122 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1135 1123 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1136 1124 | e,
|
1137 1125 | )
|
1138 1126 | },
|
1139 1127 | );
|
1140 1128 | QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture {
|
1141 1129 | inner: Box::pin(fut),
|
1142 1130 | }
|
1143 1131 | }
|
1144 1132 | }
|
1145 1133 | impl
|
1146 1134 | ::aws_smithy_http_server::response::IntoResponse<
|
1147 1135 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1148 1136 | > for crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput
|
1149 1137 | {
|
1150 1138 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1151 1139 | match crate::protocol_serde::shape_query_params_targeting_map_of_set_of_length_string_operation::ser_query_params_targeting_map_of_set_of_length_string_operation_http_response(self) {
|
1152 1140 | Ok(response) => response,
|
1153 1141 | Err(e) => {
|
1154 1142 | ::tracing::error!(error = %e, "failed to serialize response");
|
1155 1143 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1156 1144 | }
|
1157 1145 | }
|
1158 1146 | }
|
1159 1147 | }
|
@@ -1200,1188 +1260,1247 @@
1200 1188 | this.inner.as_mut().poll(cx)
|
1201 1189 | }
|
1202 1190 | }
|
1203 1191 |
|
1204 1192 | impl<B>
|
1205 1193 | ::aws_smithy_http_server::request::FromRequest<
|
1206 1194 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1207 1195 | B,
|
1208 1196 | > for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
1209 1197 | where
|
1210 1198 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1211 1199 | B: 'static,
|
1212 1200 |
|
1213 1201 | B::Data: Send,
|
1214 1202 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1215 1203 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1216 1204 | {
|
1217 1205 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1218 1206 | type Future = QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture;
|
1219 1207 |
|
1220 1208 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1221 1209 | let fut = async move {
|
1222 1210 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1223 1211 | request.headers(),
|
1224 1212 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLISTOFLENGTHSTRINGOPERATION,
|
1225 1213 | ) {
|
1226 1214 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1227 1215 | }
|
1228 1216 | crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::de_query_params_targeting_map_of_list_of_length_string_operation_http_request(request)
|
1229 1217 | .await
|
1230 - | .map_err(Into::into)
|
1231 1218 | };
|
1232 1219 | use ::futures_util::future::TryFutureExt;
|
1233 1220 | let fut = fut.map_err(
|
1234 1221 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1235 1222 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1236 1223 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1237 1224 | e,
|
1238 1225 | )
|
1239 1226 | },
|
1240 1227 | );
|
1241 1228 | QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture {
|
1242 1229 | inner: Box::pin(fut),
|
1243 1230 | }
|
1244 1231 | }
|
1245 1232 | }
|
1246 1233 | impl
|
1247 1234 | ::aws_smithy_http_server::response::IntoResponse<
|
1248 1235 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1249 1236 | > for crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput
|
1250 1237 | {
|
1251 1238 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1252 1239 | match crate::protocol_serde::shape_query_params_targeting_map_of_list_of_length_string_operation::ser_query_params_targeting_map_of_list_of_length_string_operation_http_response(self) {
|
1253 1240 | Ok(response) => response,
|
1254 1241 | Err(e) => {
|
1255 1242 | ::tracing::error!(error = %e, "failed to serialize response");
|
1256 1243 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1257 1244 | }
|
1258 1245 | }
|
1259 1246 | }
|
1260 1247 | }
|
@@ -1301,1288 +1361,1347 @@
1301 1288 | this.inner.as_mut().poll(cx)
|
1302 1289 | }
|
1303 1290 | }
|
1304 1291 |
|
1305 1292 | impl<B>
|
1306 1293 | ::aws_smithy_http_server::request::FromRequest<
|
1307 1294 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1308 1295 | B,
|
1309 1296 | > for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
1310 1297 | where
|
1311 1298 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1312 1299 | B: 'static,
|
1313 1300 |
|
1314 1301 | B::Data: Send,
|
1315 1302 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1316 1303 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1317 1304 | {
|
1318 1305 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1319 1306 | type Future = QueryParamsTargetingMapOfLengthStringOperationInputFuture;
|
1320 1307 |
|
1321 1308 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1322 1309 | let fut = async move {
|
1323 1310 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1324 1311 | request.headers(),
|
1325 1312 | &CONTENT_TYPE_QUERYPARAMSTARGETINGMAPOFLENGTHSTRINGOPERATION,
|
1326 1313 | ) {
|
1327 1314 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1328 1315 | }
|
1329 1316 | crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::de_query_params_targeting_map_of_length_string_operation_http_request(request)
|
1330 1317 | .await
|
1331 - | .map_err(Into::into)
|
1332 1318 | };
|
1333 1319 | use ::futures_util::future::TryFutureExt;
|
1334 1320 | let fut = fut.map_err(
|
1335 1321 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1336 1322 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1337 1323 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1338 1324 | e,
|
1339 1325 | )
|
1340 1326 | },
|
1341 1327 | );
|
1342 1328 | QueryParamsTargetingMapOfLengthStringOperationInputFuture {
|
1343 1329 | inner: Box::pin(fut),
|
1344 1330 | }
|
1345 1331 | }
|
1346 1332 | }
|
1347 1333 | impl
|
1348 1334 | ::aws_smithy_http_server::response::IntoResponse<
|
1349 1335 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1350 1336 | > for crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput
|
1351 1337 | {
|
1352 1338 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1353 1339 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::ser_query_params_targeting_map_of_length_string_operation_http_response(self) {
|
1354 1340 | Ok(response) => response,
|
1355 1341 | Err(e) => {
|
1356 1342 | ::tracing::error!(error = %e, "failed to serialize response");
|
1357 1343 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1358 1344 | }
|
1359 1345 | }
|
1360 1346 | }
|
1361 1347 | }
|
@@ -1401,1387 +1461,1446 @@
1401 1387 | this.inner.as_mut().poll(cx)
|
1402 1388 | }
|
1403 1389 | }
|
1404 1390 |
|
1405 1391 | impl<B>
|
1406 1392 | ::aws_smithy_http_server::request::FromRequest<
|
1407 1393 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1408 1394 | B,
|
1409 1395 | > for crate::input::QueryParamsTargetingLengthMapOperationInput
|
1410 1396 | where
|
1411 1397 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1412 1398 | B: 'static,
|
1413 1399 |
|
1414 1400 | B::Data: Send,
|
1415 1401 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1416 1402 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1417 1403 | {
|
1418 1404 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1419 1405 | type Future = QueryParamsTargetingLengthMapOperationInputFuture;
|
1420 1406 |
|
1421 1407 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1422 1408 | let fut = async move {
|
1423 1409 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1424 1410 | request.headers(),
|
1425 1411 | &CONTENT_TYPE_QUERYPARAMSTARGETINGLENGTHMAPOPERATION,
|
1426 1412 | ) {
|
1427 1413 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1428 1414 | }
|
1429 1415 | crate::protocol_serde::shape_query_params_targeting_length_map_operation::de_query_params_targeting_length_map_operation_http_request(request)
|
1430 1416 | .await
|
1431 - | .map_err(Into::into)
|
1432 1417 | };
|
1433 1418 | use ::futures_util::future::TryFutureExt;
|
1434 1419 | let fut = fut.map_err(
|
1435 1420 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1436 1421 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1437 1422 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1438 1423 | e,
|
1439 1424 | )
|
1440 1425 | },
|
1441 1426 | );
|
1442 1427 | QueryParamsTargetingLengthMapOperationInputFuture {
|
1443 1428 | inner: Box::pin(fut),
|
1444 1429 | }
|
1445 1430 | }
|
1446 1431 | }
|
1447 1432 | impl
|
1448 1433 | ::aws_smithy_http_server::response::IntoResponse<
|
1449 1434 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1450 1435 | > for crate::output::QueryParamsTargetingLengthMapOperationOutput
|
1451 1436 | {
|
1452 1437 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1453 1438 | match crate::protocol_serde::shape_query_params_targeting_length_map_operation::ser_query_params_targeting_length_map_operation_http_response(self) {
|
1454 1439 | Ok(response) => response,
|
1455 1440 | Err(e) => {
|
1456 1441 | ::tracing::error!(error = %e, "failed to serialize response");
|
1457 1442 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1458 1443 | }
|
1459 1444 | }
|
1460 1445 | }
|
1461 1446 | }
|
@@ -1501,1486 +1561,1545 @@
1501 1486 | this.inner.as_mut().poll(cx)
|
1502 1487 | }
|
1503 1488 | }
|
1504 1489 |
|
1505 1490 | impl<B>
|
1506 1491 | ::aws_smithy_http_server::request::FromRequest<
|
1507 1492 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1508 1493 | B,
|
1509 1494 | > for crate::input::ConstrainedRecursiveShapesOperationInput
|
1510 1495 | where
|
1511 1496 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1512 1497 | B: 'static,
|
1513 1498 |
|
1514 1499 | B::Data: Send,
|
1515 1500 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1516 1501 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1517 1502 | {
|
1518 1503 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1519 1504 | type Future = ConstrainedRecursiveShapesOperationInputFuture;
|
1520 1505 |
|
1521 1506 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1522 1507 | let fut = async move {
|
1523 1508 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1524 1509 | request.headers(),
|
1525 1510 | &CONTENT_TYPE_CONSTRAINEDRECURSIVESHAPESOPERATION,
|
1526 1511 | ) {
|
1527 1512 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1528 1513 | }
|
1529 1514 | crate::protocol_serde::shape_constrained_recursive_shapes_operation::de_constrained_recursive_shapes_operation_http_request(request)
|
1530 1515 | .await
|
1531 - | .map_err(Into::into)
|
1532 1516 | };
|
1533 1517 | use ::futures_util::future::TryFutureExt;
|
1534 1518 | let fut = fut.map_err(
|
1535 1519 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1536 1520 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1537 1521 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1538 1522 | e,
|
1539 1523 | )
|
1540 1524 | },
|
1541 1525 | );
|
1542 1526 | ConstrainedRecursiveShapesOperationInputFuture {
|
1543 1527 | inner: Box::pin(fut),
|
1544 1528 | }
|
1545 1529 | }
|
1546 1530 | }
|
1547 1531 | impl
|
1548 1532 | ::aws_smithy_http_server::response::IntoResponse<
|
1549 1533 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1550 1534 | > for crate::output::ConstrainedRecursiveShapesOperationOutput
|
1551 1535 | {
|
1552 1536 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1553 1537 | match crate::protocol_serde::shape_constrained_recursive_shapes_operation::ser_constrained_recursive_shapes_operation_http_response(self) {
|
1554 1538 | Ok(response) => response,
|
1555 1539 | Err(e) => {
|
1556 1540 | ::tracing::error!(error = %e, "failed to serialize response");
|
1557 1541 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1558 1542 | }
|
1559 1543 | }
|
1560 1544 | }
|
1561 1545 | }
|
@@ -1602,1586 +1662,1645 @@
1602 1586 | this.inner.as_mut().poll(cx)
|
1603 1587 | }
|
1604 1588 | }
|
1605 1589 |
|
1606 1590 | impl<B>
|
1607 1591 | ::aws_smithy_http_server::request::FromRequest<
|
1608 1592 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1609 1593 | B,
|
1610 1594 | > for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
1611 1595 | where
|
1612 1596 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1613 1597 | B: 'static,
|
1614 1598 |
|
1615 1599 | B::Data: Send,
|
1616 1600 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1617 1601 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1618 1602 | {
|
1619 1603 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1620 1604 | type Future = ConstrainedHttpPayloadBoundShapeOperationInputFuture;
|
1621 1605 |
|
1622 1606 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1623 1607 | let fut = async move {
|
1624 1608 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1625 1609 | request.headers(),
|
1626 1610 | &CONTENT_TYPE_CONSTRAINEDHTTPPAYLOADBOUNDSHAPEOPERATION,
|
1627 1611 | ) {
|
1628 1612 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1629 1613 | }
|
1630 1614 | crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::de_constrained_http_payload_bound_shape_operation_http_request(request)
|
1631 1615 | .await
|
1632 - | .map_err(Into::into)
|
1633 1616 | };
|
1634 1617 | use ::futures_util::future::TryFutureExt;
|
1635 1618 | let fut = fut.map_err(
|
1636 1619 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1637 1620 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1638 1621 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1639 1622 | e,
|
1640 1623 | )
|
1641 1624 | },
|
1642 1625 | );
|
1643 1626 | ConstrainedHttpPayloadBoundShapeOperationInputFuture {
|
1644 1627 | inner: Box::pin(fut),
|
1645 1628 | }
|
1646 1629 | }
|
1647 1630 | }
|
1648 1631 | impl
|
1649 1632 | ::aws_smithy_http_server::response::IntoResponse<
|
1650 1633 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1651 1634 | > for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
1652 1635 | {
|
1653 1636 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1654 1637 | match crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::ser_constrained_http_payload_bound_shape_operation_http_response(self) {
|
1655 1638 | Ok(response) => response,
|
1656 1639 | Err(e) => {
|
1657 1640 | ::tracing::error!(error = %e, "failed to serialize response");
|
1658 1641 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1659 1642 | }
|
1660 1643 | }
|
1661 1644 | }
|
1662 1645 | }
|
@@ -1702,1685 +1762,1744 @@
1702 1685 | this.inner.as_mut().poll(cx)
|
1703 1686 | }
|
1704 1687 | }
|
1705 1688 |
|
1706 1689 | impl<B>
|
1707 1690 | ::aws_smithy_http_server::request::FromRequest<
|
1708 1691 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1709 1692 | B,
|
1710 1693 | > for crate::input::ConstrainedHttpBoundShapesOperationInput
|
1711 1694 | where
|
1712 1695 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1713 1696 | B: 'static,
|
1714 1697 |
|
1715 1698 | B::Data: Send,
|
1716 1699 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1717 1700 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1718 1701 | {
|
1719 1702 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1720 1703 | type Future = ConstrainedHttpBoundShapesOperationInputFuture;
|
1721 1704 |
|
1722 1705 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1723 1706 | let fut = async move {
|
1724 1707 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1725 1708 | request.headers(),
|
1726 1709 | &CONTENT_TYPE_CONSTRAINEDHTTPBOUNDSHAPESOPERATION,
|
1727 1710 | ) {
|
1728 1711 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1729 1712 | }
|
1730 1713 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation::de_constrained_http_bound_shapes_operation_http_request(request)
|
1731 1714 | .await
|
1732 - | .map_err(Into::into)
|
1733 1715 | };
|
1734 1716 | use ::futures_util::future::TryFutureExt;
|
1735 1717 | let fut = fut.map_err(
|
1736 1718 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1737 1719 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1738 1720 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1739 1721 | e,
|
1740 1722 | )
|
1741 1723 | },
|
1742 1724 | );
|
1743 1725 | ConstrainedHttpBoundShapesOperationInputFuture {
|
1744 1726 | inner: Box::pin(fut),
|
1745 1727 | }
|
1746 1728 | }
|
1747 1729 | }
|
1748 1730 | impl
|
1749 1731 | ::aws_smithy_http_server::response::IntoResponse<
|
1750 1732 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1751 1733 | > for crate::output::ConstrainedHttpBoundShapesOperationOutput
|
1752 1734 | {
|
1753 1735 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1754 1736 | match crate::protocol_serde::shape_constrained_http_bound_shapes_operation::ser_constrained_http_bound_shapes_operation_http_response(self) {
|
1755 1737 | Ok(response) => response,
|
1756 1738 | Err(e) => {
|
1757 1739 | ::tracing::error!(error = %e, "failed to serialize response");
|
1758 1740 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1759 1741 | }
|
1760 1742 | }
|
1761 1743 | }
|
1762 1744 | }
|
@@ -1802,1784 +1862,1843 @@
1802 1784 | this.inner.as_mut().poll(cx)
|
1803 1785 | }
|
1804 1786 | }
|
1805 1787 |
|
1806 1788 | impl<B>
|
1807 1789 | ::aws_smithy_http_server::request::FromRequest<
|
1808 1790 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1809 1791 | B,
|
1810 1792 | > for crate::input::ConstrainedShapesOnlyInOutputOperationInput
|
1811 1793 | where
|
1812 1794 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1813 1795 | B: 'static,
|
1814 1796 |
|
1815 1797 | B::Data: Send,
|
1816 1798 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1817 1799 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1818 1800 | {
|
1819 1801 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1820 1802 | type Future = ConstrainedShapesOnlyInOutputOperationInputFuture;
|
1821 1803 |
|
1822 1804 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1823 1805 | let fut = async move {
|
1824 1806 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1825 1807 | request.headers(),
|
1826 1808 | &CONTENT_TYPE_CONSTRAINEDSHAPESONLYINOUTPUTOPERATION,
|
1827 1809 | ) {
|
1828 1810 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1829 1811 | }
|
1830 1812 | crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::de_constrained_shapes_only_in_output_operation_http_request(request)
|
1831 1813 | .await
|
1832 - | .map_err(Into::into)
|
1833 1814 | };
|
1834 1815 | use ::futures_util::future::TryFutureExt;
|
1835 1816 | let fut = fut.map_err(
|
1836 1817 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1837 1818 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1838 1819 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1839 1820 | e,
|
1840 1821 | )
|
1841 1822 | },
|
1842 1823 | );
|
1843 1824 | ConstrainedShapesOnlyInOutputOperationInputFuture {
|
1844 1825 | inner: Box::pin(fut),
|
1845 1826 | }
|
1846 1827 | }
|
1847 1828 | }
|
1848 1829 | impl
|
1849 1830 | ::aws_smithy_http_server::response::IntoResponse<
|
1850 1831 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1851 1832 | > for crate::output::ConstrainedShapesOnlyInOutputOperationOutput
|
1852 1833 | {
|
1853 1834 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1854 1835 | match crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::ser_constrained_shapes_only_in_output_operation_http_response(self) {
|
1855 1836 | Ok(response) => response,
|
1856 1837 | Err(e) => {
|
1857 1838 | ::tracing::error!(error = %e, "failed to serialize response");
|
1858 1839 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1859 1840 | }
|
1860 1841 | }
|
1861 1842 | }
|
1862 1843 | }
|
@@ -1884,1865 +1944,1924 @@
1884 1865 | this.inner.as_mut().poll(cx)
|
1885 1866 | }
|
1886 1867 | }
|
1887 1868 |
|
1888 1869 | impl<B>
|
1889 1870 | ::aws_smithy_http_server::request::FromRequest<
|
1890 1871 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1891 1872 | B,
|
1892 1873 | > for crate::input::ConstrainedShapesOperationInput
|
1893 1874 | where
|
1894 1875 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1895 1876 | B: 'static,
|
1896 1877 |
|
1897 1878 | B::Data: Send,
|
1898 1879 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1899 1880 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1900 1881 | {
|
1901 1882 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1902 1883 | type Future = ConstrainedShapesOperationInputFuture;
|
1903 1884 |
|
1904 1885 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1905 1886 | let fut = async move {
|
1906 1887 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1907 1888 | request.headers(),
|
1908 1889 | &CONTENT_TYPE_CONSTRAINEDSHAPESOPERATION,
|
1909 1890 | ) {
|
1910 1891 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1911 1892 | }
|
1912 1893 | crate::protocol_serde::shape_constrained_shapes_operation::de_constrained_shapes_operation_http_request(request)
|
1913 1894 | .await
|
1914 - | .map_err(Into::into)
|
1915 1895 | };
|
1916 1896 | use ::futures_util::future::TryFutureExt;
|
1917 1897 | let fut = fut.map_err(
|
1918 1898 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1919 1899 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1920 1900 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1921 1901 | e,
|
1922 1902 | )
|
1923 1903 | },
|
1924 1904 | );
|
1925 1905 | ConstrainedShapesOperationInputFuture {
|
1926 1906 | inner: Box::pin(fut),
|
1927 1907 | }
|
1928 1908 | }
|
1929 1909 | }
|
1930 1910 | impl
|
1931 1911 | ::aws_smithy_http_server::response::IntoResponse<
|
1932 1912 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1933 1913 | > for crate::output::ConstrainedShapesOperationOutput
|
1934 1914 | {
|
1935 1915 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1936 1916 | match crate::protocol_serde::shape_constrained_shapes_operation::ser_constrained_shapes_operation_http_response(self) {
|
1937 1917 | Ok(response) => response,
|
1938 1918 | Err(e) => {
|
1939 1919 | ::tracing::error!(error = %e, "failed to serialize response");
|
1940 1920 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1941 1921 | }
|
1942 1922 | }
|
1943 1923 | }
|
1944 1924 | }
|
@@ -758,758 +818,817 @@
758 758 | impl ConstrainedShapesOnlyInOutputOperationOutput {
|
759 759 | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
760 760 | pub fn builder() -> crate::output::constrained_shapes_only_in_output_operation_output::Builder {
|
761 761 | crate::output::constrained_shapes_only_in_output_operation_output::Builder::default()
|
762 762 | }
|
763 763 | }
|
764 764 |
|
765 765 | #[allow(missing_docs)] // documentation missing in model
|
766 766 | #[derive(::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
767 767 | pub struct ConstrainedShapesOperationOutput {
|
768 768 | #[allow(missing_docs)] // documentation missing in model
|
769 769 | pub con_a: crate::model::ConA,
|
770 770 | }
|
771 771 | impl ConstrainedShapesOperationOutput {
|
772 772 | #[allow(missing_docs)] // documentation missing in model
|
773 773 | pub fn con_a(&self) -> &crate::model::ConA {
|
774 774 | &self.con_a
|
775 775 | }
|
776 776 | }
|
777 777 | impl ConstrainedShapesOperationOutput {
|
778 778 | /// Creates a new builder-style object to manufacture [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
779 779 | pub fn builder() -> crate::output::constrained_shapes_operation_output::Builder {
|
780 780 | crate::output::constrained_shapes_operation_output::Builder::default()
|
781 781 | }
|
782 782 | }
|
783 783 | /// See [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
784 784 | pub mod event_streams_operation_output {
|
785 785 |
|
786 786 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
787 787 | /// Holds one variant for each of the ways the builder can fail.
|
788 - |
|
789 788 | #[allow(clippy::enum_variant_names)]
|
790 789 | pub enum ConstraintViolation {
|
791 790 | /// `events` was not provided but it is required when building `EventStreamsOperationOutput`.
|
792 791 | MissingEvents,
|
793 792 | }
|
794 793 | impl ::std::fmt::Display for ConstraintViolation {
|
795 794 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
796 795 | match self {
|
797 796 | ConstraintViolation::MissingEvents => write!(f, "`events` was not provided but it is required when building `EventStreamsOperationOutput`"),
|
798 797 | }
|
799 798 | }
|
800 799 | }
|
801 800 | impl ::std::error::Error for ConstraintViolation {}
|
802 801 | impl ::std::convert::TryFrom<Builder> for crate::output::EventStreamsOperationOutput {
|
803 802 | type Error = ConstraintViolation;
|
804 803 |
|
805 804 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
806 805 | builder.build()
|
807 806 | }
|
808 807 | }
|
809 808 | /// A builder for [`EventStreamsOperationOutput`](crate::output::EventStreamsOperationOutput).
|
810 809 | #[derive(::std::default::Default, ::std::fmt::Debug)]
|
811 810 | pub struct Builder {
|
812 811 | pub(crate) events: ::std::option::Option<
|
813 812 | ::aws_smithy_http::event_stream::EventStreamSender<
|
814 813 | crate::model::Event,
|
815 814 | crate::error::EventError,
|
816 815 | >,
|
817 816 | >,
|
818 817 | }
|
@@ -1439,1438 +1499,1497 @@
1439 1438 | }
|
1440 1439 | impl Builder {
|
1441 1440 | #[allow(missing_docs)] // documentation missing in model
|
1442 1441 | pub fn length_map(
|
1443 1442 | mut self,
|
1444 1443 | input: ::std::option::Option<
|
1445 1444 | ::std::collections::HashMap<::std::string::String, ::std::string::String>,
|
1446 1445 | >,
|
1447 1446 | ) -> Self {
|
1448 1447 | self.length_map = input;
|
1449 1448 | self
|
1450 1449 | }
|
1451 1450 | /// Consumes the builder and constructs a [`QueryParamsTargetingLengthMapOperationOutput`](crate::output::QueryParamsTargetingLengthMapOperationOutput).
|
1452 1451 | pub fn build(self) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
1453 1452 | self.build_enforcing_required_and_enum_traits()
|
1454 1453 | }
|
1455 1454 | fn build_enforcing_required_and_enum_traits(
|
1456 1455 | self,
|
1457 1456 | ) -> crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
1458 1457 | crate::output::QueryParamsTargetingLengthMapOperationOutput {
|
1459 1458 | length_map: self.length_map,
|
1460 1459 | }
|
1461 1460 | }
|
1462 1461 | }
|
1463 1462 | }
|
1464 1463 | /// See [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
1465 1464 | pub mod constrained_recursive_shapes_operation_output {
|
1466 1465 |
|
1467 1466 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1468 1467 | /// Holds one variant for each of the ways the builder can fail.
|
1469 - |
|
1470 1468 | #[allow(clippy::enum_variant_names)]
|
1471 1469 | pub enum ConstraintViolation {
|
1472 1470 | /// `recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`.
|
1473 1471 | MissingRecursiveList,
|
1474 1472 | }
|
1475 1473 | impl ::std::fmt::Display for ConstraintViolation {
|
1476 1474 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1477 1475 | match self {
|
1478 1476 | ConstraintViolation::MissingRecursiveList => write!(f, "`recursive_list` was not provided but it is required when building `ConstrainedRecursiveShapesOperationOutput`"),
|
1479 1477 | }
|
1480 1478 | }
|
1481 1479 | }
|
1482 1480 | impl ::std::error::Error for ConstraintViolation {}
|
1483 1481 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedRecursiveShapesOperationOutput {
|
1484 1482 | type Error = ConstraintViolation;
|
1485 1483 |
|
1486 1484 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1487 1485 | builder.build()
|
1488 1486 | }
|
1489 1487 | }
|
1490 1488 | /// A builder for [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
1491 1489 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1492 1490 | pub struct Builder {
|
1493 1491 | pub(crate) nested: ::std::option::Option<crate::model::RecursiveShapesInputOutputNested1>,
|
1494 1492 | pub(crate) recursive_list:
|
1495 1493 | ::std::option::Option<::std::vec::Vec<crate::model::RecursiveShapesInputOutputNested1>>,
|
1496 1494 | }
|
1497 1495 | impl Builder {
|
1498 1496 | #[allow(missing_docs)] // documentation missing in model
|
1499 1497 | pub fn nested(
|
@@ -1512,1510 +1572,1569 @@
1512 1510 | self
|
1513 1511 | }
|
1514 1512 | /// Consumes the builder and constructs a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput).
|
1515 1513 | ///
|
1516 1514 | /// The builder fails to construct a [`ConstrainedRecursiveShapesOperationOutput`](crate::output::ConstrainedRecursiveShapesOperationOutput) if you do not provide a value for all non-`Option`al members.
|
1517 1515 | ///
|
1518 1516 | pub fn build(
|
1519 1517 | self,
|
1520 1518 | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
1521 1519 | {
|
1522 1520 | self.build_enforcing_required_and_enum_traits()
|
1523 1521 | }
|
1524 1522 | fn build_enforcing_required_and_enum_traits(
|
1525 1523 | self,
|
1526 1524 | ) -> Result<crate::output::ConstrainedRecursiveShapesOperationOutput, ConstraintViolation>
|
1527 1525 | {
|
1528 1526 | Ok(crate::output::ConstrainedRecursiveShapesOperationOutput {
|
1529 1527 | nested: self.nested,
|
1530 1528 | recursive_list: self
|
1531 1529 | .recursive_list
|
1532 1530 | .ok_or(ConstraintViolation::MissingRecursiveList)?,
|
1533 1531 | })
|
1534 1532 | }
|
1535 1533 | }
|
1536 1534 | }
|
1537 1535 | /// See [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
1538 1536 | pub mod constrained_http_payload_bound_shape_operation_output {
|
1539 1537 |
|
1540 1538 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1541 1539 | /// Holds one variant for each of the ways the builder can fail.
|
1542 - |
|
1543 1540 | #[allow(clippy::enum_variant_names)]
|
1544 1541 | pub enum ConstraintViolation {
|
1545 1542 | /// `http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`.
|
1546 1543 | MissingHttpPayloadBoundConstrainedShape,
|
1547 1544 | }
|
1548 1545 | impl ::std::fmt::Display for ConstraintViolation {
|
1549 1546 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1550 1547 | match self {
|
1551 1548 | ConstraintViolation::MissingHttpPayloadBoundConstrainedShape => write!(f, "`http_payload_bound_constrained_shape` was not provided but it is required when building `ConstrainedHttpPayloadBoundShapeOperationOutput`"),
|
1552 1549 | }
|
1553 1550 | }
|
1554 1551 | }
|
1555 1552 | impl ::std::error::Error for ConstraintViolation {}
|
1556 1553 | impl ::std::convert::TryFrom<Builder>
|
1557 1554 | for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
1558 1555 | {
|
1559 1556 | type Error = ConstraintViolation;
|
1560 1557 |
|
1561 1558 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1562 1559 | builder.build()
|
1563 1560 | }
|
1564 1561 | }
|
1565 1562 | /// A builder for [`ConstrainedHttpPayloadBoundShapeOperationOutput`](crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput).
|
1566 1563 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1567 1564 | pub struct Builder {
|
1568 1565 | pub(crate) http_payload_bound_constrained_shape: ::std::option::Option<crate::model::ConA>,
|
1569 1566 | }
|
1570 1567 | impl Builder {
|
1571 1568 | #[allow(missing_docs)] // documentation missing in model
|
1572 1569 | pub fn http_payload_bound_constrained_shape(mut self, input: crate::model::ConA) -> Self {
|
@@ -1579,1576 +1639,1635 @@
1579 1576 | ///
|
1580 1577 | pub fn build(
|
1581 1578 | self,
|
1582 1579 | ) -> Result<
|
1583 1580 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
1584 1581 | ConstraintViolation,
|
1585 1582 | > {
|
1586 1583 | self.build_enforcing_required_and_enum_traits()
|
1587 1584 | }
|
1588 1585 | fn build_enforcing_required_and_enum_traits(
|
1589 1586 | self,
|
1590 1587 | ) -> Result<
|
1591 1588 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput,
|
1592 1589 | ConstraintViolation,
|
1593 1590 | > {
|
1594 1591 | Ok(
|
1595 1592 | crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput {
|
1596 1593 | http_payload_bound_constrained_shape: self
|
1597 1594 | .http_payload_bound_constrained_shape
|
1598 1595 | .ok_or(ConstraintViolation::MissingHttpPayloadBoundConstrainedShape)?,
|
1599 1596 | },
|
1600 1597 | )
|
1601 1598 | }
|
1602 1599 | }
|
1603 1600 | }
|
1604 1601 | /// See [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
1605 1602 | pub mod constrained_http_bound_shapes_operation_output {
|
1606 1603 |
|
1607 1604 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
1608 1605 | /// Holds one variant for each of the ways the builder can fail.
|
1609 - |
|
1610 1606 | #[allow(clippy::enum_variant_names)]
|
1611 1607 | pub enum ConstraintViolation {
|
1612 1608 | /// `length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
1613 1609 | MissingLengthStringLabel,
|
1614 1610 | /// `enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
1615 1611 | MissingEnumStringLabel,
|
1616 1612 | /// `length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`.
|
1617 1613 | MissingLengthStringHeaderMap,
|
1618 1614 | }
|
1619 1615 | impl ::std::fmt::Display for ConstraintViolation {
|
1620 1616 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
1621 1617 | match self {
|
1622 1618 | ConstraintViolation::MissingLengthStringLabel => write!(f, "`length_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
1623 1619 | ConstraintViolation::MissingEnumStringLabel => write!(f, "`enum_string_label` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
1624 1620 | ConstraintViolation::MissingLengthStringHeaderMap => write!(f, "`length_string_header_map` was not provided but it is required when building `ConstrainedHttpBoundShapesOperationOutput`"),
|
1625 1621 | }
|
1626 1622 | }
|
1627 1623 | }
|
1628 1624 | impl ::std::error::Error for ConstraintViolation {}
|
1629 1625 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedHttpBoundShapesOperationOutput {
|
1630 1626 | type Error = ConstraintViolation;
|
1631 1627 |
|
1632 1628 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
1633 1629 | builder.build()
|
1634 1630 | }
|
1635 1631 | }
|
1636 1632 | /// A builder for [`ConstrainedHttpBoundShapesOperationOutput`](crate::output::ConstrainedHttpBoundShapesOperationOutput).
|
1637 1633 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
1638 1634 | pub struct Builder {
|
1639 1635 | pub(crate) length_string_label: ::std::option::Option<::std::string::String>,
|
@@ -2095,2091 +2155,2150 @@
2095 2091 | self
|
2096 2092 | }
|
2097 2093 | #[allow(missing_docs)] // documentation missing in model
|
2098 2094 | pub fn union(
|
2099 2095 | mut self,
|
2100 2096 | input: ::std::option::Option<crate::model::ConstrainedUnionInOutput>,
|
2101 2097 | ) -> Self {
|
2102 2098 | self.union = input;
|
2103 2099 | self
|
2104 2100 | }
|
2105 2101 | /// Consumes the builder and constructs a [`ConstrainedShapesOnlyInOutputOperationOutput`](crate::output::ConstrainedShapesOnlyInOutputOperationOutput).
|
2106 2102 | pub fn build(self) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
2107 2103 | self.build_enforcing_required_and_enum_traits()
|
2108 2104 | }
|
2109 2105 | fn build_enforcing_required_and_enum_traits(
|
2110 2106 | self,
|
2111 2107 | ) -> crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
2112 2108 | crate::output::ConstrainedShapesOnlyInOutputOperationOutput {
|
2113 2109 | list: self.list,
|
2114 2110 | map: self.map,
|
2115 2111 | union: self.union,
|
2116 2112 | }
|
2117 2113 | }
|
2118 2114 | }
|
2119 2115 | }
|
2120 2116 | /// See [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
2121 2117 | pub mod constrained_shapes_operation_output {
|
2122 2118 |
|
2123 2119 | #[derive(::std::cmp::PartialEq, ::std::fmt::Debug)]
|
2124 2120 | /// Holds one variant for each of the ways the builder can fail.
|
2125 - |
|
2126 2121 | #[allow(clippy::enum_variant_names)]
|
2127 2122 | pub enum ConstraintViolation {
|
2128 2123 | /// `con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`.
|
2129 2124 | MissingConA,
|
2130 2125 | }
|
2131 2126 | impl ::std::fmt::Display for ConstraintViolation {
|
2132 2127 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
2133 2128 | match self {
|
2134 2129 | ConstraintViolation::MissingConA => write!(f, "`con_a` was not provided but it is required when building `ConstrainedShapesOperationOutput`"),
|
2135 2130 | }
|
2136 2131 | }
|
2137 2132 | }
|
2138 2133 | impl ::std::error::Error for ConstraintViolation {}
|
2139 2134 | impl ::std::convert::TryFrom<Builder> for crate::output::ConstrainedShapesOperationOutput {
|
2140 2135 | type Error = ConstraintViolation;
|
2141 2136 |
|
2142 2137 | fn try_from(builder: Builder) -> ::std::result::Result<Self, Self::Error> {
|
2143 2138 | builder.build()
|
2144 2139 | }
|
2145 2140 | }
|
2146 2141 | /// A builder for [`ConstrainedShapesOperationOutput`](crate::output::ConstrainedShapesOperationOutput).
|
2147 2142 | #[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
|
2148 2143 | pub struct Builder {
|
2149 2144 | pub(crate) con_a: ::std::option::Option<crate::model::ConA>,
|
2150 2145 | }
|
2151 2146 | impl Builder {
|
2152 2147 | #[allow(missing_docs)] // documentation missing in model
|
2153 2148 | pub fn con_a(mut self, input: crate::model::ConA) -> Self {
|
2154 2149 | self.con_a = Some(input);
|
2155 2150 | self
|
@@ -102,102 +178,178 @@
102 102 | ::nom::bytes::complete::tag("/"),
|
103 103 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
104 104 | ::nom::bytes::complete::take_until("/"),
|
105 105 | ::nom::combinator::rest,
|
106 106 | )),
|
107 107 | ),
|
108 108 | ::nom::sequence::preceded(
|
109 109 | ::nom::bytes::complete::tag("/"),
|
110 110 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
111 111 | ::nom::bytes::complete::take_until("/"),
|
112 112 | ::nom::combinator::rest,
|
113 113 | )),
|
114 114 | ),
|
115 115 | ::nom::sequence::preceded(
|
116 116 | ::nom::bytes::complete::tag("/"),
|
117 117 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
118 118 | ::nom::bytes::complete::take_until("/"),
|
119 119 | ::nom::combinator::rest,
|
120 120 | )),
|
121 121 | ),
|
122 122 | ::nom::sequence::preceded(
|
123 123 | ::nom::bytes::complete::tag("/"),
|
124 124 | ::nom::branch::alt::<_, _, ::nom::error::Error<&str>, _>((
|
125 125 | ::nom::bytes::complete::take_until("/"),
|
126 126 | ::nom::combinator::rest,
|
127 127 | )),
|
128 128 | ),
|
129 129 | ))(input_string)?;
|
130 130 | debug_assert_eq!("", input_string);
|
131 131 | input = input.set_range_integer_label(
|
132 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
133 - | );
|
132 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_integer_label(m1)?
|
133 + | );
|
134 134 | input = input.set_range_short_label(
|
135 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
136 - | );
|
135 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_short_label(m2)?
|
136 + | );
|
137 137 | input = input.set_range_long_label(
|
138 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
139 - | );
|
138 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_long_label(m3)?
|
139 + | );
|
140 140 | input = input.set_range_byte_label(
|
141 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
142 - | );
|
141 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_range_byte_label(m4)?
|
142 + | );
|
143 143 | input = input.set_length_string_label(
|
144 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
145 - | );
|
144 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_label(m5)?
|
145 + | );
|
146 146 | input = input.set_enum_string_label(
|
147 - | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
148 - | );
|
147 + | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_label(m6)?
|
148 + | );
|
149 149 | let query_string = uri.query().unwrap_or("");
|
150 150 | let pairs = ::form_urlencoded::parse(query_string.as_bytes());
|
151 151 | let mut enum_string_query_seen = false;
|
152 152 | let mut length_string_query_seen = false;
|
153 153 | let mut range_byte_query_seen = false;
|
154 154 | let mut range_integer_query_seen = false;
|
155 155 | let mut range_long_query_seen = false;
|
156 156 | let mut range_short_query_seen = false;
|
157 157 | let mut enum_string_list_query = Vec::new();
|
158 158 | let mut length_list_pattern_string_query = Vec::new();
|
159 159 | let mut length_string_list_query = Vec::new();
|
160 160 | let mut length_string_set_query = Vec::new();
|
161 161 | let mut range_byte_list_query = Vec::new();
|
162 162 | let mut range_byte_set_query = Vec::new();
|
163 163 | let mut range_integer_list_query = Vec::new();
|
164 164 | let mut range_integer_set_query = Vec::new();
|
165 165 | let mut range_long_list_query = Vec::new();
|
166 166 | let mut range_long_set_query = Vec::new();
|
167 167 | let mut range_short_list_query = Vec::new();
|
168 168 | let mut range_short_set_query = Vec::new();
|
169 169 | for (k, v) in pairs {
|
170 170 | if !enum_string_query_seen && k == "enumString" {
|
171 171 | input = input.set_enum_string_query(
|
172 172 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_enum_string_query(&v)?
|
173 173 | );
|
174 174 | enum_string_query_seen = true;
|
175 175 | }
|
176 176 | if !length_string_query_seen && k == "lengthString" {
|
177 177 | input = input.set_length_string_query(
|
178 178 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation_input::de_length_string_query(&v)?
|
@@ -22,22 +82,81 @@
22 22 | this.inner.as_mut().poll(cx)
|
23 23 | }
|
24 24 | }
|
25 25 |
|
26 26 | impl<B>
|
27 27 | ::aws_smithy_http_server::request::FromRequest<
|
28 28 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
29 29 | B,
|
30 30 | > for crate::input::StartSnapshotInput
|
31 31 | where
|
32 32 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
33 33 | B: 'static,
|
34 34 |
|
35 35 | B::Data: Send,
|
36 36 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37 37 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38 38 | {
|
39 39 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
40 40 | type Future = StartSnapshotInputFuture;
|
41 41 |
|
42 42 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
43 43 | let fut = async move {
|
44 44 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45 45 | request.headers(),
|
46 46 | &CONTENT_TYPE_STARTSNAPSHOT,
|
47 47 | ) {
|
48 48 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
49 49 | }
|
50 50 | crate::protocol_serde::shape_start_snapshot::de_start_snapshot_http_request(request)
|
51 51 | .await
|
52 - | .map_err(Into::into)
|
53 52 | };
|
54 53 | use ::futures_util::future::TryFutureExt;
|
55 54 | let fut = fut.map_err(
|
56 55 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
57 56 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
58 57 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
59 58 | e,
|
60 59 | )
|
61 60 | },
|
62 61 | );
|
63 62 | StartSnapshotInputFuture {
|
64 63 | inner: Box::pin(fut),
|
65 64 | }
|
66 65 | }
|
67 66 | }
|
68 67 | impl
|
69 68 | ::aws_smithy_http_server::response::IntoResponse<
|
70 69 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
71 70 | > for crate::output::StartSnapshotOutput
|
72 71 | {
|
73 72 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
74 73 | match crate::protocol_serde::shape_start_snapshot::ser_start_snapshot_http_response(self) {
|
75 74 | Ok(response) => response,
|
76 75 | Err(e) => {
|
77 76 | ::tracing::error!(error = %e, "failed to serialize response");
|
78 77 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
79 78 | }
|
80 79 | }
|
81 80 | }
|
82 81 | }
|
@@ -127,126 +187,185 @@
127 126 |
|
128 127 | impl<B>
|
129 128 | ::aws_smithy_http_server::request::FromRequest<
|
130 129 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
131 130 | B,
|
132 131 | > for crate::input::PutSnapshotBlockInput
|
133 132 | where
|
134 133 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
135 134 | B: 'static,
|
136 135 |
|
137 136 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
138 137 | B::Data: Send,
|
139 138 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
140 139 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
141 140 | {
|
142 141 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
143 142 | type Future = PutSnapshotBlockInputFuture;
|
144 143 |
|
145 144 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
146 145 | let fut = async move {
|
147 146 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
148 147 | request.headers(),
|
149 148 | &CONTENT_TYPE_PUTSNAPSHOTBLOCK,
|
150 149 | ) {
|
151 150 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
152 151 | }
|
153 152 | crate::protocol_serde::shape_put_snapshot_block::de_put_snapshot_block_http_request(
|
154 153 | request,
|
155 154 | )
|
156 155 | .await
|
157 - | .map_err(Into::into)
|
158 156 | };
|
159 157 | use ::futures_util::future::TryFutureExt;
|
160 158 | let fut = fut.map_err(
|
161 159 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
162 160 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
163 161 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
164 162 | e,
|
165 163 | )
|
166 164 | },
|
167 165 | );
|
168 166 | PutSnapshotBlockInputFuture {
|
169 167 | inner: Box::pin(fut),
|
170 168 | }
|
171 169 | }
|
172 170 | }
|
173 171 | impl
|
174 172 | ::aws_smithy_http_server::response::IntoResponse<
|
175 173 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
176 174 | > for crate::output::PutSnapshotBlockOutput
|
177 175 | {
|
178 176 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
179 177 | match crate::protocol_serde::shape_put_snapshot_block::ser_put_snapshot_block_http_response(
|
180 178 | self,
|
181 179 | ) {
|
182 180 | Ok(response) => response,
|
183 181 | Err(e) => {
|
184 182 | ::tracing::error!(error = %e, "failed to serialize response");
|
185 183 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
186 184 | }
|
187 185 | }
|
@@ -235,233 +295,292 @@
235 233 | }
|
236 234 |
|
237 235 | impl<B>
|
238 236 | ::aws_smithy_http_server::request::FromRequest<
|
239 237 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
240 238 | B,
|
241 239 | > for crate::input::ListSnapshotBlocksInput
|
242 240 | where
|
243 241 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
244 242 | B: 'static,
|
245 243 |
|
246 244 | B::Data: Send,
|
247 245 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
248 246 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
249 247 | {
|
250 248 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
251 249 | type Future = ListSnapshotBlocksInputFuture;
|
252 250 |
|
253 251 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
254 252 | let fut = async move {
|
255 253 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
256 254 | request.headers(),
|
257 255 | &CONTENT_TYPE_LISTSNAPSHOTBLOCKS,
|
258 256 | ) {
|
259 257 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
260 258 | }
|
261 259 | crate::protocol_serde::shape_list_snapshot_blocks::de_list_snapshot_blocks_http_request(
|
262 260 | request,
|
263 261 | )
|
264 262 | .await
|
265 - | .map_err(Into::into)
|
266 263 | };
|
267 264 | use ::futures_util::future::TryFutureExt;
|
268 265 | let fut = fut.map_err(
|
269 266 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
270 267 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
271 268 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
272 269 | e,
|
273 270 | )
|
274 271 | },
|
275 272 | );
|
276 273 | ListSnapshotBlocksInputFuture {
|
277 274 | inner: Box::pin(fut),
|
278 275 | }
|
279 276 | }
|
280 277 | }
|
281 278 | impl
|
282 279 | ::aws_smithy_http_server::response::IntoResponse<
|
283 280 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
284 281 | > for crate::output::ListSnapshotBlocksOutput
|
285 282 | {
|
286 283 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
287 284 | match crate::protocol_serde::shape_list_snapshot_blocks::ser_list_snapshot_blocks_http_response(self) {
|
288 285 | Ok(response) => response,
|
289 286 | Err(e) => {
|
290 287 | ::tracing::error!(error = %e, "failed to serialize response");
|
291 288 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
292 289 | }
|
293 290 | }
|
294 291 | }
|
295 292 | }
|
@@ -341,338 +401,397 @@
341 338 | }
|
342 339 |
|
343 340 | impl<B>
|
344 341 | ::aws_smithy_http_server::request::FromRequest<
|
345 342 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
346 343 | B,
|
347 344 | > for crate::input::ListChangedBlocksInput
|
348 345 | where
|
349 346 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
350 347 | B: 'static,
|
351 348 |
|
352 349 | B::Data: Send,
|
353 350 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
354 351 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
355 352 | {
|
356 353 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
357 354 | type Future = ListChangedBlocksInputFuture;
|
358 355 |
|
359 356 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
360 357 | let fut = async move {
|
361 358 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
362 359 | request.headers(),
|
363 360 | &CONTENT_TYPE_LISTCHANGEDBLOCKS,
|
364 361 | ) {
|
365 362 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
366 363 | }
|
367 364 | crate::protocol_serde::shape_list_changed_blocks::de_list_changed_blocks_http_request(
|
368 365 | request,
|
369 366 | )
|
370 367 | .await
|
371 - | .map_err(Into::into)
|
372 368 | };
|
373 369 | use ::futures_util::future::TryFutureExt;
|
374 370 | let fut = fut.map_err(
|
375 371 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
376 372 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
377 373 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
378 374 | e,
|
379 375 | )
|
380 376 | },
|
381 377 | );
|
382 378 | ListChangedBlocksInputFuture {
|
383 379 | inner: Box::pin(fut),
|
384 380 | }
|
385 381 | }
|
386 382 | }
|
387 383 | impl
|
388 384 | ::aws_smithy_http_server::response::IntoResponse<
|
389 385 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
390 386 | > for crate::output::ListChangedBlocksOutput
|
391 387 | {
|
392 388 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
393 389 | match crate::protocol_serde::shape_list_changed_blocks::ser_list_changed_blocks_http_response(self) {
|
394 390 | Ok(response) => response,
|
395 391 | Err(e) => {
|
396 392 | ::tracing::error!(error = %e, "failed to serialize response");
|
397 393 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
398 394 | }
|
399 395 | }
|
400 396 | }
|
401 397 | }
|
@@ -447,443 +507,502 @@
447 443 | }
|
448 444 |
|
449 445 | impl<B>
|
450 446 | ::aws_smithy_http_server::request::FromRequest<
|
451 447 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
452 448 | B,
|
453 449 | > for crate::input::GetSnapshotBlockInput
|
454 450 | where
|
455 451 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
456 452 | B: 'static,
|
457 453 |
|
458 454 | B::Data: Send,
|
459 455 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
460 456 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
461 457 | {
|
462 458 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
463 459 | type Future = GetSnapshotBlockInputFuture;
|
464 460 |
|
465 461 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
466 462 | let fut = async move {
|
467 463 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
468 464 | request.headers(),
|
469 465 | &CONTENT_TYPE_GETSNAPSHOTBLOCK,
|
470 466 | ) {
|
471 467 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
472 468 | }
|
473 469 | crate::protocol_serde::shape_get_snapshot_block::de_get_snapshot_block_http_request(
|
474 470 | request,
|
475 471 | )
|
476 472 | .await
|
477 - | .map_err(Into::into)
|
478 473 | };
|
479 474 | use ::futures_util::future::TryFutureExt;
|
480 475 | let fut = fut.map_err(
|
481 476 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
482 477 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
483 478 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
484 479 | e,
|
485 480 | )
|
486 481 | },
|
487 482 | );
|
488 483 | GetSnapshotBlockInputFuture {
|
489 484 | inner: Box::pin(fut),
|
490 485 | }
|
491 486 | }
|
492 487 | }
|
493 488 | impl
|
494 489 | ::aws_smithy_http_server::response::IntoResponse<
|
495 490 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
496 491 | > for crate::output::GetSnapshotBlockOutput
|
497 492 | {
|
498 493 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
499 494 | match crate::protocol_serde::shape_get_snapshot_block::ser_get_snapshot_block_http_response(
|
500 495 | self,
|
501 496 | ) {
|
502 497 | Ok(response) => response,
|
503 498 | Err(e) => {
|
504 499 | ::tracing::error!(error = %e, "failed to serialize response");
|
505 500 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
506 501 | }
|
507 502 | }
|
@@ -555,550 +615,609 @@
555 550 | }
|
556 551 |
|
557 552 | impl<B>
|
558 553 | ::aws_smithy_http_server::request::FromRequest<
|
559 554 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
560 555 | B,
|
561 556 | > for crate::input::CompleteSnapshotInput
|
562 557 | where
|
563 558 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
564 559 | B: 'static,
|
565 560 |
|
566 561 | B::Data: Send,
|
567 562 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
568 563 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
569 564 | {
|
570 565 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
571 566 | type Future = CompleteSnapshotInputFuture;
|
572 567 |
|
573 568 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
574 569 | let fut = async move {
|
575 570 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
576 571 | request.headers(),
|
577 572 | &CONTENT_TYPE_COMPLETESNAPSHOT,
|
578 573 | ) {
|
579 574 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
580 575 | }
|
581 576 | crate::protocol_serde::shape_complete_snapshot::de_complete_snapshot_http_request(
|
582 577 | request,
|
583 578 | )
|
584 579 | .await
|
585 - | .map_err(Into::into)
|
586 580 | };
|
587 581 | use ::futures_util::future::TryFutureExt;
|
588 582 | let fut = fut.map_err(
|
589 583 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
590 584 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
591 585 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
592 586 | e,
|
593 587 | )
|
594 588 | },
|
595 589 | );
|
596 590 | CompleteSnapshotInputFuture {
|
597 591 | inner: Box::pin(fut),
|
598 592 | }
|
599 593 | }
|
600 594 | }
|
601 595 | impl
|
602 596 | ::aws_smithy_http_server::response::IntoResponse<
|
603 597 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
604 598 | > for crate::output::CompleteSnapshotOutput
|
605 599 | {
|
606 600 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
607 601 | match crate::protocol_serde::shape_complete_snapshot::ser_complete_snapshot_http_response(
|
608 602 | self,
|
609 603 | ) {
|
610 604 | Ok(response) => response,
|
611 605 | Err(e) => {
|
612 606 | ::tracing::error!(error = %e, "failed to serialize response");
|
613 607 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
614 608 | }
|
615 609 | }
|
@@ -27,27 +87,86 @@
27 27 | this.inner.as_mut().poll(cx)
|
28 28 | }
|
29 29 | }
|
30 30 |
|
31 31 | impl<B>
|
32 32 | ::aws_smithy_http_server::request::FromRequest<
|
33 33 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
34 34 | B,
|
35 35 | > for crate::input::OperationWithNestedStructureInput
|
36 36 | where
|
37 37 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38 38 | B: 'static,
|
39 39 |
|
40 40 | B::Data: Send,
|
41 41 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
42 42 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
43 43 | {
|
44 44 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
45 45 | type Future = OperationWithNestedStructureInputFuture;
|
46 46 |
|
47 47 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
48 48 | let fut = async move {
|
49 49 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
50 50 | request.headers(),
|
51 51 | &CONTENT_TYPE_OPERATIONWITHNESTEDSTRUCTURE,
|
52 52 | ) {
|
53 53 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
54 54 | }
|
55 55 | crate::protocol_serde::shape_operation_with_nested_structure::de_operation_with_nested_structure_http_request(request)
|
56 56 | .await
|
57 - | .map_err(Into::into)
|
58 57 | };
|
59 58 | use ::futures_util::future::TryFutureExt;
|
60 59 | let fut = fut.map_err(
|
61 60 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
62 61 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
63 62 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
64 63 | },
|
65 64 | );
|
66 65 | OperationWithNestedStructureInputFuture {
|
67 66 | inner: Box::pin(fut),
|
68 67 | }
|
69 68 | }
|
70 69 | }
|
71 70 | impl
|
72 71 | ::aws_smithy_http_server::response::IntoResponse<
|
73 72 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
74 73 | > for crate::output::OperationWithNestedStructureOutput
|
75 74 | {
|
76 75 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
77 76 | match crate::protocol_serde::shape_operation_with_nested_structure::ser_operation_with_nested_structure_http_response(self) {
|
78 77 | Ok(response) => response,
|
79 78 | Err(e) => {
|
80 79 | ::tracing::error!(error = %e, "failed to serialize response");
|
81 80 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
82 81 | }
|
83 82 | }
|
84 83 | }
|
85 84 | }
|
86 85 | impl
|
87 86 | ::aws_smithy_http_server::response::IntoResponse<
|
@@ -345,344 +405,403 @@
345 344 | this.inner.as_mut().poll(cx)
|
346 345 | }
|
347 346 | }
|
348 347 |
|
349 348 | impl<B>
|
350 349 | ::aws_smithy_http_server::request::FromRequest<
|
351 350 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
352 351 | B,
|
353 352 | > for crate::input::OperationWithRequiredMembersInput
|
354 353 | where
|
355 354 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
356 355 | B: 'static,
|
357 356 |
|
358 357 | B::Data: Send,
|
359 358 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
360 359 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
361 360 | {
|
362 361 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
363 362 | type Future = OperationWithRequiredMembersInputFuture;
|
364 363 |
|
365 364 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
366 365 | let fut = async move {
|
367 366 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
368 367 | request.headers(),
|
369 368 | &CONTENT_TYPE_OPERATIONWITHREQUIREDMEMBERS,
|
370 369 | ) {
|
371 370 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
372 371 | }
|
373 372 | crate::protocol_serde::shape_operation_with_required_members::de_operation_with_required_members_http_request(request)
|
374 373 | .await
|
375 - | .map_err(Into::into)
|
376 374 | };
|
377 375 | use ::futures_util::future::TryFutureExt;
|
378 376 | let fut = fut.map_err(
|
379 377 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
380 378 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
381 379 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
382 380 | },
|
383 381 | );
|
384 382 | OperationWithRequiredMembersInputFuture {
|
385 383 | inner: Box::pin(fut),
|
386 384 | }
|
387 385 | }
|
388 386 | }
|
389 387 | impl
|
390 388 | ::aws_smithy_http_server::response::IntoResponse<
|
391 389 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
392 390 | > for crate::output::OperationWithRequiredMembersOutput
|
393 391 | {
|
394 392 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
395 393 | match crate::protocol_serde::shape_operation_with_required_members::ser_operation_with_required_members_http_response(self) {
|
396 394 | Ok(response) => response,
|
397 395 | Err(e) => {
|
398 396 | ::tracing::error!(error = %e, "failed to serialize response");
|
399 397 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
400 398 | }
|
401 399 | }
|
402 400 | }
|
403 401 | }
|
404 402 |
|
405 403 | static CONTENT_TYPE_OPERATIONWITHDEFAULTS: std::sync::LazyLock<::mime::Mime> =
|
@@ -430,428 +490,487 @@
430 428 | this.inner.as_mut().poll(cx)
|
431 429 | }
|
432 430 | }
|
433 431 |
|
434 432 | impl<B>
|
435 433 | ::aws_smithy_http_server::request::FromRequest<
|
436 434 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
437 435 | B,
|
438 436 | > for crate::input::OperationWithDefaultsInput
|
439 437 | where
|
440 438 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
441 439 | B: 'static,
|
442 440 |
|
443 441 | B::Data: Send,
|
444 442 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
445 443 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
446 444 | {
|
447 445 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
448 446 | type Future = OperationWithDefaultsInputFuture;
|
449 447 |
|
450 448 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
451 449 | let fut = async move {
|
452 450 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
453 451 | request.headers(),
|
454 452 | &CONTENT_TYPE_OPERATIONWITHDEFAULTS,
|
455 453 | ) {
|
456 454 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
457 455 | }
|
458 456 | crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_request(request)
|
459 457 | .await
|
460 - | .map_err(Into::into)
|
461 458 | };
|
462 459 | use ::futures_util::future::TryFutureExt;
|
463 460 | let fut = fut.map_err(
|
464 461 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
465 462 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
466 463 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
467 464 | },
|
468 465 | );
|
469 466 | OperationWithDefaultsInputFuture {
|
470 467 | inner: Box::pin(fut),
|
471 468 | }
|
472 469 | }
|
473 470 | }
|
474 471 | impl
|
475 472 | ::aws_smithy_http_server::response::IntoResponse<
|
476 473 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
477 474 | > for crate::output::OperationWithDefaultsOutput
|
478 475 | {
|
479 476 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
480 477 | match crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_http_response(self) {
|
481 478 | Ok(response) => response,
|
482 479 | Err(e) => {
|
483 480 | ::tracing::error!(error = %e, "failed to serialize response");
|
484 481 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
485 482 | }
|
486 483 | }
|
487 484 | }
|
488 485 | }
|
489 486 | impl
|
490 487 | ::aws_smithy_http_server::response::IntoResponse<
|
@@ -820,817 +880,876 @@
820 817 | this.inner.as_mut().poll(cx)
|
821 818 | }
|
822 819 | }
|
823 820 |
|
824 821 | impl<B>
|
825 822 | ::aws_smithy_http_server::request::FromRequest<
|
826 823 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
827 824 | B,
|
828 825 | > for crate::input::ContentTypeParametersInput
|
829 826 | where
|
830 827 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
831 828 | B: 'static,
|
832 829 |
|
833 830 | B::Data: Send,
|
834 831 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
835 832 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
836 833 | {
|
837 834 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
838 835 | type Future = ContentTypeParametersInputFuture;
|
839 836 |
|
840 837 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
841 838 | let fut = async move {
|
842 839 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
843 840 | request.headers(),
|
844 841 | &CONTENT_TYPE_CONTENTTYPEPARAMETERS,
|
845 842 | ) {
|
846 843 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
847 844 | }
|
848 845 | crate::protocol_serde::shape_content_type_parameters::de_content_type_parameters_http_request(request)
|
849 846 | .await
|
850 - | .map_err(Into::into)
|
851 847 | };
|
852 848 | use ::futures_util::future::TryFutureExt;
|
853 849 | let fut = fut.map_err(
|
854 850 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
855 851 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
856 852 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
857 853 | },
|
858 854 | );
|
859 855 | ContentTypeParametersInputFuture {
|
860 856 | inner: Box::pin(fut),
|
861 857 | }
|
862 858 | }
|
863 859 | }
|
864 860 | impl
|
865 861 | ::aws_smithy_http_server::response::IntoResponse<
|
866 862 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
867 863 | > for crate::output::ContentTypeParametersOutput
|
868 864 | {
|
869 865 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
870 866 | match crate::protocol_serde::shape_content_type_parameters::ser_content_type_parameters_http_response(self) {
|
871 867 | Ok(response) => response,
|
872 868 | Err(e) => {
|
873 869 | ::tracing::error!(error = %e, "failed to serialize response");
|
874 870 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
875 871 | }
|
876 872 | }
|
877 873 | }
|
878 874 | }
|
879 875 |
|
880 876 | #[allow(unreachable_code, unused_variables)]
|
@@ -957,953 +1017,1012 @@
957 953 | this.inner.as_mut().poll(cx)
|
958 954 | }
|
959 955 | }
|
960 956 |
|
961 957 | impl<B>
|
962 958 | ::aws_smithy_http_server::request::FromRequest<
|
963 959 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
964 960 | B,
|
965 961 | > for crate::input::PutWithContentEncodingInput
|
966 962 | where
|
967 963 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
968 964 | B: 'static,
|
969 965 |
|
970 966 | B::Data: Send,
|
971 967 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
972 968 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
973 969 | {
|
974 970 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
975 971 | type Future = PutWithContentEncodingInputFuture;
|
976 972 |
|
977 973 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
978 974 | let fut = async move {
|
979 975 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
980 976 | request.headers(),
|
981 977 | &CONTENT_TYPE_PUTWITHCONTENTENCODING,
|
982 978 | ) {
|
983 979 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
984 980 | }
|
985 981 | crate::protocol_serde::shape_put_with_content_encoding::de_put_with_content_encoding_http_request(request)
|
986 982 | .await
|
987 - | .map_err(Into::into)
|
988 983 | };
|
989 984 | use ::futures_util::future::TryFutureExt;
|
990 985 | let fut = fut.map_err(
|
991 986 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
992 987 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
993 988 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
994 989 | },
|
995 990 | );
|
996 991 | PutWithContentEncodingInputFuture {
|
997 992 | inner: Box::pin(fut),
|
998 993 | }
|
999 994 | }
|
1000 995 | }
|
1001 996 | impl
|
1002 997 | ::aws_smithy_http_server::response::IntoResponse<
|
1003 998 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1004 999 | > for crate::output::PutWithContentEncodingOutput
|
1005 1000 | {
|
1006 1001 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1007 1002 | match crate::protocol_serde::shape_put_with_content_encoding::ser_put_with_content_encoding_http_response(self) {
|
1008 1003 | Ok(response) => response,
|
1009 1004 | Err(e) => {
|
1010 1005 | ::tracing::error!(error = %e, "failed to serialize response");
|
1011 1006 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
1012 1007 | }
|
1013 1008 | }
|
1014 1009 | }
|
1015 1010 | }
|
1016 1011 |
|
1017 1012 | static CONTENT_TYPE_HOSTWITHPATHOPERATION: std::sync::LazyLock<::mime::Mime> =
|
@@ -1042,1037 +1102,1096 @@
1042 1037 | this.inner.as_mut().poll(cx)
|
1043 1038 | }
|
1044 1039 | }
|
1045 1040 |
|
1046 1041 | impl<B>
|
1047 1042 | ::aws_smithy_http_server::request::FromRequest<
|
1048 1043 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1049 1044 | B,
|
1050 1045 | > for crate::input::HostWithPathOperationInput
|
1051 1046 | where
|
1052 1047 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1053 1048 | B: 'static,
|
1054 1049 |
|
1055 1050 | B::Data: Send,
|
1056 1051 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
1057 1052 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1058 1053 | {
|
1059 1054 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
1060 1055 | type Future = HostWithPathOperationInputFuture;
|
1061 1056 |
|
1062 1057 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1063 1058 | let fut = async move {
|
1064 1059 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1065 1060 | request.headers(),
|
1066 1061 | &CONTENT_TYPE_HOSTWITHPATHOPERATION,
|
1067 1062 | ) {
|
1068 1063 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
1069 1064 | }
|
1070 1065 | crate::protocol_serde::shape_host_with_path_operation::de_host_with_path_operation_http_request(request)
|
1071 1066 | .await
|
1072 - | .map_err(Into::into)
|
1073 1067 | };
|
1074 1068 | use ::futures_util::future::TryFutureExt;
|
1075 1069 | let fut = fut.map_err(
|
1076 1070 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
1077 1071 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1078 1072 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
1079 1073 | },
|
1080 1074 | );
|
1081 1075 | HostWithPathOperationInputFuture {
|
1082 1076 | inner: Box::pin(fut),
|
1083 1077 | }
|
1084 1078 | }
|
1085 1079 | }
|
1086 1080 | impl
|
1087 1081 | ::aws_smithy_http_server::response::IntoResponse<
|
1088 1082 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1089 1083 | > for crate::output::HostWithPathOperationOutput
|
1090 1084 | {
|
1091 1085 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1092 1086 | match crate::protocol_serde::shape_host_with_path_operation::ser_host_with_path_operation_http_response(self) {
|
1093 1087 | Ok(response) => response,
|
1094 1088 | Err(e) => {
|
1095 1089 | ::tracing::error!(error = %e, "failed to serialize response");
|
1096 1090 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
1097 1091 | }
|
1098 1092 | }
|
1099 1093 | }
|
1100 1094 | }
|
1101 1095 |
|
1102 1096 | static CONTENT_TYPE_ENDPOINTWITHHOSTLABELOPERATION: std::sync::LazyLock<::mime::Mime> =
|
@@ -1127,1121 +1187,1180 @@
1127 1121 | this.inner.as_mut().poll(cx)
|
1128 1122 | }
|
1129 1123 | }
|
1130 1124 |
|
1131 1125 | impl<B>
|
1132 1126 | ::aws_smithy_http_server::request::FromRequest<
|
1133 1127 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1134 1128 | B,
|
1135 1129 | > for crate::input::EndpointWithHostLabelOperationInput
|
1136 1130 | where
|
1137 1131 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1138 1132 | B: 'static,
|
1139 1133 |
|
1140 1134 | B::Data: Send,
|
1141 1135 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
1142 1136 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1143 1137 | {
|
1144 1138 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
1145 1139 | type Future = EndpointWithHostLabelOperationInputFuture;
|
1146 1140 |
|
1147 1141 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1148 1142 | let fut = async move {
|
1149 1143 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1150 1144 | request.headers(),
|
1151 1145 | &CONTENT_TYPE_ENDPOINTWITHHOSTLABELOPERATION,
|
1152 1146 | ) {
|
1153 1147 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
1154 1148 | }
|
1155 1149 | crate::protocol_serde::shape_endpoint_with_host_label_operation::de_endpoint_with_host_label_operation_http_request(request)
|
1156 1150 | .await
|
1157 - | .map_err(Into::into)
|
1158 1151 | };
|
1159 1152 | use ::futures_util::future::TryFutureExt;
|
1160 1153 | let fut = fut.map_err(
|
1161 1154 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
1162 1155 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1163 1156 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
1164 1157 | },
|
1165 1158 | );
|
1166 1159 | EndpointWithHostLabelOperationInputFuture {
|
1167 1160 | inner: Box::pin(fut),
|
1168 1161 | }
|
1169 1162 | }
|
1170 1163 | }
|
1171 1164 | impl
|
1172 1165 | ::aws_smithy_http_server::response::IntoResponse<
|
1173 1166 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1174 1167 | > for crate::output::EndpointWithHostLabelOperationOutput
|
1175 1168 | {
|
1176 1169 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1177 1170 | match crate::protocol_serde::shape_endpoint_with_host_label_operation::ser_endpoint_with_host_label_operation_http_response(self) {
|
1178 1171 | Ok(response) => response,
|
1179 1172 | Err(e) => {
|
1180 1173 | ::tracing::error!(error = %e, "failed to serialize response");
|
1181 1174 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
1182 1175 | }
|
1183 1176 | }
|
1184 1177 | }
|
1185 1178 | }
|
1186 1179 | impl
|
1187 1180 | ::aws_smithy_http_server::response::IntoResponse<
|
@@ -1288,1281 +1348,1340 @@
1288 1281 | }
|
1289 1282 |
|
1290 1283 | impl<B>
|
1291 1284 | ::aws_smithy_http_server::request::FromRequest<
|
1292 1285 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1293 1286 | B,
|
1294 1287 | > for crate::input::EndpointOperationInput
|
1295 1288 | where
|
1296 1289 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1297 1290 | B: 'static,
|
1298 1291 |
|
1299 1292 | B::Data: Send,
|
1300 1293 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
1301 1294 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1302 1295 | {
|
1303 1296 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
1304 1297 | type Future = EndpointOperationInputFuture;
|
1305 1298 |
|
1306 1299 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1307 1300 | let fut = async move {
|
1308 1301 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1309 1302 | request.headers(),
|
1310 1303 | &CONTENT_TYPE_ENDPOINTOPERATION,
|
1311 1304 | ) {
|
1312 1305 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
1313 1306 | }
|
1314 1307 | crate::protocol_serde::shape_endpoint_operation::de_endpoint_operation_http_request(
|
1315 1308 | request,
|
1316 1309 | )
|
1317 1310 | .await
|
1318 - | .map_err(Into::into)
|
1319 1311 | };
|
1320 1312 | use ::futures_util::future::TryFutureExt;
|
1321 1313 | let fut = fut.map_err(
|
1322 1314 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
1323 1315 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1324 1316 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
1325 1317 | },
|
1326 1318 | );
|
1327 1319 | EndpointOperationInputFuture {
|
1328 1320 | inner: Box::pin(fut),
|
1329 1321 | }
|
1330 1322 | }
|
1331 1323 | }
|
1332 1324 | impl
|
1333 1325 | ::aws_smithy_http_server::response::IntoResponse<
|
1334 1326 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1335 1327 | > for crate::output::EndpointOperationOutput
|
1336 1328 | {
|
1337 1329 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1338 1330 | match crate::protocol_serde::shape_endpoint_operation::ser_endpoint_operation_http_response(
|
1339 1331 | self,
|
1340 1332 | ) {
|
1341 1333 | Ok(response) => response,
|
1342 1334 | Err(e) => {
|
1343 1335 | ::tracing::error!(error = %e, "failed to serialize response");
|
1344 1336 | ::aws_smithy_http_server::response::IntoResponse::<
|
1345 1337 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1346 1338 | >::into_response(
|
1347 1339 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
1348 1340 | e,
|
@@ -1430,1422 +1492,1482 @@
1430 1422 | ) -> std::task::Poll<Self::Output> {
|
1431 1423 | let this = self.project();
|
1432 1424 | this.inner.as_mut().poll(cx)
|
1433 1425 | }
|
1434 1426 | }
|
1435 1427 |
|
1436 1428 | impl<B>
|
1437 1429 | ::aws_smithy_http_server::request::FromRequest<
|
1438 1430 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1439 1431 | B,
|
1440 1432 | > for crate::input::JsonUnionsInput
|
1441 1433 | where
|
1442 1434 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1443 1435 | B: 'static,
|
1444 1436 |
|
1445 1437 | B::Data: Send,
|
1446 1438 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
1447 1439 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1448 1440 | {
|
1449 1441 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
1450 1442 | type Future = JsonUnionsInputFuture;
|
1451 1443 |
|
1452 1444 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1453 1445 | let fut = async move {
|
1454 1446 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1455 1447 | request.headers(),
|
1456 1448 | &CONTENT_TYPE_JSONUNIONS,
|
1457 1449 | ) {
|
1458 1450 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
1459 1451 | }
|
1460 - | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request)
|
1461 - | .await
|
1462 - | .map_err(Into::into)
|
1452 + | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request).await
|
1463 1453 | };
|
1464 1454 | use ::futures_util::future::TryFutureExt;
|
1465 1455 | let fut = fut.map_err(
|
1466 1456 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
1467 1457 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1468 1458 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
1469 1459 | },
|
1470 1460 | );
|
1471 1461 | JsonUnionsInputFuture {
|
1472 1462 | inner: Box::pin(fut),
|
1473 1463 | }
|
1474 1464 | }
|
1475 1465 | }
|
1476 1466 | impl
|
1477 1467 | ::aws_smithy_http_server::response::IntoResponse<
|
1478 1468 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1479 1469 | > for crate::output::JsonUnionsOutput
|
1480 1470 | {
|
1481 1471 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1482 1472 | match crate::protocol_serde::shape_json_unions::ser_json_unions_http_response(self) {
|
1483 1473 | Ok(response) => response,
|
1484 1474 | Err(e) => {
|
1485 1475 | ::tracing::error!(error = %e, "failed to serialize response");
|
1486 1476 | ::aws_smithy_http_server::response::IntoResponse::<
|
1487 1477 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
1488 1478 | >::into_response(
|
1489 1479 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
1490 1480 | e,
|
1491 1481 | ),
|
1492 1482 | )
|
@@ -2394,2384 +2454,2443 @@
2394 2384 | }
|
2395 2385 |
|
2396 2386 | impl<B>
|
2397 2387 | ::aws_smithy_http_server::request::FromRequest<
|
2398 2388 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
2399 2389 | B,
|
2400 2390 | > for crate::input::GreetingWithErrorsInput
|
2401 2391 | where
|
2402 2392 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2403 2393 | B: 'static,
|
2404 2394 |
|
2405 2395 | B::Data: Send,
|
2406 2396 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
2407 2397 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2408 2398 | {
|
2409 2399 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
2410 2400 | type Future = GreetingWithErrorsInputFuture;
|
2411 2401 |
|
2412 2402 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2413 2403 | let fut = async move {
|
2414 2404 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2415 2405 | request.headers(),
|
2416 2406 | &CONTENT_TYPE_GREETINGWITHERRORS,
|
2417 2407 | ) {
|
2418 2408 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
2419 2409 | }
|
2420 2410 | crate::protocol_serde::shape_greeting_with_errors::de_greeting_with_errors_http_request(
|
2421 2411 | request,
|
2422 2412 | )
|
2423 2413 | .await
|
2424 - | .map_err(Into::into)
|
2425 2414 | };
|
2426 2415 | use ::futures_util::future::TryFutureExt;
|
2427 2416 | let fut = fut.map_err(
|
2428 2417 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
2429 2418 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2430 2419 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
2431 2420 | },
|
2432 2421 | );
|
2433 2422 | GreetingWithErrorsInputFuture {
|
2434 2423 | inner: Box::pin(fut),
|
2435 2424 | }
|
2436 2425 | }
|
2437 2426 | }
|
2438 2427 | impl
|
2439 2428 | ::aws_smithy_http_server::response::IntoResponse<
|
2440 2429 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
2441 2430 | > for crate::output::GreetingWithErrorsOutput
|
2442 2431 | {
|
2443 2432 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2444 2433 | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_response(self) {
|
2445 2434 | Ok(response) => response,
|
2446 2435 | Err(e) => {
|
2447 2436 | ::tracing::error!(error = %e, "failed to serialize response");
|
2448 2437 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
2449 2438 | }
|
2450 2439 | }
|
2451 2440 | }
|
2452 2441 | }
|
2453 2442 | impl
|
2454 2443 | ::aws_smithy_http_server::response::IntoResponse<
|
@@ -2602,2591 +2662,2650 @@
2602 2591 | this.inner.as_mut().poll(cx)
|
2603 2592 | }
|
2604 2593 | }
|
2605 2594 |
|
2606 2595 | impl<B>
|
2607 2596 | ::aws_smithy_http_server::request::FromRequest<
|
2608 2597 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
2609 2598 | B,
|
2610 2599 | > for crate::input::SimpleScalarPropertiesInput
|
2611 2600 | where
|
2612 2601 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2613 2602 | B: 'static,
|
2614 2603 |
|
2615 2604 | B::Data: Send,
|
2616 2605 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
2617 2606 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2618 2607 | {
|
2619 2608 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
2620 2609 | type Future = SimpleScalarPropertiesInputFuture;
|
2621 2610 |
|
2622 2611 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2623 2612 | let fut = async move {
|
2624 2613 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2625 2614 | request.headers(),
|
2626 2615 | &CONTENT_TYPE_SIMPLESCALARPROPERTIES,
|
2627 2616 | ) {
|
2628 2617 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
2629 2618 | }
|
2630 2619 | crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_request(request)
|
2631 2620 | .await
|
2632 - | .map_err(Into::into)
|
2633 2621 | };
|
2634 2622 | use ::futures_util::future::TryFutureExt;
|
2635 2623 | let fut = fut.map_err(
|
2636 2624 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
2637 2625 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2638 2626 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
2639 2627 | },
|
2640 2628 | );
|
2641 2629 | SimpleScalarPropertiesInputFuture {
|
2642 2630 | inner: Box::pin(fut),
|
2643 2631 | }
|
2644 2632 | }
|
2645 2633 | }
|
2646 2634 | impl
|
2647 2635 | ::aws_smithy_http_server::response::IntoResponse<
|
2648 2636 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
2649 2637 | > for crate::output::SimpleScalarPropertiesOutput
|
2650 2638 | {
|
2651 2639 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2652 2640 | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_response(self) {
|
2653 2641 | Ok(response) => response,
|
2654 2642 | Err(e) => {
|
2655 2643 | ::tracing::error!(error = %e, "failed to serialize response");
|
2656 2644 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
2657 2645 | }
|
2658 2646 | }
|
2659 2647 | }
|
2660 2648 | }
|
2661 2649 |
|
2662 2650 | #[allow(unreachable_code, unused_variables)]
|
@@ -3009,2997 +3069,3056 @@
3009 2997 | this.inner.as_mut().poll(cx)
|
3010 2998 | }
|
3011 2999 | }
|
3012 3000 |
|
3013 3001 | impl<B>
|
3014 3002 | ::aws_smithy_http_server::request::FromRequest<
|
3015 3003 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
3016 3004 | B,
|
3017 3005 | > for crate::input::EmptyInputAndEmptyOutputInput
|
3018 3006 | where
|
3019 3007 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3020 3008 | B: 'static,
|
3021 3009 |
|
3022 3010 | B::Data: Send,
|
3023 3011 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
3024 3012 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3025 3013 | {
|
3026 3014 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
3027 3015 | type Future = EmptyInputAndEmptyOutputInputFuture;
|
3028 3016 |
|
3029 3017 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3030 3018 | let fut = async move {
|
3031 3019 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3032 3020 | request.headers(),
|
3033 3021 | &CONTENT_TYPE_EMPTYINPUTANDEMPTYOUTPUT,
|
3034 3022 | ) {
|
3035 3023 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
3036 3024 | }
|
3037 3025 | crate::protocol_serde::shape_empty_input_and_empty_output::de_empty_input_and_empty_output_http_request(request)
|
3038 3026 | .await
|
3039 - | .map_err(Into::into)
|
3040 3027 | };
|
3041 3028 | use ::futures_util::future::TryFutureExt;
|
3042 3029 | let fut = fut.map_err(
|
3043 3030 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
3044 3031 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3045 3032 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
3046 3033 | },
|
3047 3034 | );
|
3048 3035 | EmptyInputAndEmptyOutputInputFuture {
|
3049 3036 | inner: Box::pin(fut),
|
3050 3037 | }
|
3051 3038 | }
|
3052 3039 | }
|
3053 3040 | impl
|
3054 3041 | ::aws_smithy_http_server::response::IntoResponse<
|
3055 3042 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
3056 3043 | > for crate::output::EmptyInputAndEmptyOutputOutput
|
3057 3044 | {
|
3058 3045 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3059 3046 | match crate::protocol_serde::shape_empty_input_and_empty_output::ser_empty_input_and_empty_output_http_response(self) {
|
3060 3047 | Ok(response) => response,
|
3061 3048 | Err(e) => {
|
3062 3049 | ::tracing::error!(error = %e, "failed to serialize response");
|
3063 3050 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
3064 3051 | }
|
3065 3052 | }
|
3066 3053 | }
|
3067 3054 | }
|
3068 3055 |
|
3069 3056 | #[allow(unreachable_code, unused_variables)]
|
@@ -3175,3162 +3235,3221 @@
3175 3162 | }
|
3176 3163 |
|
3177 3164 | impl<B>
|
3178 3165 | ::aws_smithy_http_server::request::FromRequest<
|
3179 3166 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
3180 3167 | B,
|
3181 3168 | > for crate::input::NoInputAndOutputInput
|
3182 3169 | where
|
3183 3170 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3184 3171 | B: 'static,
|
3185 3172 |
|
3186 3173 | B::Data: Send,
|
3187 3174 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
3188 3175 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3189 3176 | {
|
3190 3177 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
3191 3178 | type Future = NoInputAndOutputInputFuture;
|
3192 3179 |
|
3193 3180 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3194 3181 | let fut = async move {
|
3195 3182 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3196 3183 | request.headers(),
|
3197 3184 | &CONTENT_TYPE_NOINPUTANDOUTPUT,
|
3198 3185 | ) {
|
3199 3186 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
3200 3187 | }
|
3201 3188 | crate::protocol_serde::shape_no_input_and_output::de_no_input_and_output_http_request(
|
3202 3189 | request,
|
3203 3190 | )
|
3204 3191 | .await
|
3205 - | .map_err(Into::into)
|
3206 3192 | };
|
3207 3193 | use ::futures_util::future::TryFutureExt;
|
3208 3194 | let fut = fut.map_err(
|
3209 3195 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
3210 3196 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3211 3197 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
3212 3198 | },
|
3213 3199 | );
|
3214 3200 | NoInputAndOutputInputFuture {
|
3215 3201 | inner: Box::pin(fut),
|
3216 3202 | }
|
3217 3203 | }
|
3218 3204 | }
|
3219 3205 | impl
|
3220 3206 | ::aws_smithy_http_server::response::IntoResponse<
|
3221 3207 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
3222 3208 | > for crate::output::NoInputAndOutputOutput
|
3223 3209 | {
|
3224 3210 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3225 3211 | match crate::protocol_serde::shape_no_input_and_output::ser_no_input_and_output_http_response(self) {
|
3226 3212 | Ok(response) => response,
|
3227 3213 | Err(e) => {
|
3228 3214 | ::tracing::error!(error = %e, "failed to serialize response");
|
3229 3215 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
3230 3216 | }
|
3231 3217 | }
|
3232 3218 | }
|
3233 3219 | }
|
3234 3220 |
|
3235 3221 | #[allow(unreachable_code, unused_variables)]
|
@@ -3337,3323 +3397,3382 @@
3337 3323 | this.inner.as_mut().poll(cx)
|
3338 3324 | }
|
3339 3325 | }
|
3340 3326 |
|
3341 3327 | impl<B>
|
3342 3328 | ::aws_smithy_http_server::request::FromRequest<
|
3343 3329 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
3344 3330 | B,
|
3345 3331 | > for crate::input::NoInputAndNoOutputInput
|
3346 3332 | where
|
3347 3333 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3348 3334 | B: 'static,
|
3349 3335 |
|
3350 3336 | B::Data: Send,
|
3351 3337 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
3352 3338 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3353 3339 | {
|
3354 3340 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
3355 3341 | type Future = NoInputAndNoOutputInputFuture;
|
3356 3342 |
|
3357 3343 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3358 3344 | let fut = async move {
|
3359 3345 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3360 3346 | request.headers(),
|
3361 3347 | &CONTENT_TYPE_NOINPUTANDNOOUTPUT,
|
3362 3348 | ) {
|
3363 3349 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
3364 3350 | }
|
3365 3351 | crate::protocol_serde::shape_no_input_and_no_output::de_no_input_and_no_output_http_request(request)
|
3366 3352 | .await
|
3367 - | .map_err(Into::into)
|
3368 3353 | };
|
3369 3354 | use ::futures_util::future::TryFutureExt;
|
3370 3355 | let fut = fut.map_err(
|
3371 3356 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
3372 3357 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3373 3358 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
3374 3359 | },
|
3375 3360 | );
|
3376 3361 | NoInputAndNoOutputInputFuture {
|
3377 3362 | inner: Box::pin(fut),
|
3378 3363 | }
|
3379 3364 | }
|
3380 3365 | }
|
3381 3366 | impl
|
3382 3367 | ::aws_smithy_http_server::response::IntoResponse<
|
3383 3368 | ::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0,
|
3384 3369 | > for crate::output::NoInputAndNoOutputOutput
|
3385 3370 | {
|
3386 3371 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3387 3372 | match crate::protocol_serde::shape_no_input_and_no_output::ser_no_input_and_no_output_http_response(self) {
|
3388 3373 | Ok(response) => response,
|
3389 3374 | Err(e) => {
|
3390 3375 | ::tracing::error!(error = %e, "failed to serialize response");
|
3391 3376 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_10::AwsJson1_0>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
3392 3377 | }
|
3393 3378 | }
|
3394 3379 | }
|
3395 3380 | }
|
3396 3381 |
|
3397 3382 | #[allow(unreachable_code, unused_variables)]
|
@@ -27,27 +87,86 @@
27 27 | this.inner.as_mut().poll(cx)
|
28 28 | }
|
29 29 | }
|
30 30 |
|
31 31 | impl<B>
|
32 32 | ::aws_smithy_http_server::request::FromRequest<
|
33 33 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
34 34 | B,
|
35 35 | > for crate::input::ContentTypeParametersInput
|
36 36 | where
|
37 37 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
38 38 | B: 'static,
|
39 39 |
|
40 40 | B::Data: Send,
|
41 41 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
42 42 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
43 43 | {
|
44 44 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
45 45 | type Future = ContentTypeParametersInputFuture;
|
46 46 |
|
47 47 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
48 48 | let fut = async move {
|
49 49 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
50 50 | request.headers(),
|
51 51 | &CONTENT_TYPE_CONTENTTYPEPARAMETERS,
|
52 52 | ) {
|
53 53 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
54 54 | }
|
55 55 | crate::protocol_serde::shape_content_type_parameters::de_content_type_parameters_http_request(request)
|
56 56 | .await
|
57 - | .map_err(Into::into)
|
58 57 | };
|
59 58 | use ::futures_util::future::TryFutureExt;
|
60 59 | let fut = fut.map_err(
|
61 60 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
62 61 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
63 62 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
64 63 | },
|
65 64 | );
|
66 65 | ContentTypeParametersInputFuture {
|
67 66 | inner: Box::pin(fut),
|
68 67 | }
|
69 68 | }
|
70 69 | }
|
71 70 | impl
|
72 71 | ::aws_smithy_http_server::response::IntoResponse<
|
73 72 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
74 73 | > for crate::output::ContentTypeParametersOutput
|
75 74 | {
|
76 75 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
77 76 | match crate::protocol_serde::shape_content_type_parameters::ser_content_type_parameters_http_response(self) {
|
78 77 | Ok(response) => response,
|
79 78 | Err(e) => {
|
80 79 | ::tracing::error!(error = %e, "failed to serialize response");
|
81 80 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
82 81 | }
|
83 82 | }
|
84 83 | }
|
85 84 | }
|
86 85 |
|
87 86 | #[allow(unreachable_code, unused_variables)]
|
@@ -164,163 +224,222 @@
164 163 | this.inner.as_mut().poll(cx)
|
165 164 | }
|
166 165 | }
|
167 166 |
|
168 167 | impl<B>
|
169 168 | ::aws_smithy_http_server::request::FromRequest<
|
170 169 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
171 170 | B,
|
172 171 | > for crate::input::PutWithContentEncodingInput
|
173 172 | where
|
174 173 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
175 174 | B: 'static,
|
176 175 |
|
177 176 | B::Data: Send,
|
178 177 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
179 178 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
180 179 | {
|
181 180 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
182 181 | type Future = PutWithContentEncodingInputFuture;
|
183 182 |
|
184 183 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
185 184 | let fut = async move {
|
186 185 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
187 186 | request.headers(),
|
188 187 | &CONTENT_TYPE_PUTWITHCONTENTENCODING,
|
189 188 | ) {
|
190 189 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
191 190 | }
|
192 191 | crate::protocol_serde::shape_put_with_content_encoding::de_put_with_content_encoding_http_request(request)
|
193 192 | .await
|
194 - | .map_err(Into::into)
|
195 193 | };
|
196 194 | use ::futures_util::future::TryFutureExt;
|
197 195 | let fut = fut.map_err(
|
198 196 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
199 197 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
200 198 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
201 199 | },
|
202 200 | );
|
203 201 | PutWithContentEncodingInputFuture {
|
204 202 | inner: Box::pin(fut),
|
205 203 | }
|
206 204 | }
|
207 205 | }
|
208 206 | impl
|
209 207 | ::aws_smithy_http_server::response::IntoResponse<
|
210 208 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
211 209 | > for crate::output::PutWithContentEncodingOutput
|
212 210 | {
|
213 211 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
214 212 | match crate::protocol_serde::shape_put_with_content_encoding::ser_put_with_content_encoding_http_response(self) {
|
215 213 | Ok(response) => response,
|
216 214 | Err(e) => {
|
217 215 | ::tracing::error!(error = %e, "failed to serialize response");
|
218 216 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
219 217 | }
|
220 218 | }
|
221 219 | }
|
222 220 | }
|
223 221 |
|
224 222 | static CONTENT_TYPE_FRACTIONALSECONDS: std::sync::LazyLock<::mime::Mime> =
|
@@ -251,249 +311,308 @@
251 249 | }
|
252 250 |
|
253 251 | impl<B>
|
254 252 | ::aws_smithy_http_server::request::FromRequest<
|
255 253 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
256 254 | B,
|
257 255 | > for crate::input::FractionalSecondsInput
|
258 256 | where
|
259 257 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
260 258 | B: 'static,
|
261 259 |
|
262 260 | B::Data: Send,
|
263 261 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
264 262 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
265 263 | {
|
266 264 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
267 265 | type Future = FractionalSecondsInputFuture;
|
268 266 |
|
269 267 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
270 268 | let fut = async move {
|
271 269 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
272 270 | request.headers(),
|
273 271 | &CONTENT_TYPE_FRACTIONALSECONDS,
|
274 272 | ) {
|
275 273 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
276 274 | }
|
277 275 | crate::protocol_serde::shape_fractional_seconds::de_fractional_seconds_http_request(
|
278 276 | request,
|
279 277 | )
|
280 278 | .await
|
281 - | .map_err(Into::into)
|
282 279 | };
|
283 280 | use ::futures_util::future::TryFutureExt;
|
284 281 | let fut = fut.map_err(
|
285 282 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
286 283 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
287 284 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
288 285 | },
|
289 286 | );
|
290 287 | FractionalSecondsInputFuture {
|
291 288 | inner: Box::pin(fut),
|
292 289 | }
|
293 290 | }
|
294 291 | }
|
295 292 | impl
|
296 293 | ::aws_smithy_http_server::response::IntoResponse<
|
297 294 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
298 295 | > for crate::output::FractionalSecondsOutput
|
299 296 | {
|
300 297 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
301 298 | match crate::protocol_serde::shape_fractional_seconds::ser_fractional_seconds_http_response(
|
302 299 | self,
|
303 300 | ) {
|
304 301 | Ok(response) => response,
|
305 302 | Err(e) => {
|
306 303 | ::tracing::error!(error = %e, "failed to serialize response");
|
307 304 | ::aws_smithy_http_server::response::IntoResponse::<
|
308 305 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
309 306 | >::into_response(
|
310 307 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
311 308 | e,
|
@@ -344,341 +404,400 @@
344 341 | this.inner.as_mut().poll(cx)
|
345 342 | }
|
346 343 | }
|
347 344 |
|
348 345 | impl<B>
|
349 346 | ::aws_smithy_http_server::request::FromRequest<
|
350 347 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
351 348 | B,
|
352 349 | > for crate::input::DatetimeOffsetsInput
|
353 350 | where
|
354 351 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
355 352 | B: 'static,
|
356 353 |
|
357 354 | B::Data: Send,
|
358 355 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
359 356 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
360 357 | {
|
361 358 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
362 359 | type Future = DatetimeOffsetsInputFuture;
|
363 360 |
|
364 361 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
365 362 | let fut = async move {
|
366 363 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
367 364 | request.headers(),
|
368 365 | &CONTENT_TYPE_DATETIMEOFFSETS,
|
369 366 | ) {
|
370 367 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
371 368 | }
|
372 369 | crate::protocol_serde::shape_datetime_offsets::de_datetime_offsets_http_request(request)
|
373 370 | .await
|
374 - | .map_err(Into::into)
|
375 371 | };
|
376 372 | use ::futures_util::future::TryFutureExt;
|
377 373 | let fut = fut.map_err(
|
378 374 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
379 375 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
380 376 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
381 377 | },
|
382 378 | );
|
383 379 | DatetimeOffsetsInputFuture {
|
384 380 | inner: Box::pin(fut),
|
385 381 | }
|
386 382 | }
|
387 383 | }
|
388 384 | impl
|
389 385 | ::aws_smithy_http_server::response::IntoResponse<
|
390 386 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
391 387 | > for crate::output::DatetimeOffsetsOutput
|
392 388 | {
|
393 389 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
394 390 | match crate::protocol_serde::shape_datetime_offsets::ser_datetime_offsets_http_response(
|
395 391 | self,
|
396 392 | ) {
|
397 393 | Ok(response) => response,
|
398 394 | Err(e) => {
|
399 395 | ::tracing::error!(error = %e, "failed to serialize response");
|
400 396 | ::aws_smithy_http_server::response::IntoResponse::<
|
401 397 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
402 398 | >::into_response(
|
403 399 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
404 400 | e,
|
@@ -437,433 +497,492 @@
437 433 | this.inner.as_mut().poll(cx)
|
438 434 | }
|
439 435 | }
|
440 436 |
|
441 437 | impl<B>
|
442 438 | ::aws_smithy_http_server::request::FromRequest<
|
443 439 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
444 440 | B,
|
445 441 | > for crate::input::HostWithPathOperationInput
|
446 442 | where
|
447 443 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
448 444 | B: 'static,
|
449 445 |
|
450 446 | B::Data: Send,
|
451 447 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
452 448 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
453 449 | {
|
454 450 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
455 451 | type Future = HostWithPathOperationInputFuture;
|
456 452 |
|
457 453 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
458 454 | let fut = async move {
|
459 455 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
460 456 | request.headers(),
|
461 457 | &CONTENT_TYPE_HOSTWITHPATHOPERATION,
|
462 458 | ) {
|
463 459 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
464 460 | }
|
465 461 | crate::protocol_serde::shape_host_with_path_operation::de_host_with_path_operation_http_request(request)
|
466 462 | .await
|
467 - | .map_err(Into::into)
|
468 463 | };
|
469 464 | use ::futures_util::future::TryFutureExt;
|
470 465 | let fut = fut.map_err(
|
471 466 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
472 467 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
473 468 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
474 469 | },
|
475 470 | );
|
476 471 | HostWithPathOperationInputFuture {
|
477 472 | inner: Box::pin(fut),
|
478 473 | }
|
479 474 | }
|
480 475 | }
|
481 476 | impl
|
482 477 | ::aws_smithy_http_server::response::IntoResponse<
|
483 478 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
484 479 | > for crate::output::HostWithPathOperationOutput
|
485 480 | {
|
486 481 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
487 482 | match crate::protocol_serde::shape_host_with_path_operation::ser_host_with_path_operation_http_response(self) {
|
488 483 | Ok(response) => response,
|
489 484 | Err(e) => {
|
490 485 | ::tracing::error!(error = %e, "failed to serialize response");
|
491 486 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
492 487 | }
|
493 488 | }
|
494 489 | }
|
495 490 | }
|
496 491 |
|
497 492 | static CONTENT_TYPE_ENDPOINTWITHHOSTLABELOPERATION: std::sync::LazyLock<::mime::Mime> =
|
@@ -522,517 +582,576 @@
522 517 | this.inner.as_mut().poll(cx)
|
523 518 | }
|
524 519 | }
|
525 520 |
|
526 521 | impl<B>
|
527 522 | ::aws_smithy_http_server::request::FromRequest<
|
528 523 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
529 524 | B,
|
530 525 | > for crate::input::EndpointWithHostLabelOperationInput
|
531 526 | where
|
532 527 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
533 528 | B: 'static,
|
534 529 |
|
535 530 | B::Data: Send,
|
536 531 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
537 532 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
538 533 | {
|
539 534 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
540 535 | type Future = EndpointWithHostLabelOperationInputFuture;
|
541 536 |
|
542 537 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
543 538 | let fut = async move {
|
544 539 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
545 540 | request.headers(),
|
546 541 | &CONTENT_TYPE_ENDPOINTWITHHOSTLABELOPERATION,
|
547 542 | ) {
|
548 543 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
549 544 | }
|
550 545 | crate::protocol_serde::shape_endpoint_with_host_label_operation::de_endpoint_with_host_label_operation_http_request(request)
|
551 546 | .await
|
552 - | .map_err(Into::into)
|
553 547 | };
|
554 548 | use ::futures_util::future::TryFutureExt;
|
555 549 | let fut = fut.map_err(
|
556 550 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
557 551 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
558 552 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
559 553 | },
|
560 554 | );
|
561 555 | EndpointWithHostLabelOperationInputFuture {
|
562 556 | inner: Box::pin(fut),
|
563 557 | }
|
564 558 | }
|
565 559 | }
|
566 560 | impl
|
567 561 | ::aws_smithy_http_server::response::IntoResponse<
|
568 562 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
569 563 | > for crate::output::EndpointWithHostLabelOperationOutput
|
570 564 | {
|
571 565 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
572 566 | match crate::protocol_serde::shape_endpoint_with_host_label_operation::ser_endpoint_with_host_label_operation_http_response(self) {
|
573 567 | Ok(response) => response,
|
574 568 | Err(e) => {
|
575 569 | ::tracing::error!(error = %e, "failed to serialize response");
|
576 570 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
577 571 | }
|
578 572 | }
|
579 573 | }
|
580 574 | }
|
581 575 | impl
|
582 576 | ::aws_smithy_http_server::response::IntoResponse<
|
@@ -688,682 +748,741 @@
688 682 | }
|
689 683 |
|
690 684 | impl<B>
|
691 685 | ::aws_smithy_http_server::request::FromRequest<
|
692 686 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
693 687 | B,
|
694 688 | > for crate::input::EndpointOperationInput
|
695 689 | where
|
696 690 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
697 691 | B: 'static,
|
698 692 |
|
699 693 | B::Data: Send,
|
700 694 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
701 695 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
702 696 | {
|
703 697 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
704 698 | type Future = EndpointOperationInputFuture;
|
705 699 |
|
706 700 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
707 701 | let fut = async move {
|
708 702 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
709 703 | request.headers(),
|
710 704 | &CONTENT_TYPE_ENDPOINTOPERATION,
|
711 705 | ) {
|
712 706 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
713 707 | }
|
714 708 | crate::protocol_serde::shape_endpoint_operation::de_endpoint_operation_http_request(
|
715 709 | request,
|
716 710 | )
|
717 711 | .await
|
718 - | .map_err(Into::into)
|
719 712 | };
|
720 713 | use ::futures_util::future::TryFutureExt;
|
721 714 | let fut = fut.map_err(
|
722 715 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
723 716 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
724 717 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
725 718 | },
|
726 719 | );
|
727 720 | EndpointOperationInputFuture {
|
728 721 | inner: Box::pin(fut),
|
729 722 | }
|
730 723 | }
|
731 724 | }
|
732 725 | impl
|
733 726 | ::aws_smithy_http_server::response::IntoResponse<
|
734 727 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
735 728 | > for crate::output::EndpointOperationOutput
|
736 729 | {
|
737 730 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
738 731 | match crate::protocol_serde::shape_endpoint_operation::ser_endpoint_operation_http_response(
|
739 732 | self,
|
740 733 | ) {
|
741 734 | Ok(response) => response,
|
742 735 | Err(e) => {
|
743 736 | ::tracing::error!(error = %e, "failed to serialize response");
|
744 737 | ::aws_smithy_http_server::response::IntoResponse::<
|
745 738 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
746 739 | >::into_response(
|
747 740 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
748 741 | e,
|
@@ -832,825 +894,885 @@
832 825 | ) -> std::task::Poll<Self::Output> {
|
833 826 | let this = self.project();
|
834 827 | this.inner.as_mut().poll(cx)
|
835 828 | }
|
836 829 | }
|
837 830 |
|
838 831 | impl<B>
|
839 832 | ::aws_smithy_http_server::request::FromRequest<
|
840 833 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
841 834 | B,
|
842 835 | > for crate::input::JsonUnionsInput
|
843 836 | where
|
844 837 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
845 838 | B: 'static,
|
846 839 |
|
847 840 | B::Data: Send,
|
848 841 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
849 842 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
850 843 | {
|
851 844 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
852 845 | type Future = JsonUnionsInputFuture;
|
853 846 |
|
854 847 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
855 848 | let fut = async move {
|
856 849 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
857 850 | request.headers(),
|
858 851 | &CONTENT_TYPE_JSONUNIONS,
|
859 852 | ) {
|
860 853 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
861 854 | }
|
862 - | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request)
|
863 - | .await
|
864 - | .map_err(Into::into)
|
855 + | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request).await
|
865 856 | };
|
866 857 | use ::futures_util::future::TryFutureExt;
|
867 858 | let fut = fut.map_err(
|
868 859 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
869 860 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
870 861 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
871 862 | },
|
872 863 | );
|
873 864 | JsonUnionsInputFuture {
|
874 865 | inner: Box::pin(fut),
|
875 866 | }
|
876 867 | }
|
877 868 | }
|
878 869 | impl
|
879 870 | ::aws_smithy_http_server::response::IntoResponse<
|
880 871 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
881 872 | > for crate::output::JsonUnionsOutput
|
882 873 | {
|
883 874 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
884 875 | match crate::protocol_serde::shape_json_unions::ser_json_unions_http_response(self) {
|
885 876 | Ok(response) => response,
|
886 877 | Err(e) => {
|
887 878 | ::tracing::error!(error = %e, "failed to serialize response");
|
888 879 | ::aws_smithy_http_server::response::IntoResponse::<
|
889 880 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
890 881 | >::into_response(
|
891 882 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
892 883 | e,
|
893 884 | ),
|
894 885 | )
|
@@ -1716,1707 +1776,1766 @@
1716 1707 | }
|
1717 1708 |
|
1718 1709 | impl<B>
|
1719 1710 | ::aws_smithy_http_server::request::FromRequest<
|
1720 1711 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
1721 1712 | B,
|
1722 1713 | > for crate::input::GreetingWithErrorsInput
|
1723 1714 | where
|
1724 1715 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1725 1716 | B: 'static,
|
1726 1717 |
|
1727 1718 | B::Data: Send,
|
1728 1719 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
1729 1720 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1730 1721 | {
|
1731 1722 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
1732 1723 | type Future = GreetingWithErrorsInputFuture;
|
1733 1724 |
|
1734 1725 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1735 1726 | let fut = async move {
|
1736 1727 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1737 1728 | request.headers(),
|
1738 1729 | &CONTENT_TYPE_GREETINGWITHERRORS,
|
1739 1730 | ) {
|
1740 1731 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
1741 1732 | }
|
1742 1733 | crate::protocol_serde::shape_greeting_with_errors::de_greeting_with_errors_http_request(
|
1743 1734 | request,
|
1744 1735 | )
|
1745 1736 | .await
|
1746 - | .map_err(Into::into)
|
1747 1737 | };
|
1748 1738 | use ::futures_util::future::TryFutureExt;
|
1749 1739 | let fut = fut.map_err(
|
1750 1740 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
1751 1741 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1752 1742 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
1753 1743 | },
|
1754 1744 | );
|
1755 1745 | GreetingWithErrorsInputFuture {
|
1756 1746 | inner: Box::pin(fut),
|
1757 1747 | }
|
1758 1748 | }
|
1759 1749 | }
|
1760 1750 | impl
|
1761 1751 | ::aws_smithy_http_server::response::IntoResponse<
|
1762 1752 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
1763 1753 | > for crate::output::GreetingWithErrorsOutput
|
1764 1754 | {
|
1765 1755 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1766 1756 | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_response(self) {
|
1767 1757 | Ok(response) => response,
|
1768 1758 | Err(e) => {
|
1769 1759 | ::tracing::error!(error = %e, "failed to serialize response");
|
1770 1760 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
1771 1761 | }
|
1772 1762 | }
|
1773 1763 | }
|
1774 1764 | }
|
1775 1765 | impl
|
1776 1766 | ::aws_smithy_http_server::response::IntoResponse<
|
@@ -1924,1914 +1984,1973 @@
1924 1914 | this.inner.as_mut().poll(cx)
|
1925 1915 | }
|
1926 1916 | }
|
1927 1917 |
|
1928 1918 | impl<B>
|
1929 1919 | ::aws_smithy_http_server::request::FromRequest<
|
1930 1920 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
1931 1921 | B,
|
1932 1922 | > for crate::input::SparseNullsOperationInput
|
1933 1923 | where
|
1934 1924 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1935 1925 | B: 'static,
|
1936 1926 |
|
1937 1927 | B::Data: Send,
|
1938 1928 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
1939 1929 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1940 1930 | {
|
1941 1931 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
1942 1932 | type Future = SparseNullsOperationInputFuture;
|
1943 1933 |
|
1944 1934 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1945 1935 | let fut = async move {
|
1946 1936 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1947 1937 | request.headers(),
|
1948 1938 | &CONTENT_TYPE_SPARSENULLSOPERATION,
|
1949 1939 | ) {
|
1950 1940 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
1951 1941 | }
|
1952 1942 | crate::protocol_serde::shape_sparse_nulls_operation::de_sparse_nulls_operation_http_request(request)
|
1953 1943 | .await
|
1954 - | .map_err(Into::into)
|
1955 1944 | };
|
1956 1945 | use ::futures_util::future::TryFutureExt;
|
1957 1946 | let fut = fut.map_err(
|
1958 1947 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
1959 1948 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1960 1949 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
1961 1950 | },
|
1962 1951 | );
|
1963 1952 | SparseNullsOperationInputFuture {
|
1964 1953 | inner: Box::pin(fut),
|
1965 1954 | }
|
1966 1955 | }
|
1967 1956 | }
|
1968 1957 | impl
|
1969 1958 | ::aws_smithy_http_server::response::IntoResponse<
|
1970 1959 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
1971 1960 | > for crate::output::SparseNullsOperationOutput
|
1972 1961 | {
|
1973 1962 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1974 1963 | match crate::protocol_serde::shape_sparse_nulls_operation::ser_sparse_nulls_operation_http_response(self) {
|
1975 1964 | Ok(response) => response,
|
1976 1965 | Err(e) => {
|
1977 1966 | ::tracing::error!(error = %e, "failed to serialize response");
|
1978 1967 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
1979 1968 | }
|
1980 1969 | }
|
1981 1970 | }
|
1982 1971 | }
|
1983 1972 |
|
1984 1973 | #[allow(unreachable_code, unused_variables)]
|
@@ -2186,2175 +2246,2234 @@
2186 2175 | this.inner.as_mut().poll(cx)
|
2187 2176 | }
|
2188 2177 | }
|
2189 2178 |
|
2190 2179 | impl<B>
|
2191 2180 | ::aws_smithy_http_server::request::FromRequest<
|
2192 2181 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2193 2182 | B,
|
2194 2183 | > for crate::input::NullOperationInput
|
2195 2184 | where
|
2196 2185 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2197 2186 | B: 'static,
|
2198 2187 |
|
2199 2188 | B::Data: Send,
|
2200 2189 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
2201 2190 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2202 2191 | {
|
2203 2192 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
2204 2193 | type Future = NullOperationInputFuture;
|
2205 2194 |
|
2206 2195 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2207 2196 | let fut = async move {
|
2208 2197 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2209 2198 | request.headers(),
|
2210 2199 | &CONTENT_TYPE_NULLOPERATION,
|
2211 2200 | ) {
|
2212 2201 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
2213 2202 | }
|
2214 2203 | crate::protocol_serde::shape_null_operation::de_null_operation_http_request(request)
|
2215 2204 | .await
|
2216 - | .map_err(Into::into)
|
2217 2205 | };
|
2218 2206 | use ::futures_util::future::TryFutureExt;
|
2219 2207 | let fut = fut.map_err(
|
2220 2208 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
2221 2209 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2222 2210 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
2223 2211 | },
|
2224 2212 | );
|
2225 2213 | NullOperationInputFuture {
|
2226 2214 | inner: Box::pin(fut),
|
2227 2215 | }
|
2228 2216 | }
|
2229 2217 | }
|
2230 2218 | impl
|
2231 2219 | ::aws_smithy_http_server::response::IntoResponse<
|
2232 2220 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2233 2221 | > for crate::output::NullOperationOutput
|
2234 2222 | {
|
2235 2223 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2236 2224 | match crate::protocol_serde::shape_null_operation::ser_null_operation_http_response(self) {
|
2237 2225 | Ok(response) => response,
|
2238 2226 | Err(e) => {
|
2239 2227 | ::tracing::error!(error = %e, "failed to serialize response");
|
2240 2228 | ::aws_smithy_http_server::response::IntoResponse::<
|
2241 2229 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2242 2230 | >::into_response(
|
2243 2231 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
2244 2232 | e,
|
2245 2233 | ),
|
2246 2234 | )
|
@@ -2357,2345 +2419,2405 @@
2357 2345 | ) -> std::task::Poll<Self::Output> {
|
2358 2346 | let this = self.project();
|
2359 2347 | this.inner.as_mut().poll(cx)
|
2360 2348 | }
|
2361 2349 | }
|
2362 2350 |
|
2363 2351 | impl<B>
|
2364 2352 | ::aws_smithy_http_server::request::FromRequest<
|
2365 2353 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2366 2354 | B,
|
2367 2355 | > for crate::input::JsonEnumsInput
|
2368 2356 | where
|
2369 2357 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2370 2358 | B: 'static,
|
2371 2359 |
|
2372 2360 | B::Data: Send,
|
2373 2361 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
2374 2362 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2375 2363 | {
|
2376 2364 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
2377 2365 | type Future = JsonEnumsInputFuture;
|
2378 2366 |
|
2379 2367 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2380 2368 | let fut = async move {
|
2381 2369 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2382 2370 | request.headers(),
|
2383 2371 | &CONTENT_TYPE_JSONENUMS,
|
2384 2372 | ) {
|
2385 2373 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
2386 2374 | }
|
2387 - | crate::protocol_serde::shape_json_enums::de_json_enums_http_request(request)
|
2388 - | .await
|
2389 - | .map_err(Into::into)
|
2375 + | crate::protocol_serde::shape_json_enums::de_json_enums_http_request(request).await
|
2390 2376 | };
|
2391 2377 | use ::futures_util::future::TryFutureExt;
|
2392 2378 | let fut = fut.map_err(
|
2393 2379 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
2394 2380 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2395 2381 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
2396 2382 | },
|
2397 2383 | );
|
2398 2384 | JsonEnumsInputFuture {
|
2399 2385 | inner: Box::pin(fut),
|
2400 2386 | }
|
2401 2387 | }
|
2402 2388 | }
|
2403 2389 | impl
|
2404 2390 | ::aws_smithy_http_server::response::IntoResponse<
|
2405 2391 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2406 2392 | > for crate::output::JsonEnumsOutput
|
2407 2393 | {
|
2408 2394 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2409 2395 | match crate::protocol_serde::shape_json_enums::ser_json_enums_http_response(self) {
|
2410 2396 | Ok(response) => response,
|
2411 2397 | Err(e) => {
|
2412 2398 | ::tracing::error!(error = %e, "failed to serialize response");
|
2413 2399 | ::aws_smithy_http_server::response::IntoResponse::<
|
2414 2400 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2415 2401 | >::into_response(
|
2416 2402 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
2417 2403 | e,
|
2418 2404 | ),
|
2419 2405 | )
|
@@ -2650,2636 +2710,2695 @@
2650 2636 | this.inner.as_mut().poll(cx)
|
2651 2637 | }
|
2652 2638 | }
|
2653 2639 |
|
2654 2640 | impl<B>
|
2655 2641 | ::aws_smithy_http_server::request::FromRequest<
|
2656 2642 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2657 2643 | B,
|
2658 2644 | > for crate::input::PutAndGetInlineDocumentsInput
|
2659 2645 | where
|
2660 2646 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2661 2647 | B: 'static,
|
2662 2648 |
|
2663 2649 | B::Data: Send,
|
2664 2650 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
2665 2651 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2666 2652 | {
|
2667 2653 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
2668 2654 | type Future = PutAndGetInlineDocumentsInputFuture;
|
2669 2655 |
|
2670 2656 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2671 2657 | let fut = async move {
|
2672 2658 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2673 2659 | request.headers(),
|
2674 2660 | &CONTENT_TYPE_PUTANDGETINLINEDOCUMENTS,
|
2675 2661 | ) {
|
2676 2662 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
2677 2663 | }
|
2678 2664 | crate::protocol_serde::shape_put_and_get_inline_documents::de_put_and_get_inline_documents_http_request(request)
|
2679 2665 | .await
|
2680 - | .map_err(Into::into)
|
2681 2666 | };
|
2682 2667 | use ::futures_util::future::TryFutureExt;
|
2683 2668 | let fut = fut.map_err(
|
2684 2669 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
2685 2670 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2686 2671 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
2687 2672 | },
|
2688 2673 | );
|
2689 2674 | PutAndGetInlineDocumentsInputFuture {
|
2690 2675 | inner: Box::pin(fut),
|
2691 2676 | }
|
2692 2677 | }
|
2693 2678 | }
|
2694 2679 | impl
|
2695 2680 | ::aws_smithy_http_server::response::IntoResponse<
|
2696 2681 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2697 2682 | > for crate::output::PutAndGetInlineDocumentsOutput
|
2698 2683 | {
|
2699 2684 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2700 2685 | match crate::protocol_serde::shape_put_and_get_inline_documents::ser_put_and_get_inline_documents_http_response(self) {
|
2701 2686 | Ok(response) => response,
|
2702 2687 | Err(e) => {
|
2703 2688 | ::tracing::error!(error = %e, "failed to serialize response");
|
2704 2689 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
2705 2690 | }
|
2706 2691 | }
|
2707 2692 | }
|
2708 2693 | }
|
2709 2694 |
|
2710 2695 | #[allow(unreachable_code, unused_variables)]
|
@@ -2848,2833 +2908,2892 @@
2848 2833 | this.inner.as_mut().poll(cx)
|
2849 2834 | }
|
2850 2835 | }
|
2851 2836 |
|
2852 2837 | impl<B>
|
2853 2838 | ::aws_smithy_http_server::request::FromRequest<
|
2854 2839 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2855 2840 | B,
|
2856 2841 | > for crate::input::OperationWithOptionalInputOutputInput
|
2857 2842 | where
|
2858 2843 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2859 2844 | B: 'static,
|
2860 2845 |
|
2861 2846 | B::Data: Send,
|
2862 2847 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
2863 2848 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2864 2849 | {
|
2865 2850 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
2866 2851 | type Future = OperationWithOptionalInputOutputInputFuture;
|
2867 2852 |
|
2868 2853 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2869 2854 | let fut = async move {
|
2870 2855 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2871 2856 | request.headers(),
|
2872 2857 | &CONTENT_TYPE_OPERATIONWITHOPTIONALINPUTOUTPUT,
|
2873 2858 | ) {
|
2874 2859 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
2875 2860 | }
|
2876 2861 | crate::protocol_serde::shape_operation_with_optional_input_output::de_operation_with_optional_input_output_http_request(request)
|
2877 2862 | .await
|
2878 - | .map_err(Into::into)
|
2879 2863 | };
|
2880 2864 | use ::futures_util::future::TryFutureExt;
|
2881 2865 | let fut = fut.map_err(
|
2882 2866 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
2883 2867 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2884 2868 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
2885 2869 | },
|
2886 2870 | );
|
2887 2871 | OperationWithOptionalInputOutputInputFuture {
|
2888 2872 | inner: Box::pin(fut),
|
2889 2873 | }
|
2890 2874 | }
|
2891 2875 | }
|
2892 2876 | impl
|
2893 2877 | ::aws_smithy_http_server::response::IntoResponse<
|
2894 2878 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
2895 2879 | > for crate::output::OperationWithOptionalInputOutputOutput
|
2896 2880 | {
|
2897 2881 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2898 2882 | match crate::protocol_serde::shape_operation_with_optional_input_output::ser_operation_with_optional_input_output_http_response(self) {
|
2899 2883 | Ok(response) => response,
|
2900 2884 | Err(e) => {
|
2901 2885 | ::tracing::error!(error = %e, "failed to serialize response");
|
2902 2886 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
2903 2887 | }
|
2904 2888 | }
|
2905 2889 | }
|
2906 2890 | }
|
2907 2891 |
|
2908 2892 | #[allow(unreachable_code, unused_variables)]
|
@@ -3046,3030 +3106,3089 @@
3046 3030 | this.inner.as_mut().poll(cx)
|
3047 3031 | }
|
3048 3032 | }
|
3049 3033 |
|
3050 3034 | impl<B>
|
3051 3035 | ::aws_smithy_http_server::request::FromRequest<
|
3052 3036 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
3053 3037 | B,
|
3054 3038 | > for crate::input::SimpleScalarPropertiesInput
|
3055 3039 | where
|
3056 3040 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3057 3041 | B: 'static,
|
3058 3042 |
|
3059 3043 | B::Data: Send,
|
3060 3044 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
3061 3045 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3062 3046 | {
|
3063 3047 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
3064 3048 | type Future = SimpleScalarPropertiesInputFuture;
|
3065 3049 |
|
3066 3050 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3067 3051 | let fut = async move {
|
3068 3052 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3069 3053 | request.headers(),
|
3070 3054 | &CONTENT_TYPE_SIMPLESCALARPROPERTIES,
|
3071 3055 | ) {
|
3072 3056 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
3073 3057 | }
|
3074 3058 | crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_request(request)
|
3075 3059 | .await
|
3076 - | .map_err(Into::into)
|
3077 3060 | };
|
3078 3061 | use ::futures_util::future::TryFutureExt;
|
3079 3062 | let fut = fut.map_err(
|
3080 3063 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
3081 3064 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3082 3065 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
3083 3066 | },
|
3084 3067 | );
|
3085 3068 | SimpleScalarPropertiesInputFuture {
|
3086 3069 | inner: Box::pin(fut),
|
3087 3070 | }
|
3088 3071 | }
|
3089 3072 | }
|
3090 3073 | impl
|
3091 3074 | ::aws_smithy_http_server::response::IntoResponse<
|
3092 3075 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
3093 3076 | > for crate::output::SimpleScalarPropertiesOutput
|
3094 3077 | {
|
3095 3078 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3096 3079 | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_response(self) {
|
3097 3080 | Ok(response) => response,
|
3098 3081 | Err(e) => {
|
3099 3082 | ::tracing::error!(error = %e, "failed to serialize response");
|
3100 3083 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
3101 3084 | }
|
3102 3085 | }
|
3103 3086 | }
|
3104 3087 | }
|
3105 3088 |
|
3106 3089 | #[allow(unreachable_code, unused_variables)]
|
@@ -3453,3436 +3513,3495 @@
3453 3436 | this.inner.as_mut().poll(cx)
|
3454 3437 | }
|
3455 3438 | }
|
3456 3439 |
|
3457 3440 | impl<B>
|
3458 3441 | ::aws_smithy_http_server::request::FromRequest<
|
3459 3442 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
3460 3443 | B,
|
3461 3444 | > for crate::input::KitchenSinkOperationInput
|
3462 3445 | where
|
3463 3446 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3464 3447 | B: 'static,
|
3465 3448 |
|
3466 3449 | B::Data: Send,
|
3467 3450 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
3468 3451 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3469 3452 | {
|
3470 3453 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
3471 3454 | type Future = KitchenSinkOperationInputFuture;
|
3472 3455 |
|
3473 3456 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3474 3457 | let fut = async move {
|
3475 3458 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3476 3459 | request.headers(),
|
3477 3460 | &CONTENT_TYPE_KITCHENSINKOPERATION,
|
3478 3461 | ) {
|
3479 3462 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
3480 3463 | }
|
3481 3464 | crate::protocol_serde::shape_kitchen_sink_operation::de_kitchen_sink_operation_http_request(request)
|
3482 3465 | .await
|
3483 - | .map_err(Into::into)
|
3484 3466 | };
|
3485 3467 | use ::futures_util::future::TryFutureExt;
|
3486 3468 | let fut = fut.map_err(
|
3487 3469 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
3488 3470 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3489 3471 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
3490 3472 | },
|
3491 3473 | );
|
3492 3474 | KitchenSinkOperationInputFuture {
|
3493 3475 | inner: Box::pin(fut),
|
3494 3476 | }
|
3495 3477 | }
|
3496 3478 | }
|
3497 3479 | impl
|
3498 3480 | ::aws_smithy_http_server::response::IntoResponse<
|
3499 3481 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
3500 3482 | > for crate::output::KitchenSinkOperationOutput
|
3501 3483 | {
|
3502 3484 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3503 3485 | match crate::protocol_serde::shape_kitchen_sink_operation::ser_kitchen_sink_operation_http_response(self) {
|
3504 3486 | Ok(response) => response,
|
3505 3487 | Err(e) => {
|
3506 3488 | ::tracing::error!(error = %e, "failed to serialize response");
|
3507 3489 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
3508 3490 | }
|
3509 3491 | }
|
3510 3492 | }
|
3511 3493 | }
|
3512 3494 | impl
|
3513 3495 | ::aws_smithy_http_server::response::IntoResponse<
|
@@ -11963,11945 +12023,12004 @@
11963 11945 | this.inner.as_mut().poll(cx)
|
11964 11946 | }
|
11965 11947 | }
|
11966 11948 |
|
11967 11949 | impl<B>
|
11968 11950 | ::aws_smithy_http_server::request::FromRequest<
|
11969 11951 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
11970 11952 | B,
|
11971 11953 | > for crate::input::EmptyOperationInput
|
11972 11954 | where
|
11973 11955 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
11974 11956 | B: 'static,
|
11975 11957 |
|
11976 11958 | B::Data: Send,
|
11977 11959 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
11978 11960 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
11979 11961 | {
|
11980 11962 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
11981 11963 | type Future = EmptyOperationInputFuture;
|
11982 11964 |
|
11983 11965 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
11984 11966 | let fut = async move {
|
11985 11967 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
11986 11968 | request.headers(),
|
11987 11969 | &CONTENT_TYPE_EMPTYOPERATION,
|
11988 11970 | ) {
|
11989 11971 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
11990 11972 | }
|
11991 11973 | crate::protocol_serde::shape_empty_operation::de_empty_operation_http_request(request)
|
11992 11974 | .await
|
11993 - | .map_err(Into::into)
|
11994 11975 | };
|
11995 11976 | use ::futures_util::future::TryFutureExt;
|
11996 11977 | let fut = fut.map_err(
|
11997 11978 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
11998 11979 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
11999 11980 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
12000 11981 | },
|
12001 11982 | );
|
12002 11983 | EmptyOperationInputFuture {
|
12003 11984 | inner: Box::pin(fut),
|
12004 11985 | }
|
12005 11986 | }
|
12006 11987 | }
|
12007 11988 | impl
|
12008 11989 | ::aws_smithy_http_server::response::IntoResponse<
|
12009 11990 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
12010 11991 | > for crate::output::EmptyOperationOutput
|
12011 11992 | {
|
12012 11993 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
12013 11994 | match crate::protocol_serde::shape_empty_operation::ser_empty_operation_http_response(self)
|
12014 11995 | {
|
12015 11996 | Ok(response) => response,
|
12016 11997 | Err(e) => {
|
12017 11998 | ::tracing::error!(error = %e, "failed to serialize response");
|
12018 11999 | ::aws_smithy_http_server::response::IntoResponse::<
|
12019 12000 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
12020 12001 | >::into_response(
|
12021 12002 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
12022 12003 | e,
|
12023 12004 | ),
|
@@ -22,22 +82,81 @@
22 22 | this.inner.as_mut().poll(cx)
|
23 23 | }
|
24 24 | }
|
25 25 |
|
26 26 | impl<B>
|
27 27 | ::aws_smithy_http_server::request::FromRequest<
|
28 28 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
29 29 | B,
|
30 30 | > for crate::input::ResponseCodeDefaultOperationInput
|
31 31 | where
|
32 32 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
33 33 | B: 'static,
|
34 34 |
|
35 35 | B::Data: Send,
|
36 36 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37 37 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
38 38 | {
|
39 39 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
40 40 | type Future = ResponseCodeDefaultOperationInputFuture;
|
41 41 |
|
42 42 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
43 43 | let fut = async move {
|
44 44 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45 45 | request.headers(),
|
46 46 | &CONTENT_TYPE_RESPONSECODEDEFAULTOPERATION,
|
47 47 | ) {
|
48 48 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
49 49 | }
|
50 50 | crate::protocol_serde::shape_response_code_default_operation::de_response_code_default_operation_http_request(request)
|
51 51 | .await
|
52 - | .map_err(Into::into)
|
53 52 | };
|
54 53 | use ::futures_util::future::TryFutureExt;
|
55 54 | let fut = fut.map_err(
|
56 55 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
57 56 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
58 57 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
59 58 | e,
|
60 59 | )
|
61 60 | },
|
62 61 | );
|
63 62 | ResponseCodeDefaultOperationInputFuture {
|
64 63 | inner: Box::pin(fut),
|
65 64 | }
|
66 65 | }
|
67 66 | }
|
68 67 | impl
|
69 68 | ::aws_smithy_http_server::response::IntoResponse<
|
70 69 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
71 70 | > for crate::output::ResponseCodeDefaultOperationOutput
|
72 71 | {
|
73 72 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
74 73 | match crate::protocol_serde::shape_response_code_default_operation::ser_response_code_default_operation_http_response(self) {
|
75 74 | Ok(response) => response,
|
76 75 | Err(e) => {
|
77 76 | ::tracing::error!(error = %e, "failed to serialize response");
|
78 77 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
79 78 | }
|
80 79 | }
|
81 80 | }
|
82 81 | }
|
@@ -122,121 +182,180 @@
122 121 | this.inner.as_mut().poll(cx)
|
123 122 | }
|
124 123 | }
|
125 124 |
|
126 125 | impl<B>
|
127 126 | ::aws_smithy_http_server::request::FromRequest<
|
128 127 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
129 128 | B,
|
130 129 | > for crate::input::ResponseCodeHttpFallbackOperationInput
|
131 130 | where
|
132 131 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
133 132 | B: 'static,
|
134 133 |
|
135 134 | B::Data: Send,
|
136 135 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
137 136 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
138 137 | {
|
139 138 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
140 139 | type Future = ResponseCodeHttpFallbackOperationInputFuture;
|
141 140 |
|
142 141 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
143 142 | let fut = async move {
|
144 143 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
145 144 | request.headers(),
|
146 145 | &CONTENT_TYPE_RESPONSECODEHTTPFALLBACKOPERATION,
|
147 146 | ) {
|
148 147 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
149 148 | }
|
150 149 | crate::protocol_serde::shape_response_code_http_fallback_operation::de_response_code_http_fallback_operation_http_request(request)
|
151 150 | .await
|
152 - | .map_err(Into::into)
|
153 151 | };
|
154 152 | use ::futures_util::future::TryFutureExt;
|
155 153 | let fut = fut.map_err(
|
156 154 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
157 155 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
158 156 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
159 157 | e,
|
160 158 | )
|
161 159 | },
|
162 160 | );
|
163 161 | ResponseCodeHttpFallbackOperationInputFuture {
|
164 162 | inner: Box::pin(fut),
|
165 163 | }
|
166 164 | }
|
167 165 | }
|
168 166 | impl
|
169 167 | ::aws_smithy_http_server::response::IntoResponse<
|
170 168 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
171 169 | > for crate::output::ResponseCodeHttpFallbackOperationOutput
|
172 170 | {
|
173 171 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
174 172 | match crate::protocol_serde::shape_response_code_http_fallback_operation::ser_response_code_http_fallback_operation_http_response(self) {
|
175 173 | Ok(response) => response,
|
176 174 | Err(e) => {
|
177 175 | ::tracing::error!(error = %e, "failed to serialize response");
|
178 176 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
179 177 | }
|
180 178 | }
|
181 179 | }
|
182 180 | }
|
@@ -227,225 +287,284 @@
227 225 | this.inner.as_mut().poll(cx)
|
228 226 | }
|
229 227 | }
|
230 228 |
|
231 229 | impl<B>
|
232 230 | ::aws_smithy_http_server::request::FromRequest<
|
233 231 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
234 232 | B,
|
235 233 | > for crate::input::ResponseCodeRequiredOperationInput
|
236 234 | where
|
237 235 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
238 236 | B: 'static,
|
239 237 |
|
240 238 | B::Data: Send,
|
241 239 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
242 240 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
243 241 | {
|
244 242 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
245 243 | type Future = ResponseCodeRequiredOperationInputFuture;
|
246 244 |
|
247 245 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
248 246 | let fut = async move {
|
249 247 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
250 248 | request.headers(),
|
251 249 | &CONTENT_TYPE_RESPONSECODEREQUIREDOPERATION,
|
252 250 | ) {
|
253 251 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
254 252 | }
|
255 253 | crate::protocol_serde::shape_response_code_required_operation::de_response_code_required_operation_http_request(request)
|
256 254 | .await
|
257 - | .map_err(Into::into)
|
258 255 | };
|
259 256 | use ::futures_util::future::TryFutureExt;
|
260 257 | let fut = fut.map_err(
|
261 258 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
262 259 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
263 260 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
264 261 | e,
|
265 262 | )
|
266 263 | },
|
267 264 | );
|
268 265 | ResponseCodeRequiredOperationInputFuture {
|
269 266 | inner: Box::pin(fut),
|
270 267 | }
|
271 268 | }
|
272 269 | }
|
273 270 | impl
|
274 271 | ::aws_smithy_http_server::response::IntoResponse<
|
275 272 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
276 273 | > for crate::output::ResponseCodeRequiredOperationOutput
|
277 274 | {
|
278 275 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
279 276 | match crate::protocol_serde::shape_response_code_required_operation::ser_response_code_required_operation_http_response(self) {
|
280 277 | Ok(response) => response,
|
281 278 | Err(e) => {
|
282 279 | ::tracing::error!(error = %e, "failed to serialize response");
|
283 280 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
284 281 | }
|
285 282 | }
|
286 283 | }
|
287 284 | }
|
@@ -332,329 +392,388 @@
332 329 | this.inner.as_mut().poll(cx)
|
333 330 | }
|
334 331 | }
|
335 332 |
|
336 333 | impl<B>
|
337 334 | ::aws_smithy_http_server::request::FromRequest<
|
338 335 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
339 336 | B,
|
340 337 | > for crate::input::RequiredHeaderCollectionOperationInput
|
341 338 | where
|
342 339 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
343 340 | B: 'static,
|
344 341 |
|
345 342 | B::Data: Send,
|
346 343 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
347 344 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
348 345 | {
|
349 346 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
350 347 | type Future = RequiredHeaderCollectionOperationInputFuture;
|
351 348 |
|
352 349 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
353 350 | let fut = async move {
|
354 351 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
355 352 | request.headers(),
|
356 353 | &CONTENT_TYPE_REQUIREDHEADERCOLLECTIONOPERATION,
|
357 354 | ) {
|
358 355 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
359 356 | }
|
360 357 | crate::protocol_serde::shape_required_header_collection_operation::de_required_header_collection_operation_http_request(request)
|
361 358 | .await
|
362 - | .map_err(Into::into)
|
363 359 | };
|
364 360 | use ::futures_util::future::TryFutureExt;
|
365 361 | let fut = fut.map_err(
|
366 362 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
367 363 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
368 364 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
369 365 | e,
|
370 366 | )
|
371 367 | },
|
372 368 | );
|
373 369 | RequiredHeaderCollectionOperationInputFuture {
|
374 370 | inner: Box::pin(fut),
|
375 371 | }
|
376 372 | }
|
377 373 | }
|
378 374 | impl
|
379 375 | ::aws_smithy_http_server::response::IntoResponse<
|
380 376 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
381 377 | > for crate::output::RequiredHeaderCollectionOperationOutput
|
382 378 | {
|
383 379 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
384 380 | match crate::protocol_serde::shape_required_header_collection_operation::ser_required_header_collection_operation_http_response(self) {
|
385 381 | Ok(response) => response,
|
386 382 | Err(e) => {
|
387 383 | ::tracing::error!(error = %e, "failed to serialize response");
|
388 384 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
389 385 | }
|
390 386 | }
|
391 387 | }
|
392 388 | }
|
@@ -432,428 +492,487 @@
432 428 | this.inner.as_mut().poll(cx)
|
433 429 | }
|
434 430 | }
|
435 431 |
|
436 432 | impl<B>
|
437 433 | ::aws_smithy_http_server::request::FromRequest<
|
438 434 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
439 435 | B,
|
440 436 | > for crate::input::RequiredInnerShapeOperationInput
|
441 437 | where
|
442 438 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
443 439 | B: 'static,
|
444 440 |
|
445 441 | B::Data: Send,
|
446 442 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
447 443 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
448 444 | {
|
449 445 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
450 446 | type Future = RequiredInnerShapeOperationInputFuture;
|
451 447 |
|
452 448 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
453 449 | let fut = async move {
|
454 450 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
455 451 | request.headers(),
|
456 452 | &CONTENT_TYPE_REQUIREDINNERSHAPEOPERATION,
|
457 453 | ) {
|
458 454 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
459 455 | }
|
460 456 | crate::protocol_serde::shape_required_inner_shape_operation::de_required_inner_shape_operation_http_request(request)
|
461 457 | .await
|
462 - | .map_err(Into::into)
|
463 458 | };
|
464 459 | use ::futures_util::future::TryFutureExt;
|
465 460 | let fut = fut.map_err(
|
466 461 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
467 462 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
468 463 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
469 464 | e,
|
470 465 | )
|
471 466 | },
|
472 467 | );
|
473 468 | RequiredInnerShapeOperationInputFuture {
|
474 469 | inner: Box::pin(fut),
|
475 470 | }
|
476 471 | }
|
477 472 | }
|
478 473 | impl
|
479 474 | ::aws_smithy_http_server::response::IntoResponse<
|
480 475 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
481 476 | > for crate::output::RequiredInnerShapeOperationOutput
|
482 477 | {
|
483 478 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
484 479 | match crate::protocol_serde::shape_required_inner_shape_operation::ser_required_inner_shape_operation_http_response(self) {
|
485 480 | Ok(response) => response,
|
486 481 | Err(e) => {
|
487 482 | ::tracing::error!(error = %e, "failed to serialize response");
|
488 483 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
489 484 | }
|
490 485 | }
|
491 486 | }
|
492 487 | }
|
@@ -532,527 +592,586 @@
532 527 | this.inner.as_mut().poll(cx)
|
533 528 | }
|
534 529 | }
|
535 530 |
|
536 531 | impl<B>
|
537 532 | ::aws_smithy_http_server::request::FromRequest<
|
538 533 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
539 534 | B,
|
540 535 | > for crate::input::TypeComplexityOperationInput
|
541 536 | where
|
542 537 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
543 538 | B: 'static,
|
544 539 |
|
545 540 | B::Data: Send,
|
546 541 | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
547 542 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
548 543 | {
|
549 544 | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
550 545 | type Future = TypeComplexityOperationInputFuture;
|
551 546 |
|
552 547 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
553 548 | let fut = async move {
|
554 549 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
555 550 | request.headers(),
|
556 551 | &CONTENT_TYPE_TYPECOMPLEXITYOPERATION,
|
557 552 | ) {
|
558 553 | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
559 554 | }
|
560 555 | crate::protocol_serde::shape_type_complexity_operation::de_type_complexity_operation_http_request(request)
|
561 556 | .await
|
562 - | .map_err(Into::into)
|
563 557 | };
|
564 558 | use ::futures_util::future::TryFutureExt;
|
565 559 | let fut = fut.map_err(
|
566 560 | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
567 561 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
568 562 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
569 563 | e,
|
570 564 | )
|
571 565 | },
|
572 566 | );
|
573 567 | TypeComplexityOperationInputFuture {
|
574 568 | inner: Box::pin(fut),
|
575 569 | }
|
576 570 | }
|
577 571 | }
|
578 572 | impl
|
579 573 | ::aws_smithy_http_server::response::IntoResponse<
|
580 574 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
581 575 | > for crate::output::TypeComplexityOperationOutput
|
582 576 | {
|
583 577 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
584 578 | match crate::protocol_serde::shape_type_complexity_operation::ser_type_complexity_operation_http_response(self) {
|
585 579 | Ok(response) => response,
|
586 580 | Err(e) => {
|
587 581 | ::tracing::error!(error = %e, "failed to serialize response");
|
588 582 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
589 583 | }
|
590 584 | }
|
591 585 | }
|
592 586 | }
|
@@ -24,24 +86,84 @@
24 24 | ) -> std::task::Poll<Self::Output> {
|
25 25 | let this = self.project();
|
26 26 | this.inner.as_mut().poll(cx)
|
27 27 | }
|
28 28 | }
|
29 29 |
|
30 30 | impl<B>
|
31 31 | ::aws_smithy_http_server::request::FromRequest<
|
32 32 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
33 33 | B,
|
34 34 | > for crate::input::DoNothingInput
|
35 35 | where
|
36 36 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
37 37 | B: 'static,
|
38 38 |
|
39 39 | B::Data: Send,
|
40 40 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
41 41 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
42 42 | {
|
43 43 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
44 44 | type Future = DoNothingInputFuture;
|
45 45 |
|
46 46 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
47 47 | let fut = async move {
|
48 48 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
49 49 | request.headers(),
|
50 50 | &CONTENT_TYPE_DONOTHING,
|
51 51 | ) {
|
52 52 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
53 53 | }
|
54 - | crate::protocol_serde::shape_do_nothing::de_do_nothing_http_request(request)
|
55 - | .await
|
56 - | .map_err(Into::into)
|
54 + | crate::protocol_serde::shape_do_nothing::de_do_nothing_http_request(request).await
|
57 55 | };
|
58 56 | use ::futures_util::future::TryFutureExt;
|
59 57 | let fut = fut.map_err(
|
60 58 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
61 59 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
62 60 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
63 61 | },
|
64 62 | );
|
65 63 | DoNothingInputFuture {
|
66 64 | inner: Box::pin(fut),
|
67 65 | }
|
68 66 | }
|
69 67 | }
|
70 68 | impl
|
71 69 | ::aws_smithy_http_server::response::IntoResponse<
|
72 70 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
73 71 | > for crate::output::DoNothingOutput
|
74 72 | {
|
75 73 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
76 74 | match crate::protocol_serde::shape_do_nothing::ser_do_nothing_http_response(self) {
|
77 75 | Ok(response) => response,
|
78 76 | Err(e) => {
|
79 77 | ::tracing::error!(error = %e, "failed to serialize response");
|
80 78 | ::aws_smithy_http_server::response::IntoResponse::<
|
81 79 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
82 80 | >::into_response(
|
83 81 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
84 82 | e,
|
85 83 | ),
|
86 84 | )
|
@@ -24,24 +86,84 @@
24 24 | ) -> std::task::Poll<Self::Output> {
|
25 25 | let this = self.project();
|
26 26 | this.inner.as_mut().poll(cx)
|
27 27 | }
|
28 28 | }
|
29 29 |
|
30 30 | impl<B>
|
31 31 | ::aws_smithy_http_server::request::FromRequest<
|
32 32 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
33 33 | B,
|
34 34 | > for crate::input::RpcEchoInput
|
35 35 | where
|
36 36 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
37 37 | B: 'static,
|
38 38 |
|
39 39 | B::Data: Send,
|
40 40 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
41 41 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
42 42 | {
|
43 43 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
44 44 | type Future = RpcEchoInputFuture;
|
45 45 |
|
46 46 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
47 47 | let fut = async move {
|
48 48 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
49 49 | request.headers(),
|
50 50 | &CONTENT_TYPE_RPCECHO,
|
51 51 | ) {
|
52 52 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
53 53 | }
|
54 - | crate::protocol_serde::shape_rpc_echo::de_rpc_echo_http_request(request)
|
55 - | .await
|
56 - | .map_err(Into::into)
|
54 + | crate::protocol_serde::shape_rpc_echo::de_rpc_echo_http_request(request).await
|
57 55 | };
|
58 56 | use ::futures_util::future::TryFutureExt;
|
59 57 | let fut = fut.map_err(
|
60 58 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
61 59 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
62 60 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
63 61 | },
|
64 62 | );
|
65 63 | RpcEchoInputFuture {
|
66 64 | inner: Box::pin(fut),
|
67 65 | }
|
68 66 | }
|
69 67 | }
|
70 68 | impl
|
71 69 | ::aws_smithy_http_server::response::IntoResponse<
|
72 70 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
73 71 | > for crate::output::RpcEchoOutput
|
74 72 | {
|
75 73 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
76 74 | match crate::protocol_serde::shape_rpc_echo::ser_rpc_echo_http_response(self) {
|
77 75 | Ok(response) => response,
|
78 76 | Err(e) => {
|
79 77 | ::tracing::error!(error = %e, "failed to serialize response");
|
80 78 | ::aws_smithy_http_server::response::IntoResponse::<
|
81 79 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
82 80 | >::into_response(
|
83 81 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
84 82 | e,
|
85 83 | ),
|
86 84 | )
|
@@ -140,138 +202,198 @@
140 138 | ) -> std::task::Poll<Self::Output> {
|
141 139 | let this = self.project();
|
142 140 | this.inner.as_mut().poll(cx)
|
143 141 | }
|
144 142 | }
|
145 143 |
|
146 144 | impl<B>
|
147 145 | ::aws_smithy_http_server::request::FromRequest<
|
148 146 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
149 147 | B,
|
150 148 | > for crate::input::MatchInput
|
151 149 | where
|
152 150 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
153 151 | B: 'static,
|
154 152 |
|
155 153 | B::Data: Send,
|
156 154 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
157 155 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
158 156 | {
|
159 157 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
160 158 | type Future = MatchInputFuture;
|
161 159 |
|
162 160 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
163 161 | let fut = async move {
|
164 162 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
165 163 | request.headers(),
|
166 164 | &CONTENT_TYPE_MATCH,
|
167 165 | ) {
|
168 166 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
169 167 | }
|
170 - | crate::protocol_serde::shape_match::de_match_http_request(request)
|
171 - | .await
|
172 - | .map_err(Into::into)
|
168 + | crate::protocol_serde::shape_match::de_match_http_request(request).await
|
173 169 | };
|
174 170 | use ::futures_util::future::TryFutureExt;
|
175 171 | let fut = fut.map_err(
|
176 172 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
177 173 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
178 174 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
179 175 | },
|
180 176 | );
|
181 177 | MatchInputFuture {
|
182 178 | inner: Box::pin(fut),
|
183 179 | }
|
184 180 | }
|
185 181 | }
|
186 182 | impl
|
187 183 | ::aws_smithy_http_server::response::IntoResponse<
|
188 184 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
189 185 | > for crate::output::MatchOutput
|
190 186 | {
|
191 187 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
192 188 | match crate::protocol_serde::shape_match::ser_match_http_response(self) {
|
193 189 | Ok(response) => response,
|
194 190 | Err(e) => {
|
195 191 | ::tracing::error!(error = %e, "failed to serialize response");
|
196 192 | ::aws_smithy_http_server::response::IntoResponse::<
|
197 193 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
198 194 | >::into_response(
|
199 195 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
200 196 | e,
|
201 197 | ),
|
202 198 | )
|
@@ -256,252 +318,312 @@
256 252 | ) -> std::task::Poll<Self::Output> {
|
257 253 | let this = self.project();
|
258 254 | this.inner.as_mut().poll(cx)
|
259 255 | }
|
260 256 | }
|
261 257 |
|
262 258 | impl<B>
|
263 259 | ::aws_smithy_http_server::request::FromRequest<
|
264 260 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
265 261 | B,
|
266 262 | > for crate::input::OptionInput
|
267 263 | where
|
268 264 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
269 265 | B: 'static,
|
270 266 |
|
271 267 | B::Data: Send,
|
272 268 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
273 269 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
274 270 | {
|
275 271 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
276 272 | type Future = OptionInputFuture;
|
277 273 |
|
278 274 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
279 275 | let fut = async move {
|
280 276 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
281 277 | request.headers(),
|
282 278 | &CONTENT_TYPE_OPTION,
|
283 279 | ) {
|
284 280 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
285 281 | }
|
286 - | crate::protocol_serde::shape_option::de_option_http_request(request)
|
287 - | .await
|
288 - | .map_err(Into::into)
|
282 + | crate::protocol_serde::shape_option::de_option_http_request(request).await
|
289 283 | };
|
290 284 | use ::futures_util::future::TryFutureExt;
|
291 285 | let fut = fut.map_err(
|
292 286 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
293 287 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
294 288 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
295 289 | },
|
296 290 | );
|
297 291 | OptionInputFuture {
|
298 292 | inner: Box::pin(fut),
|
299 293 | }
|
300 294 | }
|
301 295 | }
|
302 296 | impl
|
303 297 | ::aws_smithy_http_server::response::IntoResponse<
|
304 298 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
305 299 | > for crate::output::OptionOutput
|
306 300 | {
|
307 301 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
308 302 | match crate::protocol_serde::shape_option::ser_option_http_response(self) {
|
309 303 | Ok(response) => response,
|
310 304 | Err(e) => {
|
311 305 | ::tracing::error!(error = %e, "failed to serialize response");
|
312 306 | ::aws_smithy_http_server::response::IntoResponse::<
|
313 307 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
314 308 | >::into_response(
|
315 309 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
316 310 | e,
|
317 311 | ),
|
318 312 | )
|
@@ -346,340 +408,400 @@
346 340 | ) -> std::task::Poll<Self::Output> {
|
347 341 | let this = self.project();
|
348 342 | this.inner.as_mut().poll(cx)
|
349 343 | }
|
350 344 | }
|
351 345 |
|
352 346 | impl<B>
|
353 347 | ::aws_smithy_http_server::request::FromRequest<
|
354 348 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
355 349 | B,
|
356 350 | > for crate::input::ResultInput
|
357 351 | where
|
358 352 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
359 353 | B: 'static,
|
360 354 |
|
361 355 | B::Data: Send,
|
362 356 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
363 357 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
364 358 | {
|
365 359 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
366 360 | type Future = ResultInputFuture;
|
367 361 |
|
368 362 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
369 363 | let fut = async move {
|
370 364 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
371 365 | request.headers(),
|
372 366 | &CONTENT_TYPE_RESULT,
|
373 367 | ) {
|
374 368 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
375 369 | }
|
376 - | crate::protocol_serde::shape_result::de_result_http_request(request)
|
377 - | .await
|
378 - | .map_err(Into::into)
|
370 + | crate::protocol_serde::shape_result::de_result_http_request(request).await
|
379 371 | };
|
380 372 | use ::futures_util::future::TryFutureExt;
|
381 373 | let fut = fut.map_err(
|
382 374 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
383 375 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
384 376 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
385 377 | },
|
386 378 | );
|
387 379 | ResultInputFuture {
|
388 380 | inner: Box::pin(fut),
|
389 381 | }
|
390 382 | }
|
391 383 | }
|
392 384 | impl
|
393 385 | ::aws_smithy_http_server::response::IntoResponse<
|
394 386 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
395 387 | > for crate::output::ResultOutput
|
396 388 | {
|
397 389 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
398 390 | match crate::protocol_serde::shape_result::ser_result_http_response(self) {
|
399 391 | Ok(response) => response,
|
400 392 | Err(e) => {
|
401 393 | ::tracing::error!(error = %e, "failed to serialize response");
|
402 394 | ::aws_smithy_http_server::response::IntoResponse::<
|
403 395 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
404 396 | >::into_response(
|
405 397 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
406 398 | e,
|
407 399 | ),
|
408 400 | )
|
@@ -439,431 +499,490 @@
439 431 | this.inner.as_mut().poll(cx)
|
440 432 | }
|
441 433 | }
|
442 434 |
|
443 435 | impl<B>
|
444 436 | ::aws_smithy_http_server::request::FromRequest<
|
445 437 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
446 438 | B,
|
447 439 | > for crate::input::ErrCollisionsInput
|
448 440 | where
|
449 441 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
450 442 | B: 'static,
|
451 443 |
|
452 444 | B::Data: Send,
|
453 445 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
454 446 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
455 447 | {
|
456 448 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
457 449 | type Future = ErrCollisionsInputFuture;
|
458 450 |
|
459 451 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
460 452 | let fut = async move {
|
461 453 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
462 454 | request.headers(),
|
463 455 | &CONTENT_TYPE_ERRCOLLISIONS,
|
464 456 | ) {
|
465 457 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
466 458 | }
|
467 459 | crate::protocol_serde::shape_err_collisions::de_err_collisions_http_request(request)
|
468 460 | .await
|
469 - | .map_err(Into::into)
|
470 461 | };
|
471 462 | use ::futures_util::future::TryFutureExt;
|
472 463 | let fut = fut.map_err(
|
473 464 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
474 465 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
475 466 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
476 467 | },
|
477 468 | );
|
478 469 | ErrCollisionsInputFuture {
|
479 470 | inner: Box::pin(fut),
|
480 471 | }
|
481 472 | }
|
482 473 | }
|
483 474 | impl
|
484 475 | ::aws_smithy_http_server::response::IntoResponse<
|
485 476 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
486 477 | > for crate::output::ErrCollisionsOutput
|
487 478 | {
|
488 479 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
489 480 | match crate::protocol_serde::shape_err_collisions::ser_err_collisions_http_response(self) {
|
490 481 | Ok(response) => response,
|
491 482 | Err(e) => {
|
492 483 | ::tracing::error!(error = %e, "failed to serialize response");
|
493 484 | ::aws_smithy_http_server::response::IntoResponse::<
|
494 485 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
495 486 | >::into_response(
|
496 487 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(
|
497 488 | e,
|
498 489 | ),
|
499 490 | )
|
@@ -556,547 +616,606 @@
556 547 | this.inner.as_mut().poll(cx)
|
557 548 | }
|
558 549 | }
|
559 550 |
|
560 551 | impl<B>
|
561 552 | ::aws_smithy_http_server::request::FromRequest<
|
562 553 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
563 554 | B,
|
564 555 | > for crate::input::StructureNamePunningInput
|
565 556 | where
|
566 557 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
567 558 | B: 'static,
|
568 559 |
|
569 560 | B::Data: Send,
|
570 561 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
571 562 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
572 563 | {
|
573 564 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
574 565 | type Future = StructureNamePunningInputFuture;
|
575 566 |
|
576 567 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
577 568 | let fut = async move {
|
578 569 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
579 570 | request.headers(),
|
580 571 | &CONTENT_TYPE_STRUCTURENAMEPUNNING,
|
581 572 | ) {
|
582 573 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
583 574 | }
|
584 575 | crate::protocol_serde::shape_structure_name_punning::de_structure_name_punning_http_request(request)
|
585 576 | .await
|
586 - | .map_err(Into::into)
|
587 577 | };
|
588 578 | use ::futures_util::future::TryFutureExt;
|
589 579 | let fut = fut.map_err(
|
590 580 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
591 581 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
592 582 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
593 583 | },
|
594 584 | );
|
595 585 | StructureNamePunningInputFuture {
|
596 586 | inner: Box::pin(fut),
|
597 587 | }
|
598 588 | }
|
599 589 | }
|
600 590 | impl
|
601 591 | ::aws_smithy_http_server::response::IntoResponse<
|
602 592 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
603 593 | > for crate::output::StructureNamePunningOutput
|
604 594 | {
|
605 595 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
606 596 | match crate::protocol_serde::shape_structure_name_punning::ser_structure_name_punning_http_response(self) {
|
607 597 | Ok(response) => response,
|
608 598 | Err(e) => {
|
609 599 | ::tracing::error!(error = %e, "failed to serialize response");
|
610 600 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
611 601 | }
|
612 602 | }
|
613 603 | }
|
614 604 | }
|
615 605 |
|
616 606 | #[allow(unreachable_code, unused_variables)]
|
@@ -693,683 +753,742 @@
693 683 | this.inner.as_mut().poll(cx)
|
694 684 | }
|
695 685 | }
|
696 686 |
|
697 687 | impl<B>
|
698 688 | ::aws_smithy_http_server::request::FromRequest<
|
699 689 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
700 690 | B,
|
701 691 | > for crate::input::ReservedWordsAsMembersInput
|
702 692 | where
|
703 693 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
704 694 | B: 'static,
|
705 695 |
|
706 696 | B::Data: Send,
|
707 697 | ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection:
|
708 698 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
709 699 | {
|
710 700 | type Rejection = ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError;
|
711 701 | type Future = ReservedWordsAsMembersInputFuture;
|
712 702 |
|
713 703 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
714 704 | let fut = async move {
|
715 705 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
716 706 | request.headers(),
|
717 707 | &CONTENT_TYPE_RESERVEDWORDSASMEMBERS,
|
718 708 | ) {
|
719 709 | return Err(::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection::NotAcceptable);
|
720 710 | }
|
721 711 | crate::protocol_serde::shape_reserved_words_as_members::de_reserved_words_as_members_http_request(request)
|
722 712 | .await
|
723 - | .map_err(Into::into)
|
724 713 | };
|
725 714 | use ::futures_util::future::TryFutureExt;
|
726 715 | let fut = fut.map_err(
|
727 716 | |e: ::aws_smithy_http_server::protocol::aws_json::rejection::RequestRejection| {
|
728 717 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
729 718 | ::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e)
|
730 719 | },
|
731 720 | );
|
732 721 | ReservedWordsAsMembersInputFuture {
|
733 722 | inner: Box::pin(fut),
|
734 723 | }
|
735 724 | }
|
736 725 | }
|
737 726 | impl
|
738 727 | ::aws_smithy_http_server::response::IntoResponse<
|
739 728 | ::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1,
|
740 729 | > for crate::output::ReservedWordsAsMembersOutput
|
741 730 | {
|
742 731 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
743 732 | match crate::protocol_serde::shape_reserved_words_as_members::ser_reserved_words_as_members_http_response(self) {
|
744 733 | Ok(response) => response,
|
745 734 | Err(e) => {
|
746 735 | ::tracing::error!(error = %e, "failed to serialize response");
|
747 736 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::aws_json_11::AwsJson1_1>::into_response(::aws_smithy_http_server::protocol::aws_json::runtime_error::RuntimeError::from(e))
|
748 737 | }
|
749 738 | }
|
750 739 | }
|
751 740 | }
|
752 741 | impl
|
753 742 | ::aws_smithy_http_server::response::IntoResponse<
|