1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | ::pin_project_lite::pin_project! {
|
3 3 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4 4 | /// [`EventStreamsOperationInput`](crate::input::EventStreamsOperationInput) using modelled bindings.
|
5 5 | pub struct EventStreamsOperationInputFuture {
|
6 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EventStreamsOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EventStreamsOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7 7 | }
|
8 8 | }
|
9 9 |
|
10 10 | impl std::future::Future for EventStreamsOperationInputFuture {
|
11 11 | type Output = Result<
|
12 12 | crate::input::EventStreamsOperationInput,
|
13 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
13 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
14 14 | >;
|
15 15 |
|
16 16 | fn poll(
|
17 17 | self: std::pin::Pin<&mut Self>,
|
18 18 | cx: &mut std::task::Context<'_>,
|
19 19 | ) -> std::task::Poll<Self::Output> {
|
20 20 | let this = self.project();
|
21 21 | this.inner.as_mut().poll(cx)
|
22 22 | }
|
23 23 | }
|
24 24 |
|
25 25 | impl<B>
|
26 - | ::aws_smithy_http_server::request::FromRequest<
|
27 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
26 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
27 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
28 28 | B,
|
29 29 | > for crate::input::EventStreamsOperationInput
|
30 30 | where
|
31 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
31 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
32 32 | B: 'static,
|
33 33 |
|
34 34 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
35 35 | B::Data: Send,
|
36 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
36 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
37 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
38 38 | {
|
39 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
39 + | type Rejection =
|
40 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
40 41 | type Future = EventStreamsOperationInputFuture;
|
41 42 |
|
42 43 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
43 44 | let fut = async move {
|
44 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
45 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
45 46 | request.headers(),
|
46 47 | &crate::mimes::CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM,
|
47 48 | ) {
|
48 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
49 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
49 50 | }
|
50 51 | crate::protocol_serde::shape_event_streams_operation::de_event_streams_operation_http_request(request)
|
51 52 | .await
|
52 53 | };
|
53 54 | use ::futures_util::future::TryFutureExt;
|
54 - | let fut = fut.map_err(
|
55 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
56 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
57 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
58 - | e,
|
59 - | )
|
60 - | },
|
61 - | );
|
55 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
56 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
57 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
58 + | });
|
62 59 | EventStreamsOperationInputFuture {
|
63 60 | inner: Box::pin(fut),
|
64 61 | }
|
65 62 | }
|
66 63 | }
|
67 64 | impl
|
68 - | ::aws_smithy_http_server::response::IntoResponse<
|
69 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
65 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
66 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
70 67 | > for crate::output::EventStreamsOperationOutput
|
71 68 | {
|
72 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
69 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
73 70 | match crate::protocol_serde::shape_event_streams_operation::ser_event_streams_operation_http_response(self) {
|
74 71 | Ok(response) => response,
|
75 72 | Err(e) => {
|
76 73 | ::tracing::error!(error = %e, "failed to serialize response");
|
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))
|
74 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
78 75 | }
|
79 76 | }
|
80 77 | }
|
81 78 | }
|
82 79 | impl
|
83 - | ::aws_smithy_http_server::response::IntoResponse<
|
84 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
80 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
81 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
85 82 | > for crate::error::EventStreamsOperationError
|
86 83 | {
|
87 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
84 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
88 85 | match crate::protocol_serde::shape_event_streams_operation::ser_event_streams_operation_http_error(&self) {
|
89 86 | Ok(mut response) => {
|
90 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
87 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
91 88 | response
|
92 89 | },
|
93 90 | Err(e) => {
|
94 91 | ::tracing::error!(error = %e, "failed to serialize response");
|
95 - | ::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))
|
92 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
96 93 | }
|
97 94 | }
|
98 95 | }
|
99 96 | }
|
100 97 |
|
101 98 | ::pin_project_lite::pin_project! {
|
102 99 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
103 100 | /// [`StreamingBlobOperationInput`](crate::input::StreamingBlobOperationInput) using modelled bindings.
|
104 101 | pub struct StreamingBlobOperationInputFuture {
|
105 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingBlobOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
102 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingBlobOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
106 103 | }
|
107 104 | }
|
108 105 |
|
109 106 | impl std::future::Future for StreamingBlobOperationInputFuture {
|
110 107 | type Output = Result<
|
111 108 | crate::input::StreamingBlobOperationInput,
|
112 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
109 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
113 110 | >;
|
114 111 |
|
115 112 | fn poll(
|
116 113 | self: std::pin::Pin<&mut Self>,
|
117 114 | cx: &mut std::task::Context<'_>,
|
118 115 | ) -> std::task::Poll<Self::Output> {
|
119 116 | let this = self.project();
|
120 117 | this.inner.as_mut().poll(cx)
|
121 118 | }
|
122 119 | }
|
123 120 |
|
124 121 | impl<B>
|
125 - | ::aws_smithy_http_server::request::FromRequest<
|
126 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
122 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
123 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
127 124 | B,
|
128 125 | > for crate::input::StreamingBlobOperationInput
|
129 126 | where
|
130 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
127 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
131 128 | B: 'static,
|
132 129 |
|
133 130 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
134 131 | B::Data: Send,
|
135 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
136 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
132 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
133 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
137 134 | {
|
138 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
135 + | type Rejection =
|
136 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
139 137 | type Future = StreamingBlobOperationInputFuture;
|
140 138 |
|
141 139 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
142 140 | let fut = async move {
|
143 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
141 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
144 142 | request.headers(),
|
145 143 | &crate::mimes::CONTENT_TYPE_APPLICATION_OCTET_STREAM,
|
146 144 | ) {
|
147 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
145 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
148 146 | }
|
149 147 | crate::protocol_serde::shape_streaming_blob_operation::de_streaming_blob_operation_http_request(request)
|
150 148 | .await
|
151 149 | };
|
152 150 | use ::futures_util::future::TryFutureExt;
|
153 - | let fut = fut.map_err(
|
154 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
155 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
156 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
157 - | e,
|
158 - | )
|
159 - | },
|
160 - | );
|
151 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
152 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
153 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
154 + | });
|
161 155 | StreamingBlobOperationInputFuture {
|
162 156 | inner: Box::pin(fut),
|
163 157 | }
|
164 158 | }
|
165 159 | }
|
166 160 | impl
|
167 - | ::aws_smithy_http_server::response::IntoResponse<
|
168 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
161 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
162 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
169 163 | > for crate::output::StreamingBlobOperationOutput
|
170 164 | {
|
171 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
165 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
172 166 | match crate::protocol_serde::shape_streaming_blob_operation::ser_streaming_blob_operation_http_response(self) {
|
173 167 | Ok(response) => response,
|
174 168 | Err(e) => {
|
175 169 | ::tracing::error!(error = %e, "failed to serialize response");
|
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))
|
170 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
177 171 | }
|
178 172 | }
|
179 173 | }
|
180 174 | }
|
181 175 | impl
|
182 - | ::aws_smithy_http_server::response::IntoResponse<
|
183 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
176 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
177 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
184 178 | > for crate::error::StreamingBlobOperationError
|
185 179 | {
|
186 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
180 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
187 181 | match crate::protocol_serde::shape_streaming_blob_operation::ser_streaming_blob_operation_http_error(&self) {
|
188 182 | Ok(mut response) => {
|
189 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
183 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
190 184 | response
|
191 185 | },
|
192 186 | Err(e) => {
|
193 187 | ::tracing::error!(error = %e, "failed to serialize response");
|
194 - | ::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))
|
188 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
195 189 | }
|
196 190 | }
|
197 191 | }
|
198 192 | }
|
199 193 |
|
200 194 | ::pin_project_lite::pin_project! {
|
201 195 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
202 196 | /// [`NonStreamingBlobOperationInput`](crate::input::NonStreamingBlobOperationInput) using modelled bindings.
|
203 197 | pub struct NonStreamingBlobOperationInputFuture {
|
204 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NonStreamingBlobOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
198 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NonStreamingBlobOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
205 199 | }
|
206 200 | }
|
207 201 |
|
208 202 | impl std::future::Future for NonStreamingBlobOperationInputFuture {
|
209 203 | type Output = Result<
|
210 204 | crate::input::NonStreamingBlobOperationInput,
|
211 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
205 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
212 206 | >;
|
213 207 |
|
214 208 | fn poll(
|
215 209 | self: std::pin::Pin<&mut Self>,
|
216 210 | cx: &mut std::task::Context<'_>,
|
217 211 | ) -> std::task::Poll<Self::Output> {
|
218 212 | let this = self.project();
|
219 213 | this.inner.as_mut().poll(cx)
|
220 214 | }
|
221 215 | }
|
222 216 |
|
223 217 | impl<B>
|
224 - | ::aws_smithy_http_server::request::FromRequest<
|
225 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
218 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
219 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
226 220 | B,
|
227 221 | > for crate::input::NonStreamingBlobOperationInput
|
228 222 | where
|
229 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
223 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
230 224 | B: 'static,
|
231 225 |
|
232 226 | B::Data: Send,
|
233 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
234 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
227 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
228 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
235 229 | {
|
236 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
230 + | type Rejection =
|
231 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
237 232 | type Future = NonStreamingBlobOperationInputFuture;
|
238 233 |
|
239 234 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
240 235 | let fut = async move {
|
241 236 | crate::protocol_serde::shape_non_streaming_blob_operation::de_non_streaming_blob_operation_http_request(request)
|
242 237 | .await
|
243 238 | };
|
244 239 | use ::futures_util::future::TryFutureExt;
|
245 - | let fut = fut.map_err(
|
246 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
247 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
248 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
249 - | e,
|
250 - | )
|
251 - | },
|
252 - | );
|
240 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
241 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
242 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
243 + | });
|
253 244 | NonStreamingBlobOperationInputFuture {
|
254 245 | inner: Box::pin(fut),
|
255 246 | }
|
256 247 | }
|
257 248 | }
|
258 249 | impl
|
259 - | ::aws_smithy_http_server::response::IntoResponse<
|
260 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
250 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
251 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
261 252 | > for crate::output::NonStreamingBlobOperationOutput
|
262 253 | {
|
263 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
254 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
264 255 | match crate::protocol_serde::shape_non_streaming_blob_operation::ser_non_streaming_blob_operation_http_response(self) {
|
265 256 | Ok(response) => response,
|
266 257 | Err(e) => {
|
267 258 | ::tracing::error!(error = %e, "failed to serialize response");
|
268 - | ::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))
|
259 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
269 260 | }
|
270 261 | }
|
271 262 | }
|
272 263 | }
|
273 264 | impl
|
274 - | ::aws_smithy_http_server::response::IntoResponse<
|
275 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
265 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
266 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
276 267 | > for crate::error::NonStreamingBlobOperationError
|
277 268 | {
|
278 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
269 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
279 270 | match crate::protocol_serde::shape_non_streaming_blob_operation::ser_non_streaming_blob_operation_http_error(&self) {
|
280 271 | Ok(mut response) => {
|
281 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
272 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
282 273 | response
|
283 274 | },
|
284 275 | Err(e) => {
|
285 276 | ::tracing::error!(error = %e, "failed to serialize response");
|
286 - | ::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))
|
277 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
287 278 | }
|
288 279 | }
|
289 280 | }
|
290 281 | }
|
291 282 |
|
292 283 | ::pin_project_lite::pin_project! {
|
293 284 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
294 285 | /// [`QueryParamsTargetingMapOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfEnumStringOperationInput) using modelled bindings.
|
295 286 | pub struct QueryParamsTargetingMapOfEnumStringOperationInputFuture {
|
296 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfEnumStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
287 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfEnumStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
297 288 | }
|
298 289 | }
|
299 290 |
|
300 291 | impl std::future::Future for QueryParamsTargetingMapOfEnumStringOperationInputFuture {
|
301 292 | type Output = Result<
|
302 293 | crate::input::QueryParamsTargetingMapOfEnumStringOperationInput,
|
303 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
294 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
304 295 | >;
|
305 296 |
|
306 297 | fn poll(
|
307 298 | self: std::pin::Pin<&mut Self>,
|
308 299 | cx: &mut std::task::Context<'_>,
|
309 300 | ) -> std::task::Poll<Self::Output> {
|
310 301 | let this = self.project();
|
311 302 | this.inner.as_mut().poll(cx)
|
312 303 | }
|
313 304 | }
|
314 305 |
|
315 306 | impl<B>
|
316 - | ::aws_smithy_http_server::request::FromRequest<
|
317 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
307 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
308 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
318 309 | B,
|
319 310 | > for crate::input::QueryParamsTargetingMapOfEnumStringOperationInput
|
320 311 | where
|
321 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
312 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
322 313 | B: 'static,
|
323 314 |
|
324 315 | B::Data: Send,
|
325 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
326 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
316 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
317 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
327 318 | {
|
328 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
319 + | type Rejection =
|
320 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
329 321 | type Future = QueryParamsTargetingMapOfEnumStringOperationInputFuture;
|
330 322 |
|
331 323 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
332 324 | let fut = async move {
|
333 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
325 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
334 326 | request.headers(),
|
335 327 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
336 328 | ) {
|
337 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
329 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
338 330 | }
|
339 331 | crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::de_query_params_targeting_map_of_enum_string_operation_http_request(request)
|
340 332 | .await
|
341 333 | };
|
342 334 | use ::futures_util::future::TryFutureExt;
|
343 - | let fut = fut.map_err(
|
344 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
345 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
346 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
347 - | e,
|
348 - | )
|
349 - | },
|
350 - | );
|
335 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
336 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
337 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
338 + | });
|
351 339 | QueryParamsTargetingMapOfEnumStringOperationInputFuture {
|
352 340 | inner: Box::pin(fut),
|
353 341 | }
|
354 342 | }
|
355 343 | }
|
356 344 | impl
|
357 - | ::aws_smithy_http_server::response::IntoResponse<
|
358 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
345 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
346 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
359 347 | > for crate::output::QueryParamsTargetingMapOfEnumStringOperationOutput
|
360 348 | {
|
361 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
349 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
362 350 | 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) {
|
363 351 | Ok(response) => response,
|
364 352 | Err(e) => {
|
365 353 | ::tracing::error!(error = %e, "failed to serialize response");
|
366 - | ::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))
|
354 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
367 355 | }
|
368 356 | }
|
369 357 | }
|
370 358 | }
|
371 359 | impl
|
372 - | ::aws_smithy_http_server::response::IntoResponse<
|
373 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
360 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
361 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
374 362 | > for crate::error::QueryParamsTargetingMapOfEnumStringOperationError
|
375 363 | {
|
376 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
364 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
377 365 | match crate::protocol_serde::shape_query_params_targeting_map_of_enum_string_operation::ser_query_params_targeting_map_of_enum_string_operation_http_error(&self) {
|
378 366 | Ok(mut response) => {
|
379 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
367 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
380 368 | response
|
381 369 | },
|
382 370 | Err(e) => {
|
383 371 | ::tracing::error!(error = %e, "failed to serialize response");
|
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))
|
372 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
385 373 | }
|
386 374 | }
|
387 375 | }
|
388 376 | }
|
389 377 |
|
390 378 | ::pin_project_lite::pin_project! {
|
391 379 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
392 380 | /// [`HttpPrefixHeadersTargetingLengthMapOperationInput`](crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput) using modelled bindings.
|
393 381 | pub struct HttpPrefixHeadersTargetingLengthMapOperationInputFuture {
|
394 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
382 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
395 383 | }
|
396 384 | }
|
397 385 |
|
398 386 | impl std::future::Future for HttpPrefixHeadersTargetingLengthMapOperationInputFuture {
|
399 387 | type Output = Result<
|
400 388 | crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput,
|
401 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
389 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
402 390 | >;
|
403 391 |
|
404 392 | fn poll(
|
405 393 | self: std::pin::Pin<&mut Self>,
|
406 394 | cx: &mut std::task::Context<'_>,
|
407 395 | ) -> std::task::Poll<Self::Output> {
|
408 396 | let this = self.project();
|
409 397 | this.inner.as_mut().poll(cx)
|
410 398 | }
|
411 399 | }
|
412 400 |
|
413 401 | impl<B>
|
414 - | ::aws_smithy_http_server::request::FromRequest<
|
415 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
402 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
403 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
416 404 | B,
|
417 405 | > for crate::input::HttpPrefixHeadersTargetingLengthMapOperationInput
|
418 406 | where
|
419 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
407 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
420 408 | B: 'static,
|
421 409 |
|
422 410 | B::Data: Send,
|
423 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
424 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
411 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
412 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
425 413 | {
|
426 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
414 + | type Rejection =
|
415 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
427 416 | type Future = HttpPrefixHeadersTargetingLengthMapOperationInputFuture;
|
428 417 |
|
429 418 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
430 419 | let fut = async move {
|
431 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
420 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
432 421 | request.headers(),
|
433 422 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
434 423 | ) {
|
435 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
424 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
436 425 | }
|
437 426 | crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::de_http_prefix_headers_targeting_length_map_operation_http_request(request)
|
438 427 | .await
|
439 428 | };
|
440 429 | use ::futures_util::future::TryFutureExt;
|
441 - | let fut = fut.map_err(
|
442 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
443 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
444 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
445 - | e,
|
446 - | )
|
447 - | },
|
448 - | );
|
430 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
431 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
432 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
433 + | });
|
449 434 | HttpPrefixHeadersTargetingLengthMapOperationInputFuture {
|
450 435 | inner: Box::pin(fut),
|
451 436 | }
|
452 437 | }
|
453 438 | }
|
454 439 | impl
|
455 - | ::aws_smithy_http_server::response::IntoResponse<
|
456 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
440 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
441 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
457 442 | > for crate::output::HttpPrefixHeadersTargetingLengthMapOperationOutput
|
458 443 | {
|
459 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
444 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
460 445 | match crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::ser_http_prefix_headers_targeting_length_map_operation_http_response(self) {
|
461 446 | Ok(response) => response,
|
462 447 | Err(e) => {
|
463 448 | ::tracing::error!(error = %e, "failed to serialize response");
|
464 - | ::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))
|
449 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
465 450 | }
|
466 451 | }
|
467 452 | }
|
468 453 | }
|
469 454 | impl
|
470 - | ::aws_smithy_http_server::response::IntoResponse<
|
471 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
455 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
456 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
472 457 | > for crate::error::HttpPrefixHeadersTargetingLengthMapOperationError
|
473 458 | {
|
474 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
459 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
475 460 | match crate::protocol_serde::shape_http_prefix_headers_targeting_length_map_operation::ser_http_prefix_headers_targeting_length_map_operation_http_error(&self) {
|
476 461 | Ok(mut response) => {
|
477 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
462 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
478 463 | response
|
479 464 | },
|
480 465 | Err(e) => {
|
481 466 | ::tracing::error!(error = %e, "failed to serialize response");
|
482 - | ::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))
|
467 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
483 468 | }
|
484 469 | }
|
485 470 | }
|
486 471 | }
|
487 472 |
|
488 473 | ::pin_project_lite::pin_project! {
|
489 474 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
490 475 | /// [`QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput) using modelled bindings.
|
491 476 | pub struct QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture {
|
492 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
477 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
493 478 | }
|
494 479 | }
|
495 480 |
|
496 481 | impl std::future::Future
|
497 482 | for QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture
|
498 483 | {
|
499 484 | type Output = Result<
|
500 485 | crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput,
|
501 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
486 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
502 487 | >;
|
503 488 |
|
504 489 | fn poll(
|
505 490 | self: std::pin::Pin<&mut Self>,
|
506 491 | cx: &mut std::task::Context<'_>,
|
507 492 | ) -> std::task::Poll<Self::Output> {
|
508 493 | let this = self.project();
|
509 494 | this.inner.as_mut().poll(cx)
|
510 495 | }
|
511 496 | }
|
512 497 |
|
513 498 | impl<B>
|
514 - | ::aws_smithy_http_server::request::FromRequest<
|
515 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
499 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
500 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
516 501 | B,
|
517 502 | > for crate::input::QueryParamsTargetingMapOfListOfLengthPatternStringOperationInput
|
518 503 | where
|
519 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
504 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
520 505 | B: 'static,
|
521 506 |
|
522 507 | B::Data: Send,
|
523 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
524 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
508 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
509 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
525 510 | {
|
526 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
511 + | type Rejection =
|
512 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
527 513 | type Future = QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture;
|
528 514 |
|
529 515 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
530 516 | let fut = async move {
|
531 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
517 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
532 518 | request.headers(),
|
533 519 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
534 520 | ) {
|
535 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
521 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
536 522 | }
|
537 523 | 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)
|
538 524 | .await
|
539 525 | };
|
540 526 | use ::futures_util::future::TryFutureExt;
|
541 - | let fut = fut.map_err(
|
542 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
543 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
544 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
545 - | e,
|
546 - | )
|
547 - | },
|
548 - | );
|
527 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
528 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
529 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
530 + | });
|
549 531 | QueryParamsTargetingMapOfListOfLengthPatternStringOperationInputFuture {
|
550 532 | inner: Box::pin(fut),
|
551 533 | }
|
552 534 | }
|
553 535 | }
|
554 536 | impl
|
555 - | ::aws_smithy_http_server::response::IntoResponse<
|
556 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
537 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
538 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
557 539 | > for crate::output::QueryParamsTargetingMapOfListOfLengthPatternStringOperationOutput
|
558 540 | {
|
559 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
541 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
560 542 | 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) {
|
561 543 | Ok(response) => response,
|
562 544 | Err(e) => {
|
563 545 | ::tracing::error!(error = %e, "failed to serialize response");
|
564 - | ::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))
|
546 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
565 547 | }
|
566 548 | }
|
567 549 | }
|
568 550 | }
|
569 551 | impl
|
570 - | ::aws_smithy_http_server::response::IntoResponse<
|
571 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
552 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
553 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
572 554 | > for crate::error::QueryParamsTargetingMapOfListOfLengthPatternStringOperationError
|
573 555 | {
|
574 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
556 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
575 557 | 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_error(&self) {
|
576 558 | Ok(mut response) => {
|
577 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
559 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
578 560 | response
|
579 561 | },
|
580 562 | Err(e) => {
|
581 563 | ::tracing::error!(error = %e, "failed to serialize response");
|
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))
|
564 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
583 565 | }
|
584 566 | }
|
585 567 | }
|
586 568 | }
|
587 569 |
|
588 570 | ::pin_project_lite::pin_project! {
|
589 571 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
590 572 | /// [`QueryParamsTargetingMapOfLengthPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput) using modelled bindings.
|
591 573 | pub struct QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture {
|
592 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
574 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
593 575 | }
|
594 576 | }
|
595 577 |
|
596 578 | impl std::future::Future for QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture {
|
597 579 | type Output = Result<
|
598 580 | crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput,
|
599 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
581 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
600 582 | >;
|
601 583 |
|
602 584 | fn poll(
|
603 585 | self: std::pin::Pin<&mut Self>,
|
604 586 | cx: &mut std::task::Context<'_>,
|
605 587 | ) -> std::task::Poll<Self::Output> {
|
606 588 | let this = self.project();
|
607 589 | this.inner.as_mut().poll(cx)
|
608 590 | }
|
609 591 | }
|
610 592 |
|
611 593 | impl<B>
|
612 - | ::aws_smithy_http_server::request::FromRequest<
|
613 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
594 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
595 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
614 596 | B,
|
615 597 | > for crate::input::QueryParamsTargetingMapOfLengthPatternStringOperationInput
|
616 598 | where
|
617 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
599 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
618 600 | B: 'static,
|
619 601 |
|
620 602 | B::Data: Send,
|
621 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
622 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
603 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
604 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
623 605 | {
|
624 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
606 + | type Rejection =
|
607 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
625 608 | type Future = QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture;
|
626 609 |
|
627 610 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
628 611 | let fut = async move {
|
629 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
612 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
630 613 | request.headers(),
|
631 614 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
632 615 | ) {
|
633 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
616 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
634 617 | }
|
635 618 | 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)
|
636 619 | .await
|
637 620 | };
|
638 621 | use ::futures_util::future::TryFutureExt;
|
639 - | let fut = fut.map_err(
|
640 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
641 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
642 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
643 - | e,
|
644 - | )
|
645 - | },
|
646 - | );
|
622 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
623 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
624 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
625 + | });
|
647 626 | QueryParamsTargetingMapOfLengthPatternStringOperationInputFuture {
|
648 627 | inner: Box::pin(fut),
|
649 628 | }
|
650 629 | }
|
651 630 | }
|
652 631 | impl
|
653 - | ::aws_smithy_http_server::response::IntoResponse<
|
654 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
632 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
633 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
655 634 | > for crate::output::QueryParamsTargetingMapOfLengthPatternStringOperationOutput
|
656 635 | {
|
657 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
636 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
658 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) {
|
659 638 | Ok(response) => response,
|
660 639 | Err(e) => {
|
661 640 | ::tracing::error!(error = %e, "failed to serialize response");
|
662 - | ::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))
|
641 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
663 642 | }
|
664 643 | }
|
665 644 | }
|
666 645 | }
|
667 646 | impl
|
668 - | ::aws_smithy_http_server::response::IntoResponse<
|
669 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
647 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
648 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
670 649 | > for crate::error::QueryParamsTargetingMapOfLengthPatternStringOperationError
|
671 650 | {
|
672 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
651 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
673 652 | 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_error(&self) {
|
674 653 | Ok(mut response) => {
|
675 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
654 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
676 655 | response
|
677 656 | },
|
678 657 | Err(e) => {
|
679 658 | ::tracing::error!(error = %e, "failed to serialize response");
|
680 - | ::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))
|
659 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
681 660 | }
|
682 661 | }
|
683 662 | }
|
684 663 | }
|
685 664 |
|
686 665 | ::pin_project_lite::pin_project! {
|
687 666 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
688 667 | /// [`QueryParamsTargetingMapOfListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput) using modelled bindings.
|
689 668 | pub struct QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture {
|
690 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
669 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
691 670 | }
|
692 671 | }
|
693 672 |
|
694 673 | impl std::future::Future for QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture {
|
695 674 | type Output = Result<
|
696 675 | crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput,
|
697 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
676 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
698 677 | >;
|
699 678 |
|
700 679 | fn poll(
|
701 680 | self: std::pin::Pin<&mut Self>,
|
702 681 | cx: &mut std::task::Context<'_>,
|
703 682 | ) -> std::task::Poll<Self::Output> {
|
704 683 | let this = self.project();
|
705 684 | this.inner.as_mut().poll(cx)
|
706 685 | }
|
707 686 | }
|
708 687 |
|
709 688 | impl<B>
|
710 - | ::aws_smithy_http_server::request::FromRequest<
|
711 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
689 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
690 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
712 691 | B,
|
713 692 | > for crate::input::QueryParamsTargetingMapOfListOfPatternStringOperationInput
|
714 693 | where
|
715 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
694 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
716 695 | B: 'static,
|
717 696 |
|
718 697 | B::Data: Send,
|
719 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
720 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
698 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
699 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
721 700 | {
|
722 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
701 + | type Rejection =
|
702 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
723 703 | type Future = QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture;
|
724 704 |
|
725 705 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
726 706 | let fut = async move {
|
727 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
707 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
728 708 | request.headers(),
|
729 709 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
730 710 | ) {
|
731 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
711 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
732 712 | }
|
733 713 | 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)
|
734 714 | .await
|
735 715 | };
|
736 716 | use ::futures_util::future::TryFutureExt;
|
737 - | let fut = fut.map_err(
|
738 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
739 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
740 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
741 - | e,
|
742 - | )
|
743 - | },
|
744 - | );
|
717 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
718 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
719 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
720 + | });
|
745 721 | QueryParamsTargetingMapOfListOfPatternStringOperationInputFuture {
|
746 722 | inner: Box::pin(fut),
|
747 723 | }
|
748 724 | }
|
749 725 | }
|
750 726 | impl
|
751 - | ::aws_smithy_http_server::response::IntoResponse<
|
752 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
727 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
728 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
753 729 | > for crate::output::QueryParamsTargetingMapOfListOfPatternStringOperationOutput
|
754 730 | {
|
755 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
731 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
756 732 | 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) {
|
757 733 | Ok(response) => response,
|
758 734 | Err(e) => {
|
759 735 | ::tracing::error!(error = %e, "failed to serialize response");
|
760 - | ::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))
|
736 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
761 737 | }
|
762 738 | }
|
763 739 | }
|
764 740 | }
|
765 741 | impl
|
766 - | ::aws_smithy_http_server::response::IntoResponse<
|
767 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
742 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
743 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
768 744 | > for crate::error::QueryParamsTargetingMapOfListOfPatternStringOperationError
|
769 745 | {
|
770 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
746 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
771 747 | 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_error(&self) {
|
772 748 | Ok(mut response) => {
|
773 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
749 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
774 750 | response
|
775 751 | },
|
776 752 | Err(e) => {
|
777 753 | ::tracing::error!(error = %e, "failed to serialize response");
|
778 - | ::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))
|
754 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
779 755 | }
|
780 756 | }
|
781 757 | }
|
782 758 | }
|
783 759 |
|
784 760 | ::pin_project_lite::pin_project! {
|
785 761 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
786 762 | /// [`QueryParamsTargetingMapOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfPatternStringOperationInput) using modelled bindings.
|
787 763 | pub struct QueryParamsTargetingMapOfPatternStringOperationInputFuture {
|
788 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfPatternStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
764 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfPatternStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
789 765 | }
|
790 766 | }
|
791 767 |
|
792 768 | impl std::future::Future for QueryParamsTargetingMapOfPatternStringOperationInputFuture {
|
793 769 | type Output = Result<
|
794 770 | crate::input::QueryParamsTargetingMapOfPatternStringOperationInput,
|
795 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
771 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
796 772 | >;
|
797 773 |
|
798 774 | fn poll(
|
799 775 | self: std::pin::Pin<&mut Self>,
|
800 776 | cx: &mut std::task::Context<'_>,
|
801 777 | ) -> std::task::Poll<Self::Output> {
|
802 778 | let this = self.project();
|
803 779 | this.inner.as_mut().poll(cx)
|
804 780 | }
|
805 781 | }
|
806 782 |
|
807 783 | impl<B>
|
808 - | ::aws_smithy_http_server::request::FromRequest<
|
809 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
784 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
785 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
810 786 | B,
|
811 787 | > for crate::input::QueryParamsTargetingMapOfPatternStringOperationInput
|
812 788 | where
|
813 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
789 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
814 790 | B: 'static,
|
815 791 |
|
816 792 | B::Data: Send,
|
817 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
818 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
793 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
794 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
819 795 | {
|
820 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
796 + | type Rejection =
|
797 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
821 798 | type Future = QueryParamsTargetingMapOfPatternStringOperationInputFuture;
|
822 799 |
|
823 800 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
824 801 | let fut = async move {
|
825 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
802 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
826 803 | request.headers(),
|
827 804 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
828 805 | ) {
|
829 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
806 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
830 807 | }
|
831 808 | crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::de_query_params_targeting_map_of_pattern_string_operation_http_request(request)
|
832 809 | .await
|
833 810 | };
|
834 811 | use ::futures_util::future::TryFutureExt;
|
835 - | let fut = fut.map_err(
|
836 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
837 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
838 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
839 - | e,
|
840 - | )
|
841 - | },
|
842 - | );
|
812 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
813 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
814 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
815 + | });
|
843 816 | QueryParamsTargetingMapOfPatternStringOperationInputFuture {
|
844 817 | inner: Box::pin(fut),
|
845 818 | }
|
846 819 | }
|
847 820 | }
|
848 821 | impl
|
849 - | ::aws_smithy_http_server::response::IntoResponse<
|
850 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
822 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
823 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
851 824 | > for crate::output::QueryParamsTargetingMapOfPatternStringOperationOutput
|
852 825 | {
|
853 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
826 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
854 827 | 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) {
|
855 828 | Ok(response) => response,
|
856 829 | Err(e) => {
|
857 830 | ::tracing::error!(error = %e, "failed to serialize response");
|
858 - | ::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))
|
831 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
859 832 | }
|
860 833 | }
|
861 834 | }
|
862 835 | }
|
863 836 | impl
|
864 - | ::aws_smithy_http_server::response::IntoResponse<
|
865 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
837 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
838 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
866 839 | > for crate::error::QueryParamsTargetingMapOfPatternStringOperationError
|
867 840 | {
|
868 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
841 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
869 842 | match crate::protocol_serde::shape_query_params_targeting_map_of_pattern_string_operation::ser_query_params_targeting_map_of_pattern_string_operation_http_error(&self) {
|
870 843 | Ok(mut response) => {
|
871 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
844 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
872 845 | response
|
873 846 | },
|
874 847 | Err(e) => {
|
875 848 | ::tracing::error!(error = %e, "failed to serialize response");
|
876 - | ::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))
|
849 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
877 850 | }
|
878 851 | }
|
879 852 | }
|
880 853 | }
|
881 854 |
|
882 855 | ::pin_project_lite::pin_project! {
|
883 856 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
884 857 | /// [`QueryParamsTargetingMapOfListOfEnumStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput) using modelled bindings.
|
885 858 | pub struct QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture {
|
886 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
859 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
887 860 | }
|
888 861 | }
|
889 862 |
|
890 863 | impl std::future::Future for QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture {
|
891 864 | type Output = Result<
|
892 865 | crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput,
|
893 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
866 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
894 867 | >;
|
895 868 |
|
896 869 | fn poll(
|
897 870 | self: std::pin::Pin<&mut Self>,
|
898 871 | cx: &mut std::task::Context<'_>,
|
899 872 | ) -> std::task::Poll<Self::Output> {
|
900 873 | let this = self.project();
|
901 874 | this.inner.as_mut().poll(cx)
|
902 875 | }
|
903 876 | }
|
904 877 |
|
905 878 | impl<B>
|
906 - | ::aws_smithy_http_server::request::FromRequest<
|
907 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
879 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
880 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
908 881 | B,
|
909 882 | > for crate::input::QueryParamsTargetingMapOfListOfEnumStringOperationInput
|
910 883 | where
|
911 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
884 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
912 885 | B: 'static,
|
913 886 |
|
914 887 | B::Data: Send,
|
915 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
916 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
888 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
889 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
917 890 | {
|
918 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
891 + | type Rejection =
|
892 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
919 893 | type Future = QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture;
|
920 894 |
|
921 895 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
922 896 | let fut = async move {
|
923 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
897 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
924 898 | request.headers(),
|
925 899 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
926 900 | ) {
|
927 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
901 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
928 902 | }
|
929 903 | 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)
|
930 904 | .await
|
931 905 | };
|
932 906 | use ::futures_util::future::TryFutureExt;
|
933 - | let fut = fut.map_err(
|
934 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
935 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
936 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
937 - | e,
|
938 - | )
|
939 - | },
|
940 - | );
|
907 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
908 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
909 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
910 + | });
|
941 911 | QueryParamsTargetingMapOfListOfEnumStringOperationInputFuture {
|
942 912 | inner: Box::pin(fut),
|
943 913 | }
|
944 914 | }
|
945 915 | }
|
946 916 | impl
|
947 - | ::aws_smithy_http_server::response::IntoResponse<
|
948 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
917 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
918 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
949 919 | > for crate::output::QueryParamsTargetingMapOfListOfEnumStringOperationOutput
|
950 920 | {
|
951 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
921 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
952 922 | 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) {
|
953 923 | Ok(response) => response,
|
954 924 | Err(e) => {
|
955 925 | ::tracing::error!(error = %e, "failed to serialize response");
|
956 - | ::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))
|
926 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
957 927 | }
|
958 928 | }
|
959 929 | }
|
960 930 | }
|
961 931 | impl
|
962 - | ::aws_smithy_http_server::response::IntoResponse<
|
963 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
932 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
933 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
964 934 | > for crate::error::QueryParamsTargetingMapOfListOfEnumStringOperationError
|
965 935 | {
|
966 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
936 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
967 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_error(&self) {
|
968 938 | Ok(mut response) => {
|
969 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
939 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
970 940 | response
|
971 941 | },
|
972 942 | Err(e) => {
|
973 943 | ::tracing::error!(error = %e, "failed to serialize response");
|
974 - | ::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))
|
944 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
975 945 | }
|
976 946 | }
|
977 947 | }
|
978 948 | }
|
979 949 |
|
980 950 | ::pin_project_lite::pin_project! {
|
981 951 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
982 952 | /// [`QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput) using modelled bindings.
|
983 953 | pub struct QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture {
|
984 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
954 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
985 955 | }
|
986 956 | }
|
987 957 |
|
988 958 | impl std::future::Future
|
989 959 | for QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture
|
990 960 | {
|
991 961 | type Output = Result<
|
992 962 | crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput,
|
993 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
963 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
994 964 | >;
|
995 965 |
|
996 966 | fn poll(
|
997 967 | self: std::pin::Pin<&mut Self>,
|
998 968 | cx: &mut std::task::Context<'_>,
|
999 969 | ) -> std::task::Poll<Self::Output> {
|
1000 970 | let this = self.project();
|
1001 971 | this.inner.as_mut().poll(cx)
|
1002 972 | }
|
1003 973 | }
|
1004 974 |
|
1005 975 | impl<B>
|
1006 - | ::aws_smithy_http_server::request::FromRequest<
|
1007 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
976 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
977 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1008 978 | B,
|
1009 979 | > for crate::input::QueryParamsTargetingMapOfLengthListOfPatternStringOperationInput
|
1010 980 | where
|
1011 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
981 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1012 982 | B: 'static,
|
1013 983 |
|
1014 984 | B::Data: Send,
|
1015 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1016 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
985 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
986 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1017 987 | {
|
1018 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
988 + | type Rejection =
|
989 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1019 990 | type Future = QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture;
|
1020 991 |
|
1021 992 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1022 993 | let fut = async move {
|
1023 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
994 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1024 995 | request.headers(),
|
1025 996 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1026 997 | ) {
|
1027 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
998 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1028 999 | }
|
1029 1000 | 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)
|
1030 1001 | .await
|
1031 1002 | };
|
1032 1003 | use ::futures_util::future::TryFutureExt;
|
1033 - | let fut = fut.map_err(
|
1034 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1035 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1036 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1037 - | e,
|
1038 - | )
|
1039 - | },
|
1040 - | );
|
1004 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1005 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1006 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1007 + | });
|
1041 1008 | QueryParamsTargetingMapOfLengthListOfPatternStringOperationInputFuture {
|
1042 1009 | inner: Box::pin(fut),
|
1043 1010 | }
|
1044 1011 | }
|
1045 1012 | }
|
1046 1013 | impl
|
1047 - | ::aws_smithy_http_server::response::IntoResponse<
|
1048 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1014 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1015 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1049 1016 | > for crate::output::QueryParamsTargetingMapOfLengthListOfPatternStringOperationOutput
|
1050 1017 | {
|
1051 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1018 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1052 1019 | 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) {
|
1053 1020 | Ok(response) => response,
|
1054 1021 | Err(e) => {
|
1055 1022 | ::tracing::error!(error = %e, "failed to serialize response");
|
1056 - | ::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))
|
1023 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1057 1024 | }
|
1058 1025 | }
|
1059 1026 | }
|
1060 1027 | }
|
1061 1028 | impl
|
1062 - | ::aws_smithy_http_server::response::IntoResponse<
|
1063 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1029 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1030 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1064 1031 | > for crate::error::QueryParamsTargetingMapOfLengthListOfPatternStringOperationError
|
1065 1032 | {
|
1066 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1033 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1067 1034 | 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_error(&self) {
|
1068 1035 | Ok(mut response) => {
|
1069 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1036 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1070 1037 | response
|
1071 1038 | },
|
1072 1039 | Err(e) => {
|
1073 1040 | ::tracing::error!(error = %e, "failed to serialize response");
|
1074 - | ::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))
|
1041 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1075 1042 | }
|
1076 1043 | }
|
1077 1044 | }
|
1078 1045 | }
|
1079 1046 |
|
1080 1047 | ::pin_project_lite::pin_project! {
|
1081 1048 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1082 1049 | /// [`QueryParamsTargetingMapOfSetOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput) using modelled bindings.
|
1083 1050 | pub struct QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture {
|
1084 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1051 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1085 1052 | }
|
1086 1053 | }
|
1087 1054 |
|
1088 1055 | impl std::future::Future for QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture {
|
1089 1056 | type Output = Result<
|
1090 1057 | crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput,
|
1091 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1058 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1092 1059 | >;
|
1093 1060 |
|
1094 1061 | fn poll(
|
1095 1062 | self: std::pin::Pin<&mut Self>,
|
1096 1063 | cx: &mut std::task::Context<'_>,
|
1097 1064 | ) -> std::task::Poll<Self::Output> {
|
1098 1065 | let this = self.project();
|
1099 1066 | this.inner.as_mut().poll(cx)
|
1100 1067 | }
|
1101 1068 | }
|
1102 1069 |
|
1103 1070 | impl<B>
|
1104 - | ::aws_smithy_http_server::request::FromRequest<
|
1105 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1071 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1072 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1106 1073 | B,
|
1107 1074 | > for crate::input::QueryParamsTargetingMapOfSetOfLengthStringOperationInput
|
1108 1075 | where
|
1109 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1076 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1110 1077 | B: 'static,
|
1111 1078 |
|
1112 1079 | B::Data: Send,
|
1113 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1114 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1080 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1081 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1115 1082 | {
|
1116 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1083 + | type Rejection =
|
1084 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1117 1085 | type Future = QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture;
|
1118 1086 |
|
1119 1087 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1120 1088 | let fut = async move {
|
1121 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1089 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1122 1090 | request.headers(),
|
1123 1091 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1124 1092 | ) {
|
1125 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1093 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1126 1094 | }
|
1127 1095 | 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 1096 | .await
|
1129 1097 | };
|
1130 1098 | use ::futures_util::future::TryFutureExt;
|
1131 - | let fut = fut.map_err(
|
1132 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1133 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1134 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1135 - | e,
|
1136 - | )
|
1137 - | },
|
1138 - | );
|
1099 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1100 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1101 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1102 + | });
|
1139 1103 | QueryParamsTargetingMapOfSetOfLengthStringOperationInputFuture {
|
1140 1104 | inner: Box::pin(fut),
|
1141 1105 | }
|
1142 1106 | }
|
1143 1107 | }
|
1144 1108 | impl
|
1145 - | ::aws_smithy_http_server::response::IntoResponse<
|
1146 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1109 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1110 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1147 1111 | > for crate::output::QueryParamsTargetingMapOfSetOfLengthStringOperationOutput
|
1148 1112 | {
|
1149 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1113 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1150 1114 | 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) {
|
1151 1115 | Ok(response) => response,
|
1152 1116 | Err(e) => {
|
1153 1117 | ::tracing::error!(error = %e, "failed to serialize response");
|
1154 - | ::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))
|
1118 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1155 1119 | }
|
1156 1120 | }
|
1157 1121 | }
|
1158 1122 | }
|
1159 1123 | impl
|
1160 - | ::aws_smithy_http_server::response::IntoResponse<
|
1161 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1124 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1125 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1162 1126 | > for crate::error::QueryParamsTargetingMapOfSetOfLengthStringOperationError
|
1163 1127 | {
|
1164 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1128 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1165 1129 | 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_error(&self) {
|
1166 1130 | Ok(mut response) => {
|
1167 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1131 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1168 1132 | response
|
1169 1133 | },
|
1170 1134 | Err(e) => {
|
1171 1135 | ::tracing::error!(error = %e, "failed to serialize response");
|
1172 - | ::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))
|
1136 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1173 1137 | }
|
1174 1138 | }
|
1175 1139 | }
|
1176 1140 | }
|
1177 1141 |
|
1178 1142 | ::pin_project_lite::pin_project! {
|
1179 1143 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1180 1144 | /// [`QueryParamsTargetingMapOfListOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput) using modelled bindings.
|
1181 1145 | pub struct QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture {
|
1182 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1146 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1183 1147 | }
|
1184 1148 | }
|
1185 1149 |
|
1186 1150 | impl std::future::Future for QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture {
|
1187 1151 | type Output = Result<
|
1188 1152 | crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput,
|
1189 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1153 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1190 1154 | >;
|
1191 1155 |
|
1192 1156 | fn poll(
|
1193 1157 | self: std::pin::Pin<&mut Self>,
|
1194 1158 | cx: &mut std::task::Context<'_>,
|
1195 1159 | ) -> std::task::Poll<Self::Output> {
|
1196 1160 | let this = self.project();
|
1197 1161 | this.inner.as_mut().poll(cx)
|
1198 1162 | }
|
1199 1163 | }
|
1200 1164 |
|
1201 1165 | impl<B>
|
1202 - | ::aws_smithy_http_server::request::FromRequest<
|
1203 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1166 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1167 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1204 1168 | B,
|
1205 1169 | > for crate::input::QueryParamsTargetingMapOfListOfLengthStringOperationInput
|
1206 1170 | where
|
1207 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1171 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1208 1172 | B: 'static,
|
1209 1173 |
|
1210 1174 | B::Data: Send,
|
1211 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1212 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1175 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1176 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1213 1177 | {
|
1214 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1178 + | type Rejection =
|
1179 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1215 1180 | type Future = QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture;
|
1216 1181 |
|
1217 1182 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1218 1183 | let fut = async move {
|
1219 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1184 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1220 1185 | request.headers(),
|
1221 1186 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1222 1187 | ) {
|
1223 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1188 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1224 1189 | }
|
1225 1190 | 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)
|
1226 1191 | .await
|
1227 1192 | };
|
1228 1193 | use ::futures_util::future::TryFutureExt;
|
1229 - | let fut = fut.map_err(
|
1230 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1231 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1232 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1233 - | e,
|
1234 - | )
|
1235 - | },
|
1236 - | );
|
1194 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1195 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1196 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1197 + | });
|
1237 1198 | QueryParamsTargetingMapOfListOfLengthStringOperationInputFuture {
|
1238 1199 | inner: Box::pin(fut),
|
1239 1200 | }
|
1240 1201 | }
|
1241 1202 | }
|
1242 1203 | impl
|
1243 - | ::aws_smithy_http_server::response::IntoResponse<
|
1244 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1204 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1205 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1245 1206 | > for crate::output::QueryParamsTargetingMapOfListOfLengthStringOperationOutput
|
1246 1207 | {
|
1247 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1208 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1248 1209 | 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) {
|
1249 1210 | Ok(response) => response,
|
1250 1211 | Err(e) => {
|
1251 1212 | ::tracing::error!(error = %e, "failed to serialize response");
|
1252 - | ::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))
|
1213 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1253 1214 | }
|
1254 1215 | }
|
1255 1216 | }
|
1256 1217 | }
|
1257 1218 | impl
|
1258 - | ::aws_smithy_http_server::response::IntoResponse<
|
1259 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1219 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1220 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1260 1221 | > for crate::error::QueryParamsTargetingMapOfListOfLengthStringOperationError
|
1261 1222 | {
|
1262 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1223 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1263 1224 | 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_error(&self) {
|
1264 1225 | Ok(mut response) => {
|
1265 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1226 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1266 1227 | response
|
1267 1228 | },
|
1268 1229 | Err(e) => {
|
1269 1230 | ::tracing::error!(error = %e, "failed to serialize response");
|
1270 - | ::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))
|
1231 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1271 1232 | }
|
1272 1233 | }
|
1273 1234 | }
|
1274 1235 | }
|
1275 1236 |
|
1276 1237 | ::pin_project_lite::pin_project! {
|
1277 1238 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1278 1239 | /// [`QueryParamsTargetingMapOfLengthStringOperationInput`](crate::input::QueryParamsTargetingMapOfLengthStringOperationInput) using modelled bindings.
|
1279 1240 | pub struct QueryParamsTargetingMapOfLengthStringOperationInputFuture {
|
1280 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfLengthStringOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1241 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingMapOfLengthStringOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1281 1242 | }
|
1282 1243 | }
|
1283 1244 |
|
1284 1245 | impl std::future::Future for QueryParamsTargetingMapOfLengthStringOperationInputFuture {
|
1285 1246 | type Output = Result<
|
1286 1247 | crate::input::QueryParamsTargetingMapOfLengthStringOperationInput,
|
1287 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1248 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1288 1249 | >;
|
1289 1250 |
|
1290 1251 | fn poll(
|
1291 1252 | self: std::pin::Pin<&mut Self>,
|
1292 1253 | cx: &mut std::task::Context<'_>,
|
1293 1254 | ) -> std::task::Poll<Self::Output> {
|
1294 1255 | let this = self.project();
|
1295 1256 | this.inner.as_mut().poll(cx)
|
1296 1257 | }
|
1297 1258 | }
|
1298 1259 |
|
1299 1260 | impl<B>
|
1300 - | ::aws_smithy_http_server::request::FromRequest<
|
1301 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1261 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1262 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1302 1263 | B,
|
1303 1264 | > for crate::input::QueryParamsTargetingMapOfLengthStringOperationInput
|
1304 1265 | where
|
1305 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1266 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1306 1267 | B: 'static,
|
1307 1268 |
|
1308 1269 | B::Data: Send,
|
1309 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1310 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1270 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1271 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1311 1272 | {
|
1312 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1273 + | type Rejection =
|
1274 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1313 1275 | type Future = QueryParamsTargetingMapOfLengthStringOperationInputFuture;
|
1314 1276 |
|
1315 1277 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1316 1278 | let fut = async move {
|
1317 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1279 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1318 1280 | request.headers(),
|
1319 1281 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1320 1282 | ) {
|
1321 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1283 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1322 1284 | }
|
1323 1285 | crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::de_query_params_targeting_map_of_length_string_operation_http_request(request)
|
1324 1286 | .await
|
1325 1287 | };
|
1326 1288 | use ::futures_util::future::TryFutureExt;
|
1327 - | let fut = fut.map_err(
|
1328 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1329 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1330 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1331 - | e,
|
1332 - | )
|
1333 - | },
|
1334 - | );
|
1289 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1290 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1291 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1292 + | });
|
1335 1293 | QueryParamsTargetingMapOfLengthStringOperationInputFuture {
|
1336 1294 | inner: Box::pin(fut),
|
1337 1295 | }
|
1338 1296 | }
|
1339 1297 | }
|
1340 1298 | impl
|
1341 - | ::aws_smithy_http_server::response::IntoResponse<
|
1342 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1299 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1300 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1343 1301 | > for crate::output::QueryParamsTargetingMapOfLengthStringOperationOutput
|
1344 1302 | {
|
1345 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1303 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1346 1304 | 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) {
|
1347 1305 | Ok(response) => response,
|
1348 1306 | Err(e) => {
|
1349 1307 | ::tracing::error!(error = %e, "failed to serialize response");
|
1350 - | ::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))
|
1308 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1351 1309 | }
|
1352 1310 | }
|
1353 1311 | }
|
1354 1312 | }
|
1355 1313 | impl
|
1356 - | ::aws_smithy_http_server::response::IntoResponse<
|
1357 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1314 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1315 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1358 1316 | > for crate::error::QueryParamsTargetingMapOfLengthStringOperationError
|
1359 1317 | {
|
1360 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1318 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1361 1319 | match crate::protocol_serde::shape_query_params_targeting_map_of_length_string_operation::ser_query_params_targeting_map_of_length_string_operation_http_error(&self) {
|
1362 1320 | Ok(mut response) => {
|
1363 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1321 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1364 1322 | response
|
1365 1323 | },
|
1366 1324 | Err(e) => {
|
1367 1325 | ::tracing::error!(error = %e, "failed to serialize response");
|
1368 - | ::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))
|
1326 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1369 1327 | }
|
1370 1328 | }
|
1371 1329 | }
|
1372 1330 | }
|
1373 1331 |
|
1374 1332 | ::pin_project_lite::pin_project! {
|
1375 1333 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1376 1334 | /// [`QueryParamsTargetingLengthMapOperationInput`](crate::input::QueryParamsTargetingLengthMapOperationInput) using modelled bindings.
|
1377 1335 | pub struct QueryParamsTargetingLengthMapOperationInputFuture {
|
1378 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1336 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsTargetingLengthMapOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1379 1337 | }
|
1380 1338 | }
|
1381 1339 |
|
1382 1340 | impl std::future::Future for QueryParamsTargetingLengthMapOperationInputFuture {
|
1383 1341 | type Output = Result<
|
1384 1342 | crate::input::QueryParamsTargetingLengthMapOperationInput,
|
1385 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1343 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1386 1344 | >;
|
1387 1345 |
|
1388 1346 | fn poll(
|
1389 1347 | self: std::pin::Pin<&mut Self>,
|
1390 1348 | cx: &mut std::task::Context<'_>,
|
1391 1349 | ) -> std::task::Poll<Self::Output> {
|
1392 1350 | let this = self.project();
|
1393 1351 | this.inner.as_mut().poll(cx)
|
1394 1352 | }
|
1395 1353 | }
|
1396 1354 |
|
1397 1355 | impl<B>
|
1398 - | ::aws_smithy_http_server::request::FromRequest<
|
1399 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1356 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1357 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1400 1358 | B,
|
1401 1359 | > for crate::input::QueryParamsTargetingLengthMapOperationInput
|
1402 1360 | where
|
1403 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1361 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1404 1362 | B: 'static,
|
1405 1363 |
|
1406 1364 | B::Data: Send,
|
1407 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1408 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1365 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1366 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1409 1367 | {
|
1410 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1368 + | type Rejection =
|
1369 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1411 1370 | type Future = QueryParamsTargetingLengthMapOperationInputFuture;
|
1412 1371 |
|
1413 1372 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1414 1373 | let fut = async move {
|
1415 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1374 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1416 1375 | request.headers(),
|
1417 1376 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1418 1377 | ) {
|
1419 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1378 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1420 1379 | }
|
1421 1380 | crate::protocol_serde::shape_query_params_targeting_length_map_operation::de_query_params_targeting_length_map_operation_http_request(request)
|
1422 1381 | .await
|
1423 1382 | };
|
1424 1383 | use ::futures_util::future::TryFutureExt;
|
1425 - | let fut = fut.map_err(
|
1426 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1427 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1428 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1429 - | e,
|
1430 - | )
|
1431 - | },
|
1432 - | );
|
1384 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1385 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1386 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1387 + | });
|
1433 1388 | QueryParamsTargetingLengthMapOperationInputFuture {
|
1434 1389 | inner: Box::pin(fut),
|
1435 1390 | }
|
1436 1391 | }
|
1437 1392 | }
|
1438 1393 | impl
|
1439 - | ::aws_smithy_http_server::response::IntoResponse<
|
1440 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1394 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1395 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1441 1396 | > for crate::output::QueryParamsTargetingLengthMapOperationOutput
|
1442 1397 | {
|
1443 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1398 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1444 1399 | match crate::protocol_serde::shape_query_params_targeting_length_map_operation::ser_query_params_targeting_length_map_operation_http_response(self) {
|
1445 1400 | Ok(response) => response,
|
1446 1401 | Err(e) => {
|
1447 1402 | ::tracing::error!(error = %e, "failed to serialize response");
|
1448 - | ::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))
|
1403 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1449 1404 | }
|
1450 1405 | }
|
1451 1406 | }
|
1452 1407 | }
|
1453 1408 | impl
|
1454 - | ::aws_smithy_http_server::response::IntoResponse<
|
1455 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1409 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1410 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1456 1411 | > for crate::error::QueryParamsTargetingLengthMapOperationError
|
1457 1412 | {
|
1458 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1413 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1459 1414 | match crate::protocol_serde::shape_query_params_targeting_length_map_operation::ser_query_params_targeting_length_map_operation_http_error(&self) {
|
1460 1415 | Ok(mut response) => {
|
1461 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1416 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1462 1417 | response
|
1463 1418 | },
|
1464 1419 | Err(e) => {
|
1465 1420 | ::tracing::error!(error = %e, "failed to serialize response");
|
1466 - | ::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))
|
1421 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1467 1422 | }
|
1468 1423 | }
|
1469 1424 | }
|
1470 1425 | }
|
1471 1426 |
|
1472 1427 | ::pin_project_lite::pin_project! {
|
1473 1428 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1474 1429 | /// [`ConstrainedRecursiveShapesOperationInput`](crate::input::ConstrainedRecursiveShapesOperationInput) using modelled bindings.
|
1475 1430 | pub struct ConstrainedRecursiveShapesOperationInputFuture {
|
1476 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedRecursiveShapesOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1431 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedRecursiveShapesOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1477 1432 | }
|
1478 1433 | }
|
1479 1434 |
|
1480 1435 | impl std::future::Future for ConstrainedRecursiveShapesOperationInputFuture {
|
1481 1436 | type Output = Result<
|
1482 1437 | crate::input::ConstrainedRecursiveShapesOperationInput,
|
1483 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1438 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1484 1439 | >;
|
1485 1440 |
|
1486 1441 | fn poll(
|
1487 1442 | self: std::pin::Pin<&mut Self>,
|
1488 1443 | cx: &mut std::task::Context<'_>,
|
1489 1444 | ) -> std::task::Poll<Self::Output> {
|
1490 1445 | let this = self.project();
|
1491 1446 | this.inner.as_mut().poll(cx)
|
1492 1447 | }
|
1493 1448 | }
|
1494 1449 |
|
1495 1450 | impl<B>
|
1496 - | ::aws_smithy_http_server::request::FromRequest<
|
1497 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1451 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1452 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1498 1453 | B,
|
1499 1454 | > for crate::input::ConstrainedRecursiveShapesOperationInput
|
1500 1455 | where
|
1501 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1456 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1502 1457 | B: 'static,
|
1503 1458 |
|
1504 1459 | B::Data: Send,
|
1505 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1506 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1460 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1461 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1507 1462 | {
|
1508 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1463 + | type Rejection =
|
1464 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1509 1465 | type Future = ConstrainedRecursiveShapesOperationInputFuture;
|
1510 1466 |
|
1511 1467 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1512 1468 | let fut = async move {
|
1513 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1469 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1514 1470 | request.headers(),
|
1515 1471 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1516 1472 | ) {
|
1517 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1473 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1518 1474 | }
|
1519 1475 | crate::protocol_serde::shape_constrained_recursive_shapes_operation::de_constrained_recursive_shapes_operation_http_request(request)
|
1520 1476 | .await
|
1521 1477 | };
|
1522 1478 | use ::futures_util::future::TryFutureExt;
|
1523 - | let fut = fut.map_err(
|
1524 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1525 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1526 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1527 - | e,
|
1528 - | )
|
1529 - | },
|
1530 - | );
|
1479 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1480 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1481 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1482 + | });
|
1531 1483 | ConstrainedRecursiveShapesOperationInputFuture {
|
1532 1484 | inner: Box::pin(fut),
|
1533 1485 | }
|
1534 1486 | }
|
1535 1487 | }
|
1536 1488 | impl
|
1537 - | ::aws_smithy_http_server::response::IntoResponse<
|
1538 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1489 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1490 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1539 1491 | > for crate::output::ConstrainedRecursiveShapesOperationOutput
|
1540 1492 | {
|
1541 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1493 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1542 1494 | match crate::protocol_serde::shape_constrained_recursive_shapes_operation::ser_constrained_recursive_shapes_operation_http_response(self) {
|
1543 1495 | Ok(response) => response,
|
1544 1496 | Err(e) => {
|
1545 1497 | ::tracing::error!(error = %e, "failed to serialize response");
|
1546 - | ::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))
|
1498 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1547 1499 | }
|
1548 1500 | }
|
1549 1501 | }
|
1550 1502 | }
|
1551 1503 | impl
|
1552 - | ::aws_smithy_http_server::response::IntoResponse<
|
1553 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1504 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1505 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1554 1506 | > for crate::error::ConstrainedRecursiveShapesOperationError
|
1555 1507 | {
|
1556 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1508 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1557 1509 | match crate::protocol_serde::shape_constrained_recursive_shapes_operation::ser_constrained_recursive_shapes_operation_http_error(&self) {
|
1558 1510 | Ok(mut response) => {
|
1559 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1511 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1560 1512 | response
|
1561 1513 | },
|
1562 1514 | Err(e) => {
|
1563 1515 | ::tracing::error!(error = %e, "failed to serialize response");
|
1564 - | ::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))
|
1516 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1565 1517 | }
|
1566 1518 | }
|
1567 1519 | }
|
1568 1520 | }
|
1569 1521 |
|
1570 1522 | ::pin_project_lite::pin_project! {
|
1571 1523 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1572 1524 | /// [`ConstrainedHttpPayloadBoundShapeOperationInput`](crate::input::ConstrainedHttpPayloadBoundShapeOperationInput) using modelled bindings.
|
1573 1525 | pub struct ConstrainedHttpPayloadBoundShapeOperationInputFuture {
|
1574 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1526 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedHttpPayloadBoundShapeOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1575 1527 | }
|
1576 1528 | }
|
1577 1529 |
|
1578 1530 | impl std::future::Future for ConstrainedHttpPayloadBoundShapeOperationInputFuture {
|
1579 1531 | type Output = Result<
|
1580 1532 | crate::input::ConstrainedHttpPayloadBoundShapeOperationInput,
|
1581 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1533 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1582 1534 | >;
|
1583 1535 |
|
1584 1536 | fn poll(
|
1585 1537 | self: std::pin::Pin<&mut Self>,
|
1586 1538 | cx: &mut std::task::Context<'_>,
|
1587 1539 | ) -> std::task::Poll<Self::Output> {
|
1588 1540 | let this = self.project();
|
1589 1541 | this.inner.as_mut().poll(cx)
|
1590 1542 | }
|
1591 1543 | }
|
1592 1544 |
|
1593 1545 | impl<B>
|
1594 - | ::aws_smithy_http_server::request::FromRequest<
|
1595 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1546 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1547 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1596 1548 | B,
|
1597 1549 | > for crate::input::ConstrainedHttpPayloadBoundShapeOperationInput
|
1598 1550 | where
|
1599 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1551 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1600 1552 | B: 'static,
|
1601 1553 |
|
1602 1554 | B::Data: Send,
|
1603 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1604 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1555 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1556 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1605 1557 | {
|
1606 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1558 + | type Rejection =
|
1559 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1607 1560 | type Future = ConstrainedHttpPayloadBoundShapeOperationInputFuture;
|
1608 1561 |
|
1609 1562 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1610 1563 | let fut = async move {
|
1611 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1564 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1612 1565 | request.headers(),
|
1613 1566 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1614 1567 | ) {
|
1615 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1568 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1616 1569 | }
|
1617 1570 | crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::de_constrained_http_payload_bound_shape_operation_http_request(request)
|
1618 1571 | .await
|
1619 1572 | };
|
1620 1573 | use ::futures_util::future::TryFutureExt;
|
1621 - | let fut = fut.map_err(
|
1622 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1623 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1624 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1625 - | e,
|
1626 - | )
|
1627 - | },
|
1628 - | );
|
1574 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1575 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1576 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1577 + | });
|
1629 1578 | ConstrainedHttpPayloadBoundShapeOperationInputFuture {
|
1630 1579 | inner: Box::pin(fut),
|
1631 1580 | }
|
1632 1581 | }
|
1633 1582 | }
|
1634 1583 | impl
|
1635 - | ::aws_smithy_http_server::response::IntoResponse<
|
1636 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1584 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1585 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1637 1586 | > for crate::output::ConstrainedHttpPayloadBoundShapeOperationOutput
|
1638 1587 | {
|
1639 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1588 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1640 1589 | match crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::ser_constrained_http_payload_bound_shape_operation_http_response(self) {
|
1641 1590 | Ok(response) => response,
|
1642 1591 | Err(e) => {
|
1643 1592 | ::tracing::error!(error = %e, "failed to serialize response");
|
1644 - | ::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))
|
1593 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1645 1594 | }
|
1646 1595 | }
|
1647 1596 | }
|
1648 1597 | }
|
1649 1598 | impl
|
1650 - | ::aws_smithy_http_server::response::IntoResponse<
|
1651 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1599 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1600 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1652 1601 | > for crate::error::ConstrainedHttpPayloadBoundShapeOperationError
|
1653 1602 | {
|
1654 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1603 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1655 1604 | match crate::protocol_serde::shape_constrained_http_payload_bound_shape_operation::ser_constrained_http_payload_bound_shape_operation_http_error(&self) {
|
1656 1605 | Ok(mut response) => {
|
1657 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1606 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1658 1607 | response
|
1659 1608 | },
|
1660 1609 | Err(e) => {
|
1661 1610 | ::tracing::error!(error = %e, "failed to serialize response");
|
1662 - | ::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))
|
1611 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1663 1612 | }
|
1664 1613 | }
|
1665 1614 | }
|
1666 1615 | }
|
1667 1616 |
|
1668 1617 | ::pin_project_lite::pin_project! {
|
1669 1618 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1670 1619 | /// [`ConstrainedHttpBoundShapesOperationInput`](crate::input::ConstrainedHttpBoundShapesOperationInput) using modelled bindings.
|
1671 1620 | pub struct ConstrainedHttpBoundShapesOperationInputFuture {
|
1672 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1621 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedHttpBoundShapesOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1673 1622 | }
|
1674 1623 | }
|
1675 1624 |
|
1676 1625 | impl std::future::Future for ConstrainedHttpBoundShapesOperationInputFuture {
|
1677 1626 | type Output = Result<
|
1678 1627 | crate::input::ConstrainedHttpBoundShapesOperationInput,
|
1679 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1628 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1680 1629 | >;
|
1681 1630 |
|
1682 1631 | fn poll(
|
1683 1632 | self: std::pin::Pin<&mut Self>,
|
1684 1633 | cx: &mut std::task::Context<'_>,
|
1685 1634 | ) -> std::task::Poll<Self::Output> {
|
1686 1635 | let this = self.project();
|
1687 1636 | this.inner.as_mut().poll(cx)
|
1688 1637 | }
|
1689 1638 | }
|
1690 1639 |
|
1691 1640 | impl<B>
|
1692 - | ::aws_smithy_http_server::request::FromRequest<
|
1693 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1641 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1642 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1694 1643 | B,
|
1695 1644 | > for crate::input::ConstrainedHttpBoundShapesOperationInput
|
1696 1645 | where
|
1697 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1646 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1698 1647 | B: 'static,
|
1699 1648 |
|
1700 1649 | B::Data: Send,
|
1701 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1702 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1650 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1651 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1703 1652 | {
|
1704 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1653 + | type Rejection =
|
1654 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1705 1655 | type Future = ConstrainedHttpBoundShapesOperationInputFuture;
|
1706 1656 |
|
1707 1657 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1708 1658 | let fut = async move {
|
1709 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1659 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1710 1660 | request.headers(),
|
1711 1661 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1712 1662 | ) {
|
1713 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1663 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1714 1664 | }
|
1715 1665 | crate::protocol_serde::shape_constrained_http_bound_shapes_operation::de_constrained_http_bound_shapes_operation_http_request(request)
|
1716 1666 | .await
|
1717 1667 | };
|
1718 1668 | use ::futures_util::future::TryFutureExt;
|
1719 - | let fut = fut.map_err(
|
1720 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1721 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1722 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1723 - | e,
|
1724 - | )
|
1725 - | },
|
1726 - | );
|
1669 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1670 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1671 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1672 + | });
|
1727 1673 | ConstrainedHttpBoundShapesOperationInputFuture {
|
1728 1674 | inner: Box::pin(fut),
|
1729 1675 | }
|
1730 1676 | }
|
1731 1677 | }
|
1732 1678 | impl
|
1733 - | ::aws_smithy_http_server::response::IntoResponse<
|
1734 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1679 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1680 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1735 1681 | > for crate::output::ConstrainedHttpBoundShapesOperationOutput
|
1736 1682 | {
|
1737 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1683 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1738 1684 | match crate::protocol_serde::shape_constrained_http_bound_shapes_operation::ser_constrained_http_bound_shapes_operation_http_response(self) {
|
1739 1685 | Ok(response) => response,
|
1740 1686 | Err(e) => {
|
1741 1687 | ::tracing::error!(error = %e, "failed to serialize response");
|
1742 - | ::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))
|
1688 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1743 1689 | }
|
1744 1690 | }
|
1745 1691 | }
|
1746 1692 | }
|
1747 1693 | impl
|
1748 - | ::aws_smithy_http_server::response::IntoResponse<
|
1749 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1694 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1695 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1750 1696 | > for crate::error::ConstrainedHttpBoundShapesOperationError
|
1751 1697 | {
|
1752 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1698 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1753 1699 | match crate::protocol_serde::shape_constrained_http_bound_shapes_operation::ser_constrained_http_bound_shapes_operation_http_error(&self) {
|
1754 1700 | Ok(mut response) => {
|
1755 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1701 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1756 1702 | response
|
1757 1703 | },
|
1758 1704 | Err(e) => {
|
1759 1705 | ::tracing::error!(error = %e, "failed to serialize response");
|
1760 - | ::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))
|
1706 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1761 1707 | }
|
1762 1708 | }
|
1763 1709 | }
|
1764 1710 | }
|
1765 1711 |
|
1766 1712 | ::pin_project_lite::pin_project! {
|
1767 1713 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1768 1714 | /// [`ConstrainedShapesOnlyInOutputOperationInput`](crate::input::ConstrainedShapesOnlyInOutputOperationInput) using modelled bindings.
|
1769 1715 | pub struct ConstrainedShapesOnlyInOutputOperationInputFuture {
|
1770 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedShapesOnlyInOutputOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1716 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedShapesOnlyInOutputOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1771 1717 | }
|
1772 1718 | }
|
1773 1719 |
|
1774 1720 | impl std::future::Future for ConstrainedShapesOnlyInOutputOperationInputFuture {
|
1775 1721 | type Output = Result<
|
1776 1722 | crate::input::ConstrainedShapesOnlyInOutputOperationInput,
|
1777 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1723 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1778 1724 | >;
|
1779 1725 |
|
1780 1726 | fn poll(
|
1781 1727 | self: std::pin::Pin<&mut Self>,
|
1782 1728 | cx: &mut std::task::Context<'_>,
|
1783 1729 | ) -> std::task::Poll<Self::Output> {
|
1784 1730 | let this = self.project();
|
1785 1731 | this.inner.as_mut().poll(cx)
|
1786 1732 | }
|
1787 1733 | }
|
1788 1734 |
|
1789 1735 | impl<B>
|
1790 - | ::aws_smithy_http_server::request::FromRequest<
|
1791 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1736 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1737 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1792 1738 | B,
|
1793 1739 | > for crate::input::ConstrainedShapesOnlyInOutputOperationInput
|
1794 1740 | where
|
1795 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1741 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1796 1742 | B: 'static,
|
1797 1743 |
|
1798 1744 | B::Data: Send,
|
1799 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1800 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1745 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1746 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1801 1747 | {
|
1802 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1748 + | type Rejection =
|
1749 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1803 1750 | type Future = ConstrainedShapesOnlyInOutputOperationInputFuture;
|
1804 1751 |
|
1805 1752 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1806 1753 | let fut = async move {
|
1807 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1754 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1808 1755 | request.headers(),
|
1809 1756 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1810 1757 | ) {
|
1811 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1758 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1812 1759 | }
|
1813 1760 | crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::de_constrained_shapes_only_in_output_operation_http_request(request)
|
1814 1761 | .await
|
1815 1762 | };
|
1816 1763 | use ::futures_util::future::TryFutureExt;
|
1817 - | let fut = fut.map_err(
|
1818 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1819 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1820 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1821 - | e,
|
1822 - | )
|
1823 - | },
|
1824 - | );
|
1764 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1765 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1766 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1767 + | });
|
1825 1768 | ConstrainedShapesOnlyInOutputOperationInputFuture {
|
1826 1769 | inner: Box::pin(fut),
|
1827 1770 | }
|
1828 1771 | }
|
1829 1772 | }
|
1830 1773 | impl
|
1831 - | ::aws_smithy_http_server::response::IntoResponse<
|
1832 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1774 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1775 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1833 1776 | > for crate::output::ConstrainedShapesOnlyInOutputOperationOutput
|
1834 1777 | {
|
1835 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1778 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1836 1779 | match crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::ser_constrained_shapes_only_in_output_operation_http_response(self) {
|
1837 1780 | Ok(response) => response,
|
1838 1781 | Err(e) => {
|
1839 1782 | ::tracing::error!(error = %e, "failed to serialize response");
|
1840 - | ::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))
|
1783 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1841 1784 | }
|
1842 1785 | }
|
1843 1786 | }
|
1844 1787 | }
|
1845 1788 | impl
|
1846 - | ::aws_smithy_http_server::response::IntoResponse<
|
1847 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1789 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1790 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1848 1791 | > for crate::error::ConstrainedShapesOnlyInOutputOperationError
|
1849 1792 | {
|
1850 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1793 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1851 1794 | match crate::protocol_serde::shape_constrained_shapes_only_in_output_operation::ser_constrained_shapes_only_in_output_operation_http_error(&self) {
|
1852 1795 | Ok(mut response) => {
|
1853 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1796 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1854 1797 | response
|
1855 1798 | },
|
1856 1799 | Err(e) => {
|
1857 1800 | ::tracing::error!(error = %e, "failed to serialize response");
|
1858 - | ::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))
|
1801 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1859 1802 | }
|
1860 1803 | }
|
1861 1804 | }
|
1862 1805 | }
|
1863 1806 |
|
1864 1807 | ::pin_project_lite::pin_project! {
|
1865 1808 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1866 1809 | /// [`ConstrainedShapesOperationInput`](crate::input::ConstrainedShapesOperationInput) using modelled bindings.
|
1867 1810 | pub struct ConstrainedShapesOperationInputFuture {
|
1868 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedShapesOperationInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1811 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstrainedShapesOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1869 1812 | }
|
1870 1813 | }
|
1871 1814 |
|
1872 1815 | impl std::future::Future for ConstrainedShapesOperationInputFuture {
|
1873 1816 | type Output = Result<
|
1874 1817 | crate::input::ConstrainedShapesOperationInput,
|
1875 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1818 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1876 1819 | >;
|
1877 1820 |
|
1878 1821 | fn poll(
|
1879 1822 | self: std::pin::Pin<&mut Self>,
|
1880 1823 | cx: &mut std::task::Context<'_>,
|
1881 1824 | ) -> std::task::Poll<Self::Output> {
|
1882 1825 | let this = self.project();
|
1883 1826 | this.inner.as_mut().poll(cx)
|
1884 1827 | }
|
1885 1828 | }
|
1886 1829 |
|
1887 1830 | impl<B>
|
1888 - | ::aws_smithy_http_server::request::FromRequest<
|
1889 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1831 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1832 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1890 1833 | B,
|
1891 1834 | > for crate::input::ConstrainedShapesOperationInput
|
1892 1835 | where
|
1893 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
1836 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1894 1837 | B: 'static,
|
1895 1838 |
|
1896 1839 | B::Data: Send,
|
1897 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1898 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
1840 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1841 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1899 1842 | {
|
1900 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1843 + | type Rejection =
|
1844 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1901 1845 | type Future = ConstrainedShapesOperationInputFuture;
|
1902 1846 |
|
1903 1847 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1904 1848 | let fut = async move {
|
1905 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
1849 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1906 1850 | request.headers(),
|
1907 1851 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1908 1852 | ) {
|
1909 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1853 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1910 1854 | }
|
1911 1855 | crate::protocol_serde::shape_constrained_shapes_operation::de_constrained_shapes_operation_http_request(request)
|
1912 1856 | .await
|
1913 1857 | };
|
1914 1858 | use ::futures_util::future::TryFutureExt;
|
1915 - | let fut = fut.map_err(
|
1916 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1917 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1918 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
1919 - | e,
|
1920 - | )
|
1921 - | },
|
1922 - | );
|
1859 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1860 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1861 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1862 + | });
|
1923 1863 | ConstrainedShapesOperationInputFuture {
|
1924 1864 | inner: Box::pin(fut),
|
1925 1865 | }
|
1926 1866 | }
|
1927 1867 | }
|
1928 1868 | impl
|
1929 - | ::aws_smithy_http_server::response::IntoResponse<
|
1930 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1869 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1870 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1931 1871 | > for crate::output::ConstrainedShapesOperationOutput
|
1932 1872 | {
|
1933 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1873 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1934 1874 | match crate::protocol_serde::shape_constrained_shapes_operation::ser_constrained_shapes_operation_http_response(self) {
|
1935 1875 | Ok(response) => response,
|
1936 1876 | Err(e) => {
|
1937 1877 | ::tracing::error!(error = %e, "failed to serialize response");
|
1938 - | ::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))
|
1878 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1939 1879 | }
|
1940 1880 | }
|
1941 1881 | }
|
1942 1882 | }
|
1943 1883 | impl
|
1944 - | ::aws_smithy_http_server::response::IntoResponse<
|
1945 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
1884 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1885 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1946 1886 | > for crate::error::ConstrainedShapesOperationError
|
1947 1887 | {
|
1948 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
1888 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1949 1889 | match crate::protocol_serde::shape_constrained_shapes_operation::ser_constrained_shapes_operation_http_error(&self) {
|
1950 1890 | Ok(mut response) => {
|
1951 - | response.extensions_mut().insert(::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1891 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1952 1892 | response
|
1953 1893 | },
|
1954 1894 | Err(e) => {
|
1955 1895 | ::tracing::error!(error = %e, "failed to serialize response");
|
1956 - | ::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))
|
1896 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
1957 1897 | }
|
1958 1898 | }
|
1959 1899 | }
|
1960 1900 | }
|