rev. fd67870c8763076fc6895510f5e759abfe0cb35c (ignoring whitespace)
@@ -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::rpc_v2_cbor::RpcV2Cbor,
|
33 33 | B,
|
34 34 | > for crate::input::Float16Input
|
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::rpc_v2_cbor::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::rpc_v2_cbor::runtime_error::RuntimeError;
|
44 44 | type Future = Float16InputFuture;
|
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_FLOAT16,
|
51 51 | ) {
|
52 52 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
53 53 | }
|
54 - | crate::protocol_serde::shape_float16::de_float16_http_request(request)
|
55 - | .await
|
56 - | .map_err(Into::into)
|
54 + | crate::protocol_serde::shape_float16::de_float16_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::rpc_v2_cbor::rejection::RequestRejection| {
|
61 59 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
62 60 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
63 61 | e,
|
64 62 | )
|
65 63 | },
|
66 64 | );
|
67 65 | Float16InputFuture {
|
68 66 | inner: Box::pin(fut),
|
69 67 | }
|
70 68 | }
|
71 69 | }
|
72 70 | impl
|
73 71 | ::aws_smithy_http_server::response::IntoResponse<
|
74 72 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
75 73 | > for crate::output::Float16Output
|
76 74 | {
|
77 75 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
78 76 | match crate::protocol_serde::shape_float16::ser_float16_http_response(self) {
|
79 77 | Ok(response) => response,
|
80 78 | Err(e) => {
|
81 79 | ::tracing::error!(error = %e, "failed to serialize response");
|
82 80 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
83 81 | }
|
84 82 | }
|
85 83 | }
|
86 84 | }
|
@@ -113,111 +173,170 @@
113 111 | this.inner.as_mut().poll(cx)
|
114 112 | }
|
115 113 | }
|
116 114 |
|
117 115 | impl<B>
|
118 116 | ::aws_smithy_http_server::request::FromRequest<
|
119 117 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
120 118 | B,
|
121 119 | > for crate::input::SparseNullsOperationInput
|
122 120 | where
|
123 121 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
124 122 | B: 'static,
|
125 123 |
|
126 124 | B::Data: Send,
|
127 125 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
128 126 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
129 127 | {
|
130 128 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
131 129 | type Future = SparseNullsOperationInputFuture;
|
132 130 |
|
133 131 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
134 132 | let fut = async move {
|
135 133 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
136 134 | request.headers(),
|
137 135 | &CONTENT_TYPE_SPARSENULLSOPERATION,
|
138 136 | ) {
|
139 137 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
140 138 | }
|
141 139 | crate::protocol_serde::shape_sparse_nulls_operation::de_sparse_nulls_operation_http_request(request)
|
142 140 | .await
|
143 - | .map_err(Into::into)
|
144 141 | };
|
145 142 | use ::futures_util::future::TryFutureExt;
|
146 143 | let fut = fut.map_err(
|
147 144 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
148 145 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
149 146 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
150 147 | e,
|
151 148 | )
|
152 149 | },
|
153 150 | );
|
154 151 | SparseNullsOperationInputFuture {
|
155 152 | inner: Box::pin(fut),
|
156 153 | }
|
157 154 | }
|
158 155 | }
|
159 156 | impl
|
160 157 | ::aws_smithy_http_server::response::IntoResponse<
|
161 158 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
162 159 | > for crate::output::SparseNullsOperationOutput
|
163 160 | {
|
164 161 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
165 162 | match crate::protocol_serde::shape_sparse_nulls_operation::ser_sparse_nulls_operation_http_response(self) {
|
166 163 | Ok(response) => response,
|
167 164 | Err(e) => {
|
168 165 | ::tracing::error!(error = %e, "failed to serialize response");
|
169 166 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
170 167 | }
|
171 168 | }
|
172 169 | }
|
173 170 | }
|
@@ -387,384 +447,443 @@
387 384 | this.inner.as_mut().poll(cx)
|
388 385 | }
|
389 386 | }
|
390 387 |
|
391 388 | impl<B>
|
392 389 | ::aws_smithy_http_server::request::FromRequest<
|
393 390 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
394 391 | B,
|
395 392 | > for crate::input::OperationWithDefaultsInput
|
396 393 | where
|
397 394 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
398 395 | B: 'static,
|
399 396 |
|
400 397 | B::Data: Send,
|
401 398 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
402 399 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
403 400 | {
|
404 401 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
405 402 | type Future = OperationWithDefaultsInputFuture;
|
406 403 |
|
407 404 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
408 405 | let fut = async move {
|
409 406 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
410 407 | request.headers(),
|
411 408 | &CONTENT_TYPE_OPERATIONWITHDEFAULTS,
|
412 409 | ) {
|
413 410 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
414 411 | }
|
415 412 | crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_request(request)
|
416 413 | .await
|
417 - | .map_err(Into::into)
|
418 414 | };
|
419 415 | use ::futures_util::future::TryFutureExt;
|
420 416 | let fut = fut.map_err(
|
421 417 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
422 418 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
423 419 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
424 420 | e,
|
425 421 | )
|
426 422 | },
|
427 423 | );
|
428 424 | OperationWithDefaultsInputFuture {
|
429 425 | inner: Box::pin(fut),
|
430 426 | }
|
431 427 | }
|
432 428 | }
|
433 429 | impl
|
434 430 | ::aws_smithy_http_server::response::IntoResponse<
|
435 431 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
436 432 | > for crate::output::OperationWithDefaultsOutput
|
437 433 | {
|
438 434 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
439 435 | match crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_http_response(self) {
|
440 436 | Ok(response) => response,
|
441 437 | Err(e) => {
|
442 438 | ::tracing::error!(error = %e, "failed to serialize response");
|
443 439 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
444 440 | }
|
445 441 | }
|
446 442 | }
|
447 443 | }
|
@@ -664,660 +724,719 @@
664 660 | }
|
665 661 |
|
666 662 | impl<B>
|
667 663 | ::aws_smithy_http_server::request::FromRequest<
|
668 664 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
669 665 | B,
|
670 666 | > for crate::input::FractionalSecondsInput
|
671 667 | where
|
672 668 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
673 669 | B: 'static,
|
674 670 |
|
675 671 | B::Data: Send,
|
676 672 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
677 673 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
678 674 | {
|
679 675 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
680 676 | type Future = FractionalSecondsInputFuture;
|
681 677 |
|
682 678 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
683 679 | let fut = async move {
|
684 680 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
685 681 | request.headers(),
|
686 682 | &CONTENT_TYPE_FRACTIONALSECONDS,
|
687 683 | ) {
|
688 684 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
689 685 | }
|
690 686 | crate::protocol_serde::shape_fractional_seconds::de_fractional_seconds_http_request(
|
691 687 | request,
|
692 688 | )
|
693 689 | .await
|
694 - | .map_err(Into::into)
|
695 690 | };
|
696 691 | use ::futures_util::future::TryFutureExt;
|
697 692 | let fut = fut.map_err(
|
698 693 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
699 694 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
700 695 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
701 696 | e,
|
702 697 | )
|
703 698 | },
|
704 699 | );
|
705 700 | FractionalSecondsInputFuture {
|
706 701 | inner: Box::pin(fut),
|
707 702 | }
|
708 703 | }
|
709 704 | }
|
710 705 | impl
|
711 706 | ::aws_smithy_http_server::response::IntoResponse<
|
712 707 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
713 708 | > for crate::output::FractionalSecondsOutput
|
714 709 | {
|
715 710 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
716 711 | match crate::protocol_serde::shape_fractional_seconds::ser_fractional_seconds_http_response(
|
717 712 | self,
|
718 713 | ) {
|
719 714 | Ok(response) => response,
|
720 715 | Err(e) => {
|
721 716 | ::tracing::error!(error = %e, "failed to serialize response");
|
722 717 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
723 718 | }
|
724 719 | }
|
@@ -755,750 +815,809 @@
755 750 | }
|
756 751 |
|
757 752 | impl<B>
|
758 753 | ::aws_smithy_http_server::request::FromRequest<
|
759 754 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
760 755 | B,
|
761 756 | > for crate::input::GreetingWithErrorsInput
|
762 757 | where
|
763 758 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
764 759 | B: 'static,
|
765 760 |
|
766 761 | B::Data: Send,
|
767 762 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
768 763 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
769 764 | {
|
770 765 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
771 766 | type Future = GreetingWithErrorsInputFuture;
|
772 767 |
|
773 768 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
774 769 | let fut = async move {
|
775 770 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
776 771 | request.headers(),
|
777 772 | &CONTENT_TYPE_GREETINGWITHERRORS,
|
778 773 | ) {
|
779 774 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
780 775 | }
|
781 776 | crate::protocol_serde::shape_greeting_with_errors::de_greeting_with_errors_http_request(
|
782 777 | request,
|
783 778 | )
|
784 779 | .await
|
785 - | .map_err(Into::into)
|
786 780 | };
|
787 781 | use ::futures_util::future::TryFutureExt;
|
788 782 | let fut = fut.map_err(
|
789 783 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
790 784 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
791 785 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
792 786 | e,
|
793 787 | )
|
794 788 | },
|
795 789 | );
|
796 790 | GreetingWithErrorsInputFuture {
|
797 791 | inner: Box::pin(fut),
|
798 792 | }
|
799 793 | }
|
800 794 | }
|
801 795 | impl
|
802 796 | ::aws_smithy_http_server::response::IntoResponse<
|
803 797 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
804 798 | > for crate::output::GreetingWithErrorsOutput
|
805 799 | {
|
806 800 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
807 801 | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_response(self) {
|
808 802 | Ok(response) => response,
|
809 803 | Err(e) => {
|
810 804 | ::tracing::error!(error = %e, "failed to serialize response");
|
811 805 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
812 806 | }
|
813 807 | }
|
814 808 | }
|
815 809 | }
|
@@ -966,960 +1026,1019 @@
966 960 | this.inner.as_mut().poll(cx)
|
967 961 | }
|
968 962 | }
|
969 963 |
|
970 964 | impl<B>
|
971 965 | ::aws_smithy_http_server::request::FromRequest<
|
972 966 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
973 967 | B,
|
974 968 | > for crate::input::RecursiveShapesInput
|
975 969 | where
|
976 970 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
977 971 | B: 'static,
|
978 972 |
|
979 973 | B::Data: Send,
|
980 974 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
981 975 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
982 976 | {
|
983 977 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
984 978 | type Future = RecursiveShapesInputFuture;
|
985 979 |
|
986 980 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
987 981 | let fut = async move {
|
988 982 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
989 983 | request.headers(),
|
990 984 | &CONTENT_TYPE_RECURSIVESHAPES,
|
991 985 | ) {
|
992 986 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
993 987 | }
|
994 988 | crate::protocol_serde::shape_recursive_shapes::de_recursive_shapes_http_request(request)
|
995 989 | .await
|
996 - | .map_err(Into::into)
|
997 990 | };
|
998 991 | use ::futures_util::future::TryFutureExt;
|
999 992 | let fut = fut.map_err(
|
1000 993 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
1001 994 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1002 995 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
1003 996 | e,
|
1004 997 | )
|
1005 998 | },
|
1006 999 | );
|
1007 1000 | RecursiveShapesInputFuture {
|
1008 1001 | inner: Box::pin(fut),
|
1009 1002 | }
|
1010 1003 | }
|
1011 1004 | }
|
1012 1005 | impl
|
1013 1006 | ::aws_smithy_http_server::response::IntoResponse<
|
1014 1007 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
1015 1008 | > for crate::output::RecursiveShapesOutput
|
1016 1009 | {
|
1017 1010 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1018 1011 | match crate::protocol_serde::shape_recursive_shapes::ser_recursive_shapes_http_response(
|
1019 1012 | self,
|
1020 1013 | ) {
|
1021 1014 | Ok(response) => response,
|
1022 1015 | Err(e) => {
|
1023 1016 | ::tracing::error!(error = %e, "failed to serialize response");
|
1024 1017 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
1025 1018 | }
|
1026 1019 | }
|
@@ -1210,1203 +1270,1262 @@
1210 1203 | this.inner.as_mut().poll(cx)
|
1211 1204 | }
|
1212 1205 | }
|
1213 1206 |
|
1214 1207 | impl<B>
|
1215 1208 | ::aws_smithy_http_server::request::FromRequest<
|
1216 1209 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
1217 1210 | B,
|
1218 1211 | > for crate::input::RpcV2CborSparseMapsInput
|
1219 1212 | where
|
1220 1213 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1221 1214 | B: 'static,
|
1222 1215 |
|
1223 1216 | B::Data: Send,
|
1224 1217 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
1225 1218 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1226 1219 | {
|
1227 1220 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
1228 1221 | type Future = RpcV2CborSparseMapsInputFuture;
|
1229 1222 |
|
1230 1223 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1231 1224 | let fut = async move {
|
1232 1225 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1233 1226 | request.headers(),
|
1234 1227 | &CONTENT_TYPE_RPCV2CBORSPARSEMAPS,
|
1235 1228 | ) {
|
1236 1229 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
1237 1230 | }
|
1238 1231 | crate::protocol_serde::shape_rpc_v2_cbor_sparse_maps::de_rpc_v2_cbor_sparse_maps_http_request(request)
|
1239 1232 | .await
|
1240 - | .map_err(Into::into)
|
1241 1233 | };
|
1242 1234 | use ::futures_util::future::TryFutureExt;
|
1243 1235 | let fut = fut.map_err(
|
1244 1236 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
1245 1237 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1246 1238 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
1247 1239 | e,
|
1248 1240 | )
|
1249 1241 | },
|
1250 1242 | );
|
1251 1243 | RpcV2CborSparseMapsInputFuture {
|
1252 1244 | inner: Box::pin(fut),
|
1253 1245 | }
|
1254 1246 | }
|
1255 1247 | }
|
1256 1248 | impl
|
1257 1249 | ::aws_smithy_http_server::response::IntoResponse<
|
1258 1250 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
1259 1251 | > for crate::output::RpcV2CborSparseMapsOutput
|
1260 1252 | {
|
1261 1253 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1262 1254 | match crate::protocol_serde::shape_rpc_v2_cbor_sparse_maps::ser_rpc_v2_cbor_sparse_maps_http_response(self) {
|
1263 1255 | Ok(response) => response,
|
1264 1256 | Err(e) => {
|
1265 1257 | ::tracing::error!(error = %e, "failed to serialize response");
|
1266 1258 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
1267 1259 | }
|
1268 1260 | }
|
1269 1261 | }
|
1270 1262 | }
|
@@ -1939,1931 +1999,1990 @@
1939 1931 | this.inner.as_mut().poll(cx)
|
1940 1932 | }
|
1941 1933 | }
|
1942 1934 |
|
1943 1935 | impl<B>
|
1944 1936 | ::aws_smithy_http_server::request::FromRequest<
|
1945 1937 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
1946 1938 | B,
|
1947 1939 | > for crate::input::RpcV2CborDenseMapsInput
|
1948 1940 | where
|
1949 1941 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1950 1942 | B: 'static,
|
1951 1943 |
|
1952 1944 | B::Data: Send,
|
1953 1945 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
1954 1946 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1955 1947 | {
|
1956 1948 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
1957 1949 | type Future = RpcV2CborDenseMapsInputFuture;
|
1958 1950 |
|
1959 1951 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1960 1952 | let fut = async move {
|
1961 1953 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1962 1954 | request.headers(),
|
1963 1955 | &CONTENT_TYPE_RPCV2CBORDENSEMAPS,
|
1964 1956 | ) {
|
1965 1957 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
1966 1958 | }
|
1967 1959 | crate::protocol_serde::shape_rpc_v2_cbor_dense_maps::de_rpc_v2_cbor_dense_maps_http_request(request)
|
1968 1960 | .await
|
1969 - | .map_err(Into::into)
|
1970 1961 | };
|
1971 1962 | use ::futures_util::future::TryFutureExt;
|
1972 1963 | let fut = fut.map_err(
|
1973 1964 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
1974 1965 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1975 1966 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
1976 1967 | e,
|
1977 1968 | )
|
1978 1969 | },
|
1979 1970 | );
|
1980 1971 | RpcV2CborDenseMapsInputFuture {
|
1981 1972 | inner: Box::pin(fut),
|
1982 1973 | }
|
1983 1974 | }
|
1984 1975 | }
|
1985 1976 | impl
|
1986 1977 | ::aws_smithy_http_server::response::IntoResponse<
|
1987 1978 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
1988 1979 | > for crate::output::RpcV2CborDenseMapsOutput
|
1989 1980 | {
|
1990 1981 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1991 1982 | match crate::protocol_serde::shape_rpc_v2_cbor_dense_maps::ser_rpc_v2_cbor_dense_maps_http_response(self) {
|
1992 1983 | Ok(response) => response,
|
1993 1984 | Err(e) => {
|
1994 1985 | ::tracing::error!(error = %e, "failed to serialize response");
|
1995 1986 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
1996 1987 | }
|
1997 1988 | }
|
1998 1989 | }
|
1999 1990 | }
|
@@ -2408,2399 +2468,2458 @@
2408 2399 | }
|
2409 2400 |
|
2410 2401 | impl<B>
|
2411 2402 | ::aws_smithy_http_server::request::FromRequest<
|
2412 2403 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
2413 2404 | B,
|
2414 2405 | > for crate::input::RpcV2CborListsInput
|
2415 2406 | where
|
2416 2407 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
2417 2408 | B: 'static,
|
2418 2409 |
|
2419 2410 | B::Data: Send,
|
2420 2411 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
2421 2412 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
2422 2413 | {
|
2423 2414 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
2424 2415 | type Future = RpcV2CborListsInputFuture;
|
2425 2416 |
|
2426 2417 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2427 2418 | let fut = async move {
|
2428 2419 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
2429 2420 | request.headers(),
|
2430 2421 | &CONTENT_TYPE_RPCV2CBORLISTS,
|
2431 2422 | ) {
|
2432 2423 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
2433 2424 | }
|
2434 2425 | crate::protocol_serde::shape_rpc_v2_cbor_lists::de_rpc_v2_cbor_lists_http_request(
|
2435 2426 | request,
|
2436 2427 | )
|
2437 2428 | .await
|
2438 - | .map_err(Into::into)
|
2439 2429 | };
|
2440 2430 | use ::futures_util::future::TryFutureExt;
|
2441 2431 | let fut = fut.map_err(
|
2442 2432 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
2443 2433 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2444 2434 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
2445 2435 | e,
|
2446 2436 | )
|
2447 2437 | },
|
2448 2438 | );
|
2449 2439 | RpcV2CborListsInputFuture {
|
2450 2440 | inner: Box::pin(fut),
|
2451 2441 | }
|
2452 2442 | }
|
2453 2443 | }
|
2454 2444 | impl
|
2455 2445 | ::aws_smithy_http_server::response::IntoResponse<
|
2456 2446 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
2457 2447 | > for crate::output::RpcV2CborListsOutput
|
2458 2448 | {
|
2459 2449 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
2460 2450 | match crate::protocol_serde::shape_rpc_v2_cbor_lists::ser_rpc_v2_cbor_lists_http_response(
|
2461 2451 | self,
|
2462 2452 | ) {
|
2463 2453 | Ok(response) => response,
|
2464 2454 | Err(e) => {
|
2465 2455 | ::tracing::error!(error = %e, "failed to serialize response");
|
2466 2456 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
2467 2457 | }
|
2468 2458 | }
|
@@ -3018,3008 +3078,3067 @@
3018 3008 | this.inner.as_mut().poll(cx)
|
3019 3009 | }
|
3020 3010 | }
|
3021 3011 |
|
3022 3012 | impl<B>
|
3023 3013 | ::aws_smithy_http_server::request::FromRequest<
|
3024 3014 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
3025 3015 | B,
|
3026 3016 | > for crate::input::SimpleScalarPropertiesInput
|
3027 3017 | where
|
3028 3018 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
3029 3019 | B: 'static,
|
3030 3020 |
|
3031 3021 | B::Data: Send,
|
3032 3022 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
3033 3023 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
3034 3024 | {
|
3035 3025 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
3036 3026 | type Future = SimpleScalarPropertiesInputFuture;
|
3037 3027 |
|
3038 3028 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3039 3029 | let fut = async move {
|
3040 3030 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
3041 3031 | request.headers(),
|
3042 3032 | &CONTENT_TYPE_SIMPLESCALARPROPERTIES,
|
3043 3033 | ) {
|
3044 3034 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
3045 3035 | }
|
3046 3036 | crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_request(request)
|
3047 3037 | .await
|
3048 - | .map_err(Into::into)
|
3049 3038 | };
|
3050 3039 | use ::futures_util::future::TryFutureExt;
|
3051 3040 | let fut = fut.map_err(
|
3052 3041 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
3053 3042 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3054 3043 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
3055 3044 | e,
|
3056 3045 | )
|
3057 3046 | },
|
3058 3047 | );
|
3059 3048 | SimpleScalarPropertiesInputFuture {
|
3060 3049 | inner: Box::pin(fut),
|
3061 3050 | }
|
3062 3051 | }
|
3063 3052 | }
|
3064 3053 | impl
|
3065 3054 | ::aws_smithy_http_server::response::IntoResponse<
|
3066 3055 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
3067 3056 | > for crate::output::SimpleScalarPropertiesOutput
|
3068 3057 | {
|
3069 3058 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
3070 3059 | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_response(self) {
|
3071 3060 | Ok(response) => response,
|
3072 3061 | Err(e) => {
|
3073 3062 | ::tracing::error!(error = %e, "failed to serialize response");
|
3074 3063 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
3075 3064 | }
|
3076 3065 | }
|
3077 3066 | }
|
3078 3067 | }
|
@@ -4714,4703 +4774,4762 @@
4714 4703 | this.inner.as_mut().poll(cx)
|
4715 4704 | }
|
4716 4705 | }
|
4717 4706 |
|
4718 4707 | impl<B>
|
4719 4708 | ::aws_smithy_http_server::request::FromRequest<
|
4720 4709 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
4721 4710 | B,
|
4722 4711 | > for crate::input::OptionalInputOutputInput
|
4723 4712 | where
|
4724 4713 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
4725 4714 | B: 'static,
|
4726 4715 |
|
4727 4716 | B::Data: Send,
|
4728 4717 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
4729 4718 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
4730 4719 | {
|
4731 4720 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
4732 4721 | type Future = OptionalInputOutputInputFuture;
|
4733 4722 |
|
4734 4723 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4735 4724 | let fut = async move {
|
4736 4725 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
4737 4726 | request.headers(),
|
4738 4727 | &CONTENT_TYPE_OPTIONALINPUTOUTPUT,
|
4739 4728 | ) {
|
4740 4729 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
4741 4730 | }
|
4742 4731 | crate::protocol_serde::shape_optional_input_output::de_optional_input_output_http_request(request)
|
4743 4732 | .await
|
4744 - | .map_err(Into::into)
|
4745 4733 | };
|
4746 4734 | use ::futures_util::future::TryFutureExt;
|
4747 4735 | let fut = fut.map_err(
|
4748 4736 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
4749 4737 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4750 4738 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
4751 4739 | e,
|
4752 4740 | )
|
4753 4741 | },
|
4754 4742 | );
|
4755 4743 | OptionalInputOutputInputFuture {
|
4756 4744 | inner: Box::pin(fut),
|
4757 4745 | }
|
4758 4746 | }
|
4759 4747 | }
|
4760 4748 | impl
|
4761 4749 | ::aws_smithy_http_server::response::IntoResponse<
|
4762 4750 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
4763 4751 | > for crate::output::OptionalInputOutputOutput
|
4764 4752 | {
|
4765 4753 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
4766 4754 | match crate::protocol_serde::shape_optional_input_output::ser_optional_input_output_http_response(self) {
|
4767 4755 | Ok(response) => response,
|
4768 4756 | Err(e) => {
|
4769 4757 | ::tracing::error!(error = %e, "failed to serialize response");
|
4770 4758 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
4771 4759 | }
|
4772 4760 | }
|
4773 4761 | }
|
4774 4762 | }
|
@@ -4891,4879 +4951,4938 @@
4891 4879 | }
|
4892 4880 |
|
4893 4881 | impl<B>
|
4894 4882 | ::aws_smithy_http_server::request::FromRequest<
|
4895 4883 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
4896 4884 | B,
|
4897 4885 | > for crate::input::EmptyInputOutputInput
|
4898 4886 | where
|
4899 4887 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
4900 4888 | B: 'static,
|
4901 4889 |
|
4902 4890 | B::Data: Send,
|
4903 4891 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
4904 4892 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
4905 4893 | {
|
4906 4894 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
4907 4895 | type Future = EmptyInputOutputInputFuture;
|
4908 4896 |
|
4909 4897 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4910 4898 | let fut = async move {
|
4911 4899 | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
4912 4900 | request.headers(),
|
4913 4901 | &CONTENT_TYPE_EMPTYINPUTOUTPUT,
|
4914 4902 | ) {
|
4915 4903 | return Err(::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection::NotAcceptable);
|
4916 4904 | }
|
4917 4905 | crate::protocol_serde::shape_empty_input_output::de_empty_input_output_http_request(
|
4918 4906 | request,
|
4919 4907 | )
|
4920 4908 | .await
|
4921 - | .map_err(Into::into)
|
4922 4909 | };
|
4923 4910 | use ::futures_util::future::TryFutureExt;
|
4924 4911 | let fut = fut.map_err(
|
4925 4912 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
4926 4913 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4927 4914 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
4928 4915 | e,
|
4929 4916 | )
|
4930 4917 | },
|
4931 4918 | );
|
4932 4919 | EmptyInputOutputInputFuture {
|
4933 4920 | inner: Box::pin(fut),
|
4934 4921 | }
|
4935 4922 | }
|
4936 4923 | }
|
4937 4924 | impl
|
4938 4925 | ::aws_smithy_http_server::response::IntoResponse<
|
4939 4926 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
4940 4927 | > for crate::output::EmptyInputOutputOutput
|
4941 4928 | {
|
4942 4929 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
4943 4930 | match crate::protocol_serde::shape_empty_input_output::ser_empty_input_output_http_response(
|
4944 4931 | self,
|
4945 4932 | ) {
|
4946 4933 | Ok(response) => response,
|
4947 4934 | Err(e) => {
|
4948 4935 | ::tracing::error!(error = %e, "failed to serialize response");
|
4949 4936 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
4950 4937 | }
|
4951 4938 | }
|
@@ -5145,5132 +5205,5191 @@
5145 5132 |
|
5146 5133 | fn poll(
|
5147 5134 | self: std::pin::Pin<&mut Self>,
|
5148 5135 | cx: &mut std::task::Context<'_>,
|
5149 5136 | ) -> std::task::Poll<Self::Output> {
|
5150 5137 | let this = self.project();
|
5151 5138 | this.inner.as_mut().poll(cx)
|
5152 5139 | }
|
5153 5140 | }
|
5154 5141 |
|
5155 5142 | impl<B>
|
5156 5143 | ::aws_smithy_http_server::request::FromRequest<
|
5157 5144 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
5158 5145 | B,
|
5159 5146 | > for crate::input::NoInputOutputInput
|
5160 5147 | where
|
5161 5148 | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
5162 5149 | B: 'static,
|
5163 5150 |
|
5164 5151 | B::Data: Send,
|
5165 5152 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection:
|
5166 5153 | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
5167 5154 | {
|
5168 5155 | type Rejection = ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError;
|
5169 5156 | type Future = NoInputOutputInputFuture;
|
5170 5157 |
|
5171 5158 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5172 5159 | let fut = async move {
|
5173 5160 | crate::protocol_serde::shape_no_input_output::de_no_input_output_http_request(request)
|
5174 5161 | .await
|
5175 - | .map_err(Into::into)
|
5176 5162 | };
|
5177 5163 | use ::futures_util::future::TryFutureExt;
|
5178 5164 | let fut = fut.map_err(
|
5179 5165 | |e: ::aws_smithy_http_server::protocol::rpc_v2_cbor::rejection::RequestRejection| {
|
5180 5166 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5181 5167 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(
|
5182 5168 | e,
|
5183 5169 | )
|
5184 5170 | },
|
5185 5171 | );
|
5186 5172 | NoInputOutputInputFuture {
|
5187 5173 | inner: Box::pin(fut),
|
5188 5174 | }
|
5189 5175 | }
|
5190 5176 | }
|
5191 5177 | impl
|
5192 5178 | ::aws_smithy_http_server::response::IntoResponse<
|
5193 5179 | ::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor,
|
5194 5180 | > for crate::output::NoInputOutputOutput
|
5195 5181 | {
|
5196 5182 | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
5197 5183 | match crate::protocol_serde::shape_no_input_output::ser_no_input_output_http_response(self)
|
5198 5184 | {
|
5199 5185 | Ok(response) => response,
|
5200 5186 | Err(e) => {
|
5201 5187 | ::tracing::error!(error = %e, "failed to serialize response");
|
5202 5188 | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rpc_v2_cbor::RpcV2Cbor>::into_response(::aws_smithy_http_server::protocol::rpc_v2_cbor::runtime_error::RuntimeError::from(e))
|
5203 5189 | }
|
5204 5190 | }
|
5205 5191 | }
|