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 - | /// [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) using modelled bindings.
|
5 - | pub struct OperationWithNestedStructureInputFuture {
|
6 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OperationWithNestedStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4 + | /// [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput) using modelled bindings.
|
5 + | pub struct NoInputAndNoOutputInputFuture {
|
6 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NoInputAndNoOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7 7 | }
|
8 8 | }
|
9 9 |
|
10 - | impl std::future::Future for OperationWithNestedStructureInputFuture {
|
10 + | impl std::future::Future for NoInputAndNoOutputInputFuture {
|
11 11 | type Output = Result<
|
12 - | crate::input::OperationWithNestedStructureInput,
|
12 + | crate::input::NoInputAndNoOutputInput,
|
13 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 26 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
27 27 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
28 28 | B,
|
29 - | > for crate::input::OperationWithNestedStructureInput
|
29 + | > for crate::input::NoInputAndNoOutputInput
|
30 30 | where
|
31 31 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
32 32 | B: 'static,
|
33 33 |
|
34 34 | B::Data: Send,
|
35 35 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36 36 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
37 37 | {
|
38 38 | type Rejection =
|
39 39 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
40 - | type Future = OperationWithNestedStructureInputFuture;
|
40 + | type Future = NoInputAndNoOutputInputFuture;
|
41 41 |
|
42 42 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
43 43 | let fut = async move {
|
44 44 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
45 45 | request.headers(),
|
46 46 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
47 47 | ) {
|
48 48 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
49 49 | }
|
50 - | crate::protocol_serde::shape_operation_with_nested_structure::de_operation_with_nested_structure_http_request(request)
|
50 + | crate::protocol_serde::shape_no_input_and_no_output::de_no_input_and_no_output_http_request(request)
|
51 51 | .await
|
52 52 | };
|
53 53 | use ::futures_util::future::TryFutureExt;
|
54 54 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
55 55 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
56 56 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
57 57 | });
|
58 - | OperationWithNestedStructureInputFuture {
|
58 + | NoInputAndNoOutputInputFuture {
|
59 59 | inner: Box::pin(fut),
|
60 60 | }
|
61 61 | }
|
62 62 | }
|
63 63 | impl
|
64 64 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
65 65 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
66 - | > for crate::output::OperationWithNestedStructureOutput
|
66 + | > for crate::output::NoInputAndNoOutputOutput
|
67 67 | {
|
68 68 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
69 - | match crate::protocol_serde::shape_operation_with_nested_structure::ser_operation_with_nested_structure_http_response(self) {
|
69 + | match crate::protocol_serde::shape_no_input_and_no_output::ser_no_input_and_no_output_http_response(self) {
|
70 70 | Ok(response) => response,
|
71 71 | Err(e) => {
|
72 72 | ::tracing::error!(error = %e, "failed to serialize response");
|
73 73 | ::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))
|
74 74 | }
|
75 75 | }
|
76 76 | }
|
77 77 | }
|
78 78 | impl
|
79 79 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
80 80 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
81 - | > for crate::error::OperationWithNestedStructureError
|
81 + | > for crate::error::NoInputAndNoOutputError
|
82 82 | {
|
83 83 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
84 - | match crate::protocol_serde::shape_operation_with_nested_structure::ser_operation_with_nested_structure_http_error(&self) {
|
84 + | match crate::protocol_serde::shape_no_input_and_no_output::ser_no_input_and_no_output_http_error(&self) {
|
85 85 | Ok(mut response) => {
|
86 86 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
87 87 | response
|
88 88 | },
|
89 89 | Err(e) => {
|
90 90 | ::tracing::error!(error = %e, "failed to serialize response");
|
91 91 | ::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))
|
92 92 | }
|
93 93 | }
|
94 94 | }
|
95 95 | }
|
96 96 |
|
97 97 | ::pin_project_lite::pin_project! {
|
98 98 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
99 - | /// [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) using modelled bindings.
|
100 - | pub struct OperationWithDefaultsInputFuture {
|
101 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OperationWithDefaultsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
99 + | /// [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput) using modelled bindings.
|
100 + | pub struct NoInputAndOutputInputFuture {
|
101 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NoInputAndOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
102 102 | }
|
103 103 | }
|
104 104 |
|
105 - | impl std::future::Future for OperationWithDefaultsInputFuture {
|
105 + | impl std::future::Future for NoInputAndOutputInputFuture {
|
106 106 | type Output = Result<
|
107 - | crate::input::OperationWithDefaultsInput,
|
107 + | crate::input::NoInputAndOutputInput,
|
108 108 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
109 109 | >;
|
110 110 |
|
111 111 | fn poll(
|
112 112 | self: std::pin::Pin<&mut Self>,
|
113 113 | cx: &mut std::task::Context<'_>,
|
114 114 | ) -> std::task::Poll<Self::Output> {
|
115 115 | let this = self.project();
|
116 116 | this.inner.as_mut().poll(cx)
|
117 117 | }
|
118 118 | }
|
119 119 |
|
120 120 | impl<B>
|
121 121 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
122 122 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
123 123 | B,
|
124 - | > for crate::input::OperationWithDefaultsInput
|
124 + | > for crate::input::NoInputAndOutputInput
|
125 125 | where
|
126 126 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
127 127 | B: 'static,
|
128 128 |
|
129 129 | B::Data: Send,
|
130 130 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
131 131 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
132 132 | {
|
133 133 | type Rejection =
|
134 134 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
135 - | type Future = OperationWithDefaultsInputFuture;
|
135 + | type Future = NoInputAndOutputInputFuture;
|
136 136 |
|
137 137 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
138 138 | let fut = async move {
|
139 139 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
140 140 | request.headers(),
|
141 141 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
142 142 | ) {
|
143 143 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
144 144 | }
|
145 - | crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_request(request)
|
146 - | .await
|
145 + | crate::protocol_serde::shape_no_input_and_output::de_no_input_and_output_http_request(
|
146 + | request,
|
147 + | )
|
148 + | .await
|
147 149 | };
|
148 150 | use ::futures_util::future::TryFutureExt;
|
149 151 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
150 152 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
151 153 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
152 154 | });
|
153 - | OperationWithDefaultsInputFuture {
|
155 + | NoInputAndOutputInputFuture {
|
154 156 | inner: Box::pin(fut),
|
155 157 | }
|
156 158 | }
|
157 159 | }
|
158 160 | impl
|
159 161 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
160 162 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
161 - | > for crate::output::OperationWithDefaultsOutput
|
163 + | > for crate::output::NoInputAndOutputOutput
|
162 164 | {
|
163 165 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
164 - | match crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_http_response(self) {
|
166 + | match crate::protocol_serde::shape_no_input_and_output::ser_no_input_and_output_http_response(self) {
|
165 167 | Ok(response) => response,
|
166 168 | Err(e) => {
|
167 169 | ::tracing::error!(error = %e, "failed to serialize response");
|
168 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))
|
169 171 | }
|
170 172 | }
|
171 173 | }
|
172 174 | }
|
173 175 | impl
|
174 176 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
175 177 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
176 - | > for crate::error::OperationWithDefaultsError
|
178 + | > for crate::error::NoInputAndOutputError
|
177 179 | {
|
178 180 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
179 - | match crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_http_error(&self) {
|
181 + | match crate::protocol_serde::shape_no_input_and_output::ser_no_input_and_output_http_error(
|
182 + | &self,
|
183 + | ) {
|
180 184 | Ok(mut response) => {
|
181 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
185 + | response.extensions_mut().insert(
|
186 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
187 + | self.name(),
|
188 + | ),
|
189 + | );
|
182 190 | response
|
183 - | },
|
191 + | }
|
184 192 | Err(e) => {
|
185 193 | ::tracing::error!(error = %e, "failed to serialize response");
|
186 194 | ::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))
|
187 195 | }
|
188 196 | }
|
189 197 | }
|
190 198 | }
|
191 199 |
|
192 200 | ::pin_project_lite::pin_project! {
|
193 201 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
194 - | /// [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput) using modelled bindings.
|
195 - | pub struct ContentTypeParametersInputFuture {
|
196 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ContentTypeParametersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
202 + | /// [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput) using modelled bindings.
|
203 + | pub struct EmptyInputAndEmptyOutputInputFuture {
|
204 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EmptyInputAndEmptyOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
197 205 | }
|
198 206 | }
|
199 207 |
|
200 - | impl std::future::Future for ContentTypeParametersInputFuture {
|
208 + | impl std::future::Future for EmptyInputAndEmptyOutputInputFuture {
|
201 209 | type Output = Result<
|
202 - | crate::input::ContentTypeParametersInput,
|
210 + | crate::input::EmptyInputAndEmptyOutputInput,
|
203 211 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
204 212 | >;
|
205 213 |
|
206 214 | fn poll(
|
207 215 | self: std::pin::Pin<&mut Self>,
|
208 216 | cx: &mut std::task::Context<'_>,
|
209 217 | ) -> std::task::Poll<Self::Output> {
|
210 218 | let this = self.project();
|
211 219 | this.inner.as_mut().poll(cx)
|
212 220 | }
|
213 221 | }
|
214 222 |
|
215 223 | impl<B>
|
216 224 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
217 225 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
218 226 | B,
|
219 - | > for crate::input::ContentTypeParametersInput
|
227 + | > for crate::input::EmptyInputAndEmptyOutputInput
|
220 228 | where
|
221 229 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
222 230 | B: 'static,
|
223 231 |
|
224 232 | B::Data: Send,
|
225 233 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
226 234 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
227 235 | {
|
228 236 | type Rejection =
|
229 237 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
230 - | type Future = ContentTypeParametersInputFuture;
|
238 + | type Future = EmptyInputAndEmptyOutputInputFuture;
|
231 239 |
|
232 240 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
233 241 | let fut = async move {
|
234 242 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
235 243 | request.headers(),
|
236 244 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
237 245 | ) {
|
238 246 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
239 247 | }
|
240 - | crate::protocol_serde::shape_content_type_parameters::de_content_type_parameters_http_request(request)
|
248 + | crate::protocol_serde::shape_empty_input_and_empty_output::de_empty_input_and_empty_output_http_request(request)
|
241 249 | .await
|
242 250 | };
|
243 251 | use ::futures_util::future::TryFutureExt;
|
244 252 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
245 253 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
246 254 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
247 255 | });
|
248 - | ContentTypeParametersInputFuture {
|
256 + | EmptyInputAndEmptyOutputInputFuture {
|
249 257 | inner: Box::pin(fut),
|
250 258 | }
|
251 259 | }
|
252 260 | }
|
253 261 | impl
|
254 262 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
255 263 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
256 - | > for crate::output::ContentTypeParametersOutput
|
264 + | > for crate::output::EmptyInputAndEmptyOutputOutput
|
257 265 | {
|
258 266 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
259 - | match crate::protocol_serde::shape_content_type_parameters::ser_content_type_parameters_http_response(self) {
|
267 + | match crate::protocol_serde::shape_empty_input_and_empty_output::ser_empty_input_and_empty_output_http_response(self) {
|
260 268 | Ok(response) => response,
|
261 269 | Err(e) => {
|
262 270 | ::tracing::error!(error = %e, "failed to serialize response");
|
263 271 | ::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))
|
264 272 | }
|
265 273 | }
|
266 274 | }
|
267 275 | }
|
268 276 | impl
|
269 277 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
270 278 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
271 - | > for crate::error::ContentTypeParametersError
|
279 + | > for crate::error::EmptyInputAndEmptyOutputError
|
272 280 | {
|
273 281 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
274 - | match crate::protocol_serde::shape_content_type_parameters::ser_content_type_parameters_http_error(&self) {
|
282 + | match crate::protocol_serde::shape_empty_input_and_empty_output::ser_empty_input_and_empty_output_http_error(&self) {
|
275 283 | Ok(mut response) => {
|
276 284 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
277 285 | response
|
278 286 | },
|
279 287 | Err(e) => {
|
280 288 | ::tracing::error!(error = %e, "failed to serialize response");
|
281 289 | ::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))
|
282 290 | }
|
283 291 | }
|
284 292 | }
|
285 293 | }
|
286 294 |
|
287 295 | ::pin_project_lite::pin_project! {
|
288 296 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
289 - | /// [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput) using modelled bindings.
|
290 - | pub struct PutWithContentEncodingInputFuture {
|
291 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PutWithContentEncodingInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
297 + | /// [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput) using modelled bindings.
|
298 + | pub struct UnitInputAndOutputInputFuture {
|
299 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::UnitInputAndOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
292 300 | }
|
293 301 | }
|
294 302 |
|
295 - | impl std::future::Future for PutWithContentEncodingInputFuture {
|
303 + | impl std::future::Future for UnitInputAndOutputInputFuture {
|
296 304 | type Output = Result<
|
297 - | crate::input::PutWithContentEncodingInput,
|
305 + | crate::input::UnitInputAndOutputInput,
|
298 306 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
299 307 | >;
|
300 308 |
|
301 309 | fn poll(
|
302 310 | self: std::pin::Pin<&mut Self>,
|
303 311 | cx: &mut std::task::Context<'_>,
|
304 312 | ) -> std::task::Poll<Self::Output> {
|
305 313 | let this = self.project();
|
306 314 | this.inner.as_mut().poll(cx)
|
307 315 | }
|
308 316 | }
|
309 317 |
|
310 318 | impl<B>
|
311 319 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
312 320 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
313 321 | B,
|
314 - | > for crate::input::PutWithContentEncodingInput
|
322 + | > for crate::input::UnitInputAndOutputInput
|
315 323 | where
|
316 324 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
317 325 | B: 'static,
|
318 326 |
|
319 327 | B::Data: Send,
|
320 328 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
321 329 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
322 330 | {
|
323 331 | type Rejection =
|
324 332 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
325 - | type Future = PutWithContentEncodingInputFuture;
|
333 + | type Future = UnitInputAndOutputInputFuture;
|
326 334 |
|
327 335 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
328 336 | let fut = async move {
|
329 337 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
330 338 | request.headers(),
|
331 339 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
332 340 | ) {
|
333 341 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
334 342 | }
|
335 - | crate::protocol_serde::shape_put_with_content_encoding::de_put_with_content_encoding_http_request(request)
|
343 + | crate::protocol_serde::shape_unit_input_and_output::de_unit_input_and_output_http_request(request)
|
336 344 | .await
|
337 345 | };
|
338 346 | use ::futures_util::future::TryFutureExt;
|
339 347 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
340 348 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
341 349 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
342 350 | });
|
343 - | PutWithContentEncodingInputFuture {
|
351 + | UnitInputAndOutputInputFuture {
|
344 352 | inner: Box::pin(fut),
|
345 353 | }
|
346 354 | }
|
347 355 | }
|
348 356 | impl
|
349 357 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
350 358 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
351 - | > for crate::output::PutWithContentEncodingOutput
|
359 + | > for crate::output::UnitInputAndOutputOutput
|
352 360 | {
|
353 361 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
354 - | match crate::protocol_serde::shape_put_with_content_encoding::ser_put_with_content_encoding_http_response(self) {
|
362 + | match crate::protocol_serde::shape_unit_input_and_output::ser_unit_input_and_output_http_response(self) {
|
355 363 | Ok(response) => response,
|
356 364 | Err(e) => {
|
357 365 | ::tracing::error!(error = %e, "failed to serialize response");
|
358 366 | ::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))
|
359 367 | }
|
360 368 | }
|
361 369 | }
|
362 370 | }
|
363 371 | impl
|
364 372 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
365 373 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
366 - | > for crate::error::PutWithContentEncodingError
|
374 + | > for crate::error::UnitInputAndOutputError
|
367 375 | {
|
368 376 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
369 - | match crate::protocol_serde::shape_put_with_content_encoding::ser_put_with_content_encoding_http_error(&self) {
|
377 + | match crate::protocol_serde::shape_unit_input_and_output::ser_unit_input_and_output_http_error(&self) {
|
370 378 | Ok(mut response) => {
|
371 379 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
372 380 | response
|
373 381 | },
|
374 382 | Err(e) => {
|
375 383 | ::tracing::error!(error = %e, "failed to serialize response");
|
376 384 | ::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))
|
377 385 | }
|
378 386 | }
|
379 387 | }
|
380 388 | }
|
381 389 |
|
382 390 | ::pin_project_lite::pin_project! {
|
383 391 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
384 - | /// [`FractionalSecondsInput`](crate::input::FractionalSecondsInput) using modelled bindings.
|
385 - | pub struct FractionalSecondsInputFuture {
|
386 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::FractionalSecondsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
392 + | /// [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput) using modelled bindings.
|
393 + | pub struct InputAndOutputWithHeadersInputFuture {
|
394 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::InputAndOutputWithHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
387 395 | }
|
388 396 | }
|
389 397 |
|
390 - | impl std::future::Future for FractionalSecondsInputFuture {
|
398 + | impl std::future::Future for InputAndOutputWithHeadersInputFuture {
|
391 399 | type Output = Result<
|
392 - | crate::input::FractionalSecondsInput,
|
400 + | crate::input::InputAndOutputWithHeadersInput,
|
393 401 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
394 402 | >;
|
395 403 |
|
396 404 | fn poll(
|
397 405 | self: std::pin::Pin<&mut Self>,
|
398 406 | cx: &mut std::task::Context<'_>,
|
399 407 | ) -> std::task::Poll<Self::Output> {
|
400 408 | let this = self.project();
|
401 409 | this.inner.as_mut().poll(cx)
|
402 410 | }
|
403 411 | }
|
404 412 |
|
405 413 | impl<B>
|
406 414 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
407 415 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
408 416 | B,
|
409 - | > for crate::input::FractionalSecondsInput
|
417 + | > for crate::input::InputAndOutputWithHeadersInput
|
410 418 | where
|
411 419 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
412 420 | B: 'static,
|
413 421 |
|
414 422 | B::Data: Send,
|
415 423 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
416 424 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
417 425 | {
|
418 426 | type Rejection =
|
419 427 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
420 - | type Future = FractionalSecondsInputFuture;
|
428 + | type Future = InputAndOutputWithHeadersInputFuture;
|
421 429 |
|
422 430 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
423 431 | let fut = async move {
|
424 432 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
425 433 | request.headers(),
|
426 434 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
427 435 | ) {
|
428 436 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
429 437 | }
|
430 - | crate::protocol_serde::shape_fractional_seconds::de_fractional_seconds_http_request(
|
431 - | request,
|
432 - | )
|
433 - | .await
|
438 + | crate::protocol_serde::shape_input_and_output_with_headers::de_input_and_output_with_headers_http_request(request)
|
439 + | .await
|
434 440 | };
|
435 441 | use ::futures_util::future::TryFutureExt;
|
436 442 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
437 443 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
438 444 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
439 445 | });
|
440 - | FractionalSecondsInputFuture {
|
446 + | InputAndOutputWithHeadersInputFuture {
|
441 447 | inner: Box::pin(fut),
|
442 448 | }
|
443 449 | }
|
444 450 | }
|
445 451 | impl
|
446 452 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
447 453 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
448 - | > for crate::output::FractionalSecondsOutput
|
454 + | > for crate::output::InputAndOutputWithHeadersOutput
|
449 455 | {
|
450 456 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
451 - | match crate::protocol_serde::shape_fractional_seconds::ser_fractional_seconds_http_response(
|
452 - | self,
|
453 - | ) {
|
454 - | Ok(response) => response,
|
455 - | Err(e) => {
|
456 - | ::tracing::error!(error = %e, "failed to serialize response");
|
457 - | ::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))
|
458 - | }
|
459 - | }
|
457 + | match crate::protocol_serde::shape_input_and_output_with_headers::ser_input_and_output_with_headers_http_response(self) {
|
458 + | Ok(response) => response,
|
459 + | Err(e) => {
|
460 + | ::tracing::error!(error = %e, "failed to serialize response");
|
461 + | ::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))
|
462 + | }
|
463 + | }
|
460 464 | }
|
461 465 | }
|
462 466 | impl
|
463 467 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
464 468 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
465 - | > for crate::error::FractionalSecondsError
|
469 + | > for crate::error::InputAndOutputWithHeadersError
|
466 470 | {
|
467 471 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
468 - | match crate::protocol_serde::shape_fractional_seconds::ser_fractional_seconds_http_error(
|
469 - | &self,
|
470 - | ) {
|
472 + | match crate::protocol_serde::shape_input_and_output_with_headers::ser_input_and_output_with_headers_http_error(&self) {
|
471 473 | Ok(mut response) => {
|
472 - | response.extensions_mut().insert(
|
473 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
474 - | self.name(),
|
475 - | ),
|
476 - | );
|
474 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
477 475 | response
|
478 - | }
|
476 + | },
|
479 477 | Err(e) => {
|
480 478 | ::tracing::error!(error = %e, "failed to serialize response");
|
481 479 | ::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))
|
482 480 | }
|
483 481 | }
|
484 482 | }
|
485 483 | }
|
486 484 |
|
487 485 | ::pin_project_lite::pin_project! {
|
488 486 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
489 - | /// [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput) using modelled bindings.
|
490 - | pub struct DatetimeOffsetsInputFuture {
|
491 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DatetimeOffsetsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
487 + | /// [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput) using modelled bindings.
|
488 + | pub struct NullAndEmptyHeadersClientInputFuture {
|
489 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NullAndEmptyHeadersClientInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
492 490 | }
|
493 491 | }
|
494 492 |
|
495 - | impl std::future::Future for DatetimeOffsetsInputFuture {
|
493 + | impl std::future::Future for NullAndEmptyHeadersClientInputFuture {
|
496 494 | type Output = Result<
|
497 - | crate::input::DatetimeOffsetsInput,
|
495 + | crate::input::NullAndEmptyHeadersClientInput,
|
498 496 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
499 497 | >;
|
500 498 |
|
501 499 | fn poll(
|
502 500 | self: std::pin::Pin<&mut Self>,
|
503 501 | cx: &mut std::task::Context<'_>,
|
504 502 | ) -> std::task::Poll<Self::Output> {
|
505 503 | let this = self.project();
|
506 504 | this.inner.as_mut().poll(cx)
|
507 505 | }
|
508 506 | }
|
509 507 |
|
510 508 | impl<B>
|
511 509 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
512 510 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
513 511 | B,
|
514 - | > for crate::input::DatetimeOffsetsInput
|
512 + | > for crate::input::NullAndEmptyHeadersClientInput
|
515 513 | where
|
516 514 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
517 515 | B: 'static,
|
518 516 |
|
519 517 | B::Data: Send,
|
520 518 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
521 519 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
522 520 | {
|
523 521 | type Rejection =
|
524 522 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
525 - | type Future = DatetimeOffsetsInputFuture;
|
523 + | type Future = NullAndEmptyHeadersClientInputFuture;
|
526 524 |
|
527 525 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
528 526 | let fut = async move {
|
529 527 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
530 528 | request.headers(),
|
531 529 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
532 530 | ) {
|
533 531 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
534 532 | }
|
535 - | crate::protocol_serde::shape_datetime_offsets::de_datetime_offsets_http_request(request)
|
536 - | .await
|
533 + | crate::protocol_serde::shape_null_and_empty_headers_client::de_null_and_empty_headers_client_http_request(request)
|
534 + | .await
|
537 535 | };
|
538 536 | use ::futures_util::future::TryFutureExt;
|
539 537 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
540 538 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
541 539 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
542 540 | });
|
543 - | DatetimeOffsetsInputFuture {
|
541 + | NullAndEmptyHeadersClientInputFuture {
|
544 542 | inner: Box::pin(fut),
|
545 543 | }
|
546 544 | }
|
547 545 | }
|
548 546 | impl
|
549 547 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
550 548 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
551 - | > for crate::output::DatetimeOffsetsOutput
|
549 + | > for crate::output::NullAndEmptyHeadersClientOutput
|
552 550 | {
|
553 551 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
554 - | match crate::protocol_serde::shape_datetime_offsets::ser_datetime_offsets_http_response(
|
555 - | self,
|
556 - | ) {
|
557 - | Ok(response) => response,
|
558 - | Err(e) => {
|
559 - | ::tracing::error!(error = %e, "failed to serialize response");
|
560 - | ::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))
|
561 - | }
|
562 - | }
|
552 + | match crate::protocol_serde::shape_null_and_empty_headers_client::ser_null_and_empty_headers_client_http_response(self) {
|
553 + | Ok(response) => response,
|
554 + | Err(e) => {
|
555 + | ::tracing::error!(error = %e, "failed to serialize response");
|
556 + | ::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))
|
557 + | }
|
558 + | }
|
563 559 | }
|
564 560 | }
|
565 561 | impl
|
566 562 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
567 563 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
568 - | > for crate::error::DatetimeOffsetsError
|
564 + | > for crate::error::NullAndEmptyHeadersClientError
|
569 565 | {
|
570 566 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
571 - | match crate::protocol_serde::shape_datetime_offsets::ser_datetime_offsets_http_error(&self)
|
572 - | {
|
567 + | match crate::protocol_serde::shape_null_and_empty_headers_client::ser_null_and_empty_headers_client_http_error(&self) {
|
573 568 | Ok(mut response) => {
|
574 - | response.extensions_mut().insert(
|
575 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
576 - | self.name(),
|
577 - | ),
|
578 - | );
|
569 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
579 570 | response
|
580 - | }
|
571 + | },
|
581 572 | Err(e) => {
|
582 573 | ::tracing::error!(error = %e, "failed to serialize response");
|
583 574 | ::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))
|
584 575 | }
|
585 576 | }
|
586 577 | }
|
587 578 | }
|
588 579 |
|
589 580 | ::pin_project_lite::pin_project! {
|
590 581 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
591 - | /// [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput) using modelled bindings.
|
592 - | pub struct TestPostNoInputNoPayloadInputFuture {
|
593 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPostNoInputNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
582 + | /// [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput) using modelled bindings.
|
583 + | pub struct NullAndEmptyHeadersServerInputFuture {
|
584 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NullAndEmptyHeadersServerInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
594 585 | }
|
595 586 | }
|
596 587 |
|
597 - | impl std::future::Future for TestPostNoInputNoPayloadInputFuture {
|
588 + | impl std::future::Future for NullAndEmptyHeadersServerInputFuture {
|
598 589 | type Output = Result<
|
599 - | crate::input::TestPostNoInputNoPayloadInput,
|
590 + | crate::input::NullAndEmptyHeadersServerInput,
|
600 591 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
601 592 | >;
|
602 593 |
|
603 594 | fn poll(
|
604 595 | self: std::pin::Pin<&mut Self>,
|
605 596 | cx: &mut std::task::Context<'_>,
|
606 597 | ) -> std::task::Poll<Self::Output> {
|
607 598 | let this = self.project();
|
608 599 | this.inner.as_mut().poll(cx)
|
609 600 | }
|
610 601 | }
|
611 602 |
|
612 603 | impl<B>
|
613 604 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
614 605 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
615 606 | B,
|
616 - | > for crate::input::TestPostNoInputNoPayloadInput
|
607 + | > for crate::input::NullAndEmptyHeadersServerInput
|
617 608 | where
|
618 609 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
619 610 | B: 'static,
|
620 611 |
|
621 612 | B::Data: Send,
|
622 613 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
623 614 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
624 615 | {
|
625 616 | type Rejection =
|
626 617 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
627 - | type Future = TestPostNoInputNoPayloadInputFuture;
|
618 + | type Future = NullAndEmptyHeadersServerInputFuture;
|
628 619 |
|
629 620 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
630 621 | let fut = async move {
|
631 622 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
632 623 | request.headers(),
|
633 624 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
634 625 | ) {
|
635 626 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
636 627 | }
|
637 - | crate::protocol_serde::shape_test_post_no_input_no_payload::de_test_post_no_input_no_payload_http_request(request)
|
628 + | crate::protocol_serde::shape_null_and_empty_headers_server::de_null_and_empty_headers_server_http_request(request)
|
638 629 | .await
|
639 630 | };
|
640 631 | use ::futures_util::future::TryFutureExt;
|
641 632 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
642 633 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
643 634 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
644 635 | });
|
645 - | TestPostNoInputNoPayloadInputFuture {
|
636 + | NullAndEmptyHeadersServerInputFuture {
|
646 637 | inner: Box::pin(fut),
|
647 638 | }
|
648 639 | }
|
649 640 | }
|
650 641 | impl
|
651 642 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
652 643 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
653 - | > for crate::output::TestPostNoInputNoPayloadOutput
|
644 + | > for crate::output::NullAndEmptyHeadersServerOutput
|
654 645 | {
|
655 646 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
656 - | match crate::protocol_serde::shape_test_post_no_input_no_payload::ser_test_post_no_input_no_payload_http_response(self) {
|
647 + | match crate::protocol_serde::shape_null_and_empty_headers_server::ser_null_and_empty_headers_server_http_response(self) {
|
657 648 | Ok(response) => response,
|
658 649 | Err(e) => {
|
659 650 | ::tracing::error!(error = %e, "failed to serialize response");
|
660 651 | ::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))
|
661 652 | }
|
662 653 | }
|
663 654 | }
|
664 655 | }
|
665 656 | impl
|
666 657 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
667 658 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
668 - | > for crate::error::TestPostNoInputNoPayloadError
|
659 + | > for crate::error::NullAndEmptyHeadersServerError
|
669 660 | {
|
670 661 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
671 - | match crate::protocol_serde::shape_test_post_no_input_no_payload::ser_test_post_no_input_no_payload_http_error(&self) {
|
662 + | match crate::protocol_serde::shape_null_and_empty_headers_server::ser_null_and_empty_headers_server_http_error(&self) {
|
672 663 | Ok(mut response) => {
|
673 664 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
674 665 | response
|
675 666 | },
|
676 667 | Err(e) => {
|
677 668 | ::tracing::error!(error = %e, "failed to serialize response");
|
678 669 | ::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))
|
679 670 | }
|
680 671 | }
|
681 672 | }
|
682 673 | }
|
683 674 |
|
684 675 | ::pin_project_lite::pin_project! {
|
685 676 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
686 - | /// [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput) using modelled bindings.
|
687 - | pub struct TestGetNoInputNoPayloadInputFuture {
|
688 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestGetNoInputNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
677 + | /// [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput) using modelled bindings.
|
678 + | pub struct TimestampFormatHeadersInputFuture {
|
679 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TimestampFormatHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
689 680 | }
|
690 681 | }
|
691 682 |
|
692 - | impl std::future::Future for TestGetNoInputNoPayloadInputFuture {
|
683 + | impl std::future::Future for TimestampFormatHeadersInputFuture {
|
693 684 | type Output = Result<
|
694 - | crate::input::TestGetNoInputNoPayloadInput,
|
685 + | crate::input::TimestampFormatHeadersInput,
|
695 686 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
696 687 | >;
|
697 688 |
|
698 689 | fn poll(
|
699 690 | self: std::pin::Pin<&mut Self>,
|
700 691 | cx: &mut std::task::Context<'_>,
|
701 692 | ) -> std::task::Poll<Self::Output> {
|
702 693 | let this = self.project();
|
703 694 | this.inner.as_mut().poll(cx)
|
704 695 | }
|
705 696 | }
|
706 697 |
|
707 698 | impl<B>
|
708 699 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
709 700 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
710 701 | B,
|
711 - | > for crate::input::TestGetNoInputNoPayloadInput
|
702 + | > for crate::input::TimestampFormatHeadersInput
|
712 703 | where
|
713 704 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
714 705 | B: 'static,
|
715 706 |
|
716 707 | B::Data: Send,
|
717 708 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
718 709 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
719 710 | {
|
720 711 | type Rejection =
|
721 712 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
722 - | type Future = TestGetNoInputNoPayloadInputFuture;
|
713 + | type Future = TimestampFormatHeadersInputFuture;
|
723 714 |
|
724 715 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
725 716 | let fut = async move {
|
726 717 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
727 718 | request.headers(),
|
728 719 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
729 720 | ) {
|
730 721 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
731 722 | }
|
732 - | crate::protocol_serde::shape_test_get_no_input_no_payload::de_test_get_no_input_no_payload_http_request(request)
|
723 + | crate::protocol_serde::shape_timestamp_format_headers::de_timestamp_format_headers_http_request(request)
|
733 724 | .await
|
734 725 | };
|
735 726 | use ::futures_util::future::TryFutureExt;
|
736 727 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
737 728 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
738 729 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
739 730 | });
|
740 - | TestGetNoInputNoPayloadInputFuture {
|
731 + | TimestampFormatHeadersInputFuture {
|
741 732 | inner: Box::pin(fut),
|
742 733 | }
|
743 734 | }
|
744 735 | }
|
745 736 | impl
|
746 737 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
747 738 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
748 - | > for crate::output::TestGetNoInputNoPayloadOutput
|
739 + | > for crate::output::TimestampFormatHeadersOutput
|
749 740 | {
|
750 741 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
751 - | match crate::protocol_serde::shape_test_get_no_input_no_payload::ser_test_get_no_input_no_payload_http_response(self) {
|
742 + | match crate::protocol_serde::shape_timestamp_format_headers::ser_timestamp_format_headers_http_response(self) {
|
752 743 | Ok(response) => response,
|
753 744 | Err(e) => {
|
754 745 | ::tracing::error!(error = %e, "failed to serialize response");
|
755 746 | ::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))
|
756 747 | }
|
757 748 | }
|
758 749 | }
|
759 750 | }
|
760 751 | impl
|
761 752 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
762 753 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
763 - | > for crate::error::TestGetNoInputNoPayloadError
|
754 + | > for crate::error::TimestampFormatHeadersError
|
764 755 | {
|
765 756 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
766 - | match crate::protocol_serde::shape_test_get_no_input_no_payload::ser_test_get_no_input_no_payload_http_error(&self) {
|
757 + | match crate::protocol_serde::shape_timestamp_format_headers::ser_timestamp_format_headers_http_error(&self) {
|
767 758 | Ok(mut response) => {
|
768 759 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
769 760 | response
|
770 761 | },
|
771 762 | Err(e) => {
|
772 763 | ::tracing::error!(error = %e, "failed to serialize response");
|
773 764 | ::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))
|
774 765 | }
|
775 766 | }
|
776 767 | }
|
777 768 | }
|
778 769 |
|
779 770 | ::pin_project_lite::pin_project! {
|
780 771 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
781 - | /// [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput) using modelled bindings.
|
782 - | pub struct TestPostNoPayloadInputFuture {
|
783 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPostNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
772 + | /// [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput) using modelled bindings.
|
773 + | pub struct MediaTypeHeaderInputFuture {
|
774 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MediaTypeHeaderInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
784 775 | }
|
785 776 | }
|
786 777 |
|
787 - | impl std::future::Future for TestPostNoPayloadInputFuture {
|
778 + | impl std::future::Future for MediaTypeHeaderInputFuture {
|
788 779 | type Output = Result<
|
789 - | crate::input::TestPostNoPayloadInput,
|
780 + | crate::input::MediaTypeHeaderInput,
|
790 781 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
791 782 | >;
|
792 783 |
|
793 784 | fn poll(
|
794 785 | self: std::pin::Pin<&mut Self>,
|
795 786 | cx: &mut std::task::Context<'_>,
|
796 787 | ) -> std::task::Poll<Self::Output> {
|
797 788 | let this = self.project();
|
798 789 | this.inner.as_mut().poll(cx)
|
799 790 | }
|
800 791 | }
|
801 792 |
|
802 793 | impl<B>
|
803 794 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
804 795 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
805 796 | B,
|
806 - | > for crate::input::TestPostNoPayloadInput
|
797 + | > for crate::input::MediaTypeHeaderInput
|
807 798 | where
|
808 799 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
809 800 | B: 'static,
|
810 801 |
|
811 802 | B::Data: Send,
|
812 803 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
813 804 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
814 805 | {
|
815 806 | type Rejection =
|
816 807 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
817 - | type Future = TestPostNoPayloadInputFuture;
|
808 + | type Future = MediaTypeHeaderInputFuture;
|
818 809 |
|
819 810 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
820 811 | let fut = async move {
|
821 812 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
822 813 | request.headers(),
|
823 814 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
824 815 | ) {
|
825 816 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
826 817 | }
|
827 - | crate::protocol_serde::shape_test_post_no_payload::de_test_post_no_payload_http_request(
|
818 + | crate::protocol_serde::shape_media_type_header::de_media_type_header_http_request(
|
828 819 | request,
|
829 820 | )
|
830 821 | .await
|
831 822 | };
|
832 823 | use ::futures_util::future::TryFutureExt;
|
833 824 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
834 825 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
835 826 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
836 827 | });
|
837 - | TestPostNoPayloadInputFuture {
|
828 + | MediaTypeHeaderInputFuture {
|
838 829 | inner: Box::pin(fut),
|
839 830 | }
|
840 831 | }
|
841 832 | }
|
842 833 | impl
|
843 834 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
844 835 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
845 - | > for crate::output::TestPostNoPayloadOutput
|
836 + | > for crate::output::MediaTypeHeaderOutput
|
846 837 | {
|
847 838 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
848 - | match crate::protocol_serde::shape_test_post_no_payload::ser_test_post_no_payload_http_response(self) {
|
849 - | Ok(response) => response,
|
850 - | Err(e) => {
|
851 - | ::tracing::error!(error = %e, "failed to serialize response");
|
852 - | ::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))
|
853 - | }
|
854 - | }
|
839 + | match crate::protocol_serde::shape_media_type_header::ser_media_type_header_http_response(
|
840 + | self,
|
841 + | ) {
|
842 + | Ok(response) => response,
|
843 + | Err(e) => {
|
844 + | ::tracing::error!(error = %e, "failed to serialize response");
|
845 + | ::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))
|
846 + | }
|
847 + | }
|
855 848 | }
|
856 849 | }
|
857 850 | impl
|
858 851 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
859 852 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
860 - | > for crate::error::TestPostNoPayloadError
|
853 + | > for crate::error::MediaTypeHeaderError
|
861 854 | {
|
862 855 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
863 - | match crate::protocol_serde::shape_test_post_no_payload::ser_test_post_no_payload_http_error(
|
856 + | match crate::protocol_serde::shape_media_type_header::ser_media_type_header_http_error(
|
864 857 | &self,
|
865 858 | ) {
|
866 859 | Ok(mut response) => {
|
867 860 | response.extensions_mut().insert(
|
868 861 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
869 862 | self.name(),
|
870 863 | ),
|
871 864 | );
|
872 865 | response
|
873 866 | }
|
874 867 | Err(e) => {
|
875 868 | ::tracing::error!(error = %e, "failed to serialize response");
|
876 869 | ::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 870 | }
|
878 871 | }
|
879 872 | }
|
880 873 | }
|
881 874 |
|
882 875 | ::pin_project_lite::pin_project! {
|
883 876 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
884 - | /// [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput) using modelled bindings.
|
885 - | pub struct TestGetNoPayloadInputFuture {
|
886 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestGetNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
877 + | /// [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput) using modelled bindings.
|
878 + | pub struct HttpRequestWithLabelsInputFuture {
|
879 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithLabelsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
887 880 | }
|
888 881 | }
|
889 882 |
|
890 - | impl std::future::Future for TestGetNoPayloadInputFuture {
|
883 + | impl std::future::Future for HttpRequestWithLabelsInputFuture {
|
891 884 | type Output = Result<
|
892 - | crate::input::TestGetNoPayloadInput,
|
885 + | crate::input::HttpRequestWithLabelsInput,
|
893 886 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
894 887 | >;
|
895 888 |
|
896 889 | fn poll(
|
897 890 | self: std::pin::Pin<&mut Self>,
|
898 891 | cx: &mut std::task::Context<'_>,
|
899 892 | ) -> std::task::Poll<Self::Output> {
|
900 893 | let this = self.project();
|
901 894 | this.inner.as_mut().poll(cx)
|
902 895 | }
|
903 896 | }
|
904 897 |
|
905 898 | impl<B>
|
906 899 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
907 900 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
908 901 | B,
|
909 - | > for crate::input::TestGetNoPayloadInput
|
902 + | > for crate::input::HttpRequestWithLabelsInput
|
910 903 | where
|
911 904 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
912 905 | B: 'static,
|
913 906 |
|
914 907 | B::Data: Send,
|
915 908 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
916 909 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
917 910 | {
|
918 911 | type Rejection =
|
919 912 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
920 - | type Future = TestGetNoPayloadInputFuture;
|
913 + | type Future = HttpRequestWithLabelsInputFuture;
|
921 914 |
|
922 915 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
923 916 | let fut = async move {
|
924 917 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
925 918 | request.headers(),
|
926 919 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
927 920 | ) {
|
928 921 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
929 922 | }
|
930 - | crate::protocol_serde::shape_test_get_no_payload::de_test_get_no_payload_http_request(
|
931 - | request,
|
932 - | )
|
933 - | .await
|
923 + | crate::protocol_serde::shape_http_request_with_labels::de_http_request_with_labels_http_request(request)
|
924 + | .await
|
934 925 | };
|
935 926 | use ::futures_util::future::TryFutureExt;
|
936 927 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
937 928 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
938 929 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
939 930 | });
|
940 - | TestGetNoPayloadInputFuture {
|
931 + | HttpRequestWithLabelsInputFuture {
|
941 932 | inner: Box::pin(fut),
|
942 933 | }
|
943 934 | }
|
944 935 | }
|
945 936 | impl
|
946 937 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
947 938 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
948 - | > for crate::output::TestGetNoPayloadOutput
|
939 + | > for crate::output::HttpRequestWithLabelsOutput
|
949 940 | {
|
950 941 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
951 - | match crate::protocol_serde::shape_test_get_no_payload::ser_test_get_no_payload_http_response(self) {
|
942 + | match crate::protocol_serde::shape_http_request_with_labels::ser_http_request_with_labels_http_response(self) {
|
952 943 | Ok(response) => response,
|
953 944 | Err(e) => {
|
954 945 | ::tracing::error!(error = %e, "failed to serialize response");
|
955 946 | ::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))
|
956 947 | }
|
957 948 | }
|
958 949 | }
|
959 950 | }
|
960 951 | impl
|
961 952 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
962 953 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
963 - | > for crate::error::TestGetNoPayloadError
|
954 + | > for crate::error::HttpRequestWithLabelsError
|
964 955 | {
|
965 956 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
966 - | match crate::protocol_serde::shape_test_get_no_payload::ser_test_get_no_payload_http_error(
|
967 - | &self,
|
968 - | ) {
|
957 + | match crate::protocol_serde::shape_http_request_with_labels::ser_http_request_with_labels_http_error(&self) {
|
969 958 | Ok(mut response) => {
|
970 - | response.extensions_mut().insert(
|
971 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
972 - | self.name(),
|
973 - | ),
|
974 - | );
|
959 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
975 960 | response
|
976 - | }
|
961 + | },
|
977 962 | Err(e) => {
|
978 963 | ::tracing::error!(error = %e, "failed to serialize response");
|
979 964 | ::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))
|
980 965 | }
|
981 966 | }
|
982 967 | }
|
983 968 | }
|
984 969 |
|
985 970 | ::pin_project_lite::pin_project! {
|
986 971 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
987 - | /// [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput) using modelled bindings.
|
988 - | pub struct TestPayloadBlobInputFuture {
|
989 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPayloadBlobInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
972 + | /// [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput) using modelled bindings.
|
973 + | pub struct HttpRequestWithLabelsAndTimestampFormatInputFuture {
|
974 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
990 975 | }
|
991 976 | }
|
992 977 |
|
993 - | impl std::future::Future for TestPayloadBlobInputFuture {
|
978 + | impl std::future::Future for HttpRequestWithLabelsAndTimestampFormatInputFuture {
|
994 979 | type Output = Result<
|
995 - | crate::input::TestPayloadBlobInput,
|
980 + | crate::input::HttpRequestWithLabelsAndTimestampFormatInput,
|
996 981 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
997 982 | >;
|
998 983 |
|
999 984 | fn poll(
|
1000 985 | self: std::pin::Pin<&mut Self>,
|
1001 986 | cx: &mut std::task::Context<'_>,
|
1002 987 | ) -> std::task::Poll<Self::Output> {
|
1003 988 | let this = self.project();
|
1004 989 | this.inner.as_mut().poll(cx)
|
1005 990 | }
|
1006 991 | }
|
1007 992 |
|
1008 993 | impl<B>
|
1009 994 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1010 995 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1011 996 | B,
|
1012 - | > for crate::input::TestPayloadBlobInput
|
997 + | > for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
1013 998 | where
|
1014 999 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1015 1000 | B: 'static,
|
1016 1001 |
|
1017 1002 | B::Data: Send,
|
1018 1003 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1019 1004 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1020 1005 | {
|
1021 1006 | type Rejection =
|
1022 1007 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1023 - | type Future = TestPayloadBlobInputFuture;
|
1008 + | type Future = HttpRequestWithLabelsAndTimestampFormatInputFuture;
|
1024 1009 |
|
1025 1010 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1026 1011 | let fut = async move {
|
1027 - | crate::protocol_serde::shape_test_payload_blob::de_test_payload_blob_http_request(
|
1028 - | request,
|
1029 - | )
|
1030 - | .await
|
1012 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1013 + | request.headers(),
|
1014 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1015 + | ) {
|
1016 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1017 + | }
|
1018 + | crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::de_http_request_with_labels_and_timestamp_format_http_request(request)
|
1019 + | .await
|
1031 1020 | };
|
1032 1021 | use ::futures_util::future::TryFutureExt;
|
1033 1022 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1034 1023 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1035 1024 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1036 1025 | });
|
1037 - | TestPayloadBlobInputFuture {
|
1026 + | HttpRequestWithLabelsAndTimestampFormatInputFuture {
|
1038 1027 | inner: Box::pin(fut),
|
1039 1028 | }
|
1040 1029 | }
|
1041 1030 | }
|
1042 1031 | impl
|
1043 1032 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1044 1033 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1045 - | > for crate::output::TestPayloadBlobOutput
|
1034 + | > for crate::output::HttpRequestWithLabelsAndTimestampFormatOutput
|
1046 1035 | {
|
1047 1036 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1048 - | match crate::protocol_serde::shape_test_payload_blob::ser_test_payload_blob_http_response(
|
1049 - | self,
|
1050 - | ) {
|
1051 - | Ok(response) => response,
|
1052 - | Err(e) => {
|
1053 - | ::tracing::error!(error = %e, "failed to serialize response");
|
1054 - | ::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))
|
1055 - | }
|
1056 - | }
|
1037 + | match crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::ser_http_request_with_labels_and_timestamp_format_http_response(self) {
|
1038 + | Ok(response) => response,
|
1039 + | Err(e) => {
|
1040 + | ::tracing::error!(error = %e, "failed to serialize response");
|
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))
|
1042 + | }
|
1043 + | }
|
1057 1044 | }
|
1058 1045 | }
|
1059 1046 | impl
|
1060 1047 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1061 1048 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1062 - | > for crate::error::TestPayloadBlobError
|
1049 + | > for crate::error::HttpRequestWithLabelsAndTimestampFormatError
|
1063 1050 | {
|
1064 1051 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1065 - | match crate::protocol_serde::shape_test_payload_blob::ser_test_payload_blob_http_error(
|
1066 - | &self,
|
1067 - | ) {
|
1052 + | match crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::ser_http_request_with_labels_and_timestamp_format_http_error(&self) {
|
1068 1053 | Ok(mut response) => {
|
1069 - | response.extensions_mut().insert(
|
1070 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
1071 - | self.name(),
|
1072 - | ),
|
1073 - | );
|
1054 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1074 1055 | response
|
1075 - | }
|
1056 + | },
|
1076 1057 | Err(e) => {
|
1077 1058 | ::tracing::error!(error = %e, "failed to serialize response");
|
1078 1059 | ::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))
|
1079 1060 | }
|
1080 1061 | }
|
1081 1062 | }
|
1082 1063 | }
|
1083 1064 |
|
1084 1065 | ::pin_project_lite::pin_project! {
|
1085 1066 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1086 - | /// [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput) using modelled bindings.
|
1087 - | pub struct TestPayloadStructureInputFuture {
|
1088 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPayloadStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1067 + | /// [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput) using modelled bindings.
|
1068 + | pub struct HttpRequestWithGreedyLabelInPathInputFuture {
|
1069 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1089 1070 | }
|
1090 1071 | }
|
1091 1072 |
|
1092 - | impl std::future::Future for TestPayloadStructureInputFuture {
|
1073 + | impl std::future::Future for HttpRequestWithGreedyLabelInPathInputFuture {
|
1093 1074 | type Output = Result<
|
1094 - | crate::input::TestPayloadStructureInput,
|
1075 + | crate::input::HttpRequestWithGreedyLabelInPathInput,
|
1095 1076 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1096 1077 | >;
|
1097 1078 |
|
1098 1079 | fn poll(
|
1099 1080 | self: std::pin::Pin<&mut Self>,
|
1100 1081 | cx: &mut std::task::Context<'_>,
|
1101 1082 | ) -> std::task::Poll<Self::Output> {
|
1102 1083 | let this = self.project();
|
1103 1084 | this.inner.as_mut().poll(cx)
|
1104 1085 | }
|
1105 1086 | }
|
1106 1087 |
|
1107 1088 | impl<B>
|
1108 1089 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1109 1090 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1110 1091 | B,
|
1111 - | > for crate::input::TestPayloadStructureInput
|
1092 + | > for crate::input::HttpRequestWithGreedyLabelInPathInput
|
1112 1093 | where
|
1113 1094 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1114 1095 | B: 'static,
|
1115 1096 |
|
1116 1097 | B::Data: Send,
|
1117 1098 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1118 1099 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1119 1100 | {
|
1120 1101 | type Rejection =
|
1121 1102 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1122 - | type Future = TestPayloadStructureInputFuture;
|
1103 + | type Future = HttpRequestWithGreedyLabelInPathInputFuture;
|
1123 1104 |
|
1124 1105 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1125 1106 | let fut = async move {
|
1126 1107 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1127 1108 | request.headers(),
|
1128 1109 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1129 1110 | ) {
|
1130 1111 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1131 1112 | }
|
1132 - | crate::protocol_serde::shape_test_payload_structure::de_test_payload_structure_http_request(request)
|
1113 + | crate::protocol_serde::shape_http_request_with_greedy_label_in_path::de_http_request_with_greedy_label_in_path_http_request(request)
|
1133 1114 | .await
|
1134 1115 | };
|
1135 1116 | use ::futures_util::future::TryFutureExt;
|
1136 1117 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1137 1118 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1138 1119 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1139 1120 | });
|
1140 - | TestPayloadStructureInputFuture {
|
1121 + | HttpRequestWithGreedyLabelInPathInputFuture {
|
1141 1122 | inner: Box::pin(fut),
|
1142 1123 | }
|
1143 1124 | }
|
1144 1125 | }
|
1145 1126 | impl
|
1146 1127 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1147 1128 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1148 - | > for crate::output::TestPayloadStructureOutput
|
1129 + | > for crate::output::HttpRequestWithGreedyLabelInPathOutput
|
1149 1130 | {
|
1150 1131 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1151 - | match crate::protocol_serde::shape_test_payload_structure::ser_test_payload_structure_http_response(self) {
|
1132 + | match crate::protocol_serde::shape_http_request_with_greedy_label_in_path::ser_http_request_with_greedy_label_in_path_http_response(self) {
|
1152 1133 | Ok(response) => response,
|
1153 1134 | Err(e) => {
|
1154 1135 | ::tracing::error!(error = %e, "failed to serialize response");
|
1155 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))
|
1156 1137 | }
|
1157 1138 | }
|
1158 1139 | }
|
1159 1140 | }
|
1160 1141 | impl
|
1161 1142 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1162 1143 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1163 - | > for crate::error::TestPayloadStructureError
|
1144 + | > for crate::error::HttpRequestWithGreedyLabelInPathError
|
1164 1145 | {
|
1165 1146 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1166 - | match crate::protocol_serde::shape_test_payload_structure::ser_test_payload_structure_http_error(&self) {
|
1147 + | match crate::protocol_serde::shape_http_request_with_greedy_label_in_path::ser_http_request_with_greedy_label_in_path_http_error(&self) {
|
1167 1148 | Ok(mut response) => {
|
1168 1149 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1169 1150 | response
|
1170 1151 | },
|
1171 1152 | Err(e) => {
|
1172 1153 | ::tracing::error!(error = %e, "failed to serialize response");
|
1173 1154 | ::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))
|
1174 1155 | }
|
1175 1156 | }
|
1176 1157 | }
|
1177 1158 | }
|
1178 1159 |
|
1179 1160 | ::pin_project_lite::pin_project! {
|
1180 1161 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1181 - | /// [`TestBodyStructureInput`](crate::input::TestBodyStructureInput) using modelled bindings.
|
1182 - | pub struct TestBodyStructureInputFuture {
|
1183 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestBodyStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1162 + | /// [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput) using modelled bindings.
|
1163 + | pub struct HttpRequestWithFloatLabelsInputFuture {
|
1164 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithFloatLabelsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1184 1165 | }
|
1185 1166 | }
|
1186 1167 |
|
1187 - | impl std::future::Future for TestBodyStructureInputFuture {
|
1168 + | impl std::future::Future for HttpRequestWithFloatLabelsInputFuture {
|
1188 1169 | type Output = Result<
|
1189 - | crate::input::TestBodyStructureInput,
|
1170 + | crate::input::HttpRequestWithFloatLabelsInput,
|
1190 1171 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1191 1172 | >;
|
1192 1173 |
|
1193 1174 | fn poll(
|
1194 1175 | self: std::pin::Pin<&mut Self>,
|
1195 1176 | cx: &mut std::task::Context<'_>,
|
1196 1177 | ) -> std::task::Poll<Self::Output> {
|
1197 1178 | let this = self.project();
|
1198 1179 | this.inner.as_mut().poll(cx)
|
1199 1180 | }
|
1200 1181 | }
|
1201 1182 |
|
1202 1183 | impl<B>
|
1203 1184 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1204 1185 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1205 1186 | B,
|
1206 - | > for crate::input::TestBodyStructureInput
|
1187 + | > for crate::input::HttpRequestWithFloatLabelsInput
|
1207 1188 | where
|
1208 1189 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1209 1190 | B: 'static,
|
1210 1191 |
|
1211 1192 | B::Data: Send,
|
1212 1193 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1213 1194 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1214 1195 | {
|
1215 1196 | type Rejection =
|
1216 1197 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1217 - | type Future = TestBodyStructureInputFuture;
|
1198 + | type Future = HttpRequestWithFloatLabelsInputFuture;
|
1218 1199 |
|
1219 1200 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1220 1201 | let fut = async move {
|
1221 1202 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1222 1203 | request.headers(),
|
1223 1204 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1224 1205 | ) {
|
1225 1206 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1226 1207 | }
|
1227 - | crate::protocol_serde::shape_test_body_structure::de_test_body_structure_http_request(
|
1228 - | request,
|
1229 - | )
|
1230 - | .await
|
1208 + | crate::protocol_serde::shape_http_request_with_float_labels::de_http_request_with_float_labels_http_request(request)
|
1209 + | .await
|
1231 1210 | };
|
1232 1211 | use ::futures_util::future::TryFutureExt;
|
1233 1212 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1234 1213 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1235 1214 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1236 1215 | });
|
1237 - | TestBodyStructureInputFuture {
|
1216 + | HttpRequestWithFloatLabelsInputFuture {
|
1238 1217 | inner: Box::pin(fut),
|
1239 1218 | }
|
1240 1219 | }
|
1241 1220 | }
|
1242 1221 | impl
|
1243 1222 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1244 1223 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1245 - | > for crate::output::TestBodyStructureOutput
|
1224 + | > for crate::output::HttpRequestWithFloatLabelsOutput
|
1246 1225 | {
|
1247 1226 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1248 - | match crate::protocol_serde::shape_test_body_structure::ser_test_body_structure_http_response(self) {
|
1227 + | match crate::protocol_serde::shape_http_request_with_float_labels::ser_http_request_with_float_labels_http_response(self) {
|
1249 1228 | Ok(response) => response,
|
1250 1229 | Err(e) => {
|
1251 1230 | ::tracing::error!(error = %e, "failed to serialize response");
|
1252 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))
|
1253 1232 | }
|
1254 1233 | }
|
1255 1234 | }
|
1256 1235 | }
|
1257 1236 | impl
|
1258 1237 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1259 1238 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1260 - | > for crate::error::TestBodyStructureError
|
1239 + | > for crate::error::HttpRequestWithFloatLabelsError
|
1261 1240 | {
|
1262 1241 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1263 - | match crate::protocol_serde::shape_test_body_structure::ser_test_body_structure_http_error(
|
1264 - | &self,
|
1265 - | ) {
|
1242 + | match crate::protocol_serde::shape_http_request_with_float_labels::ser_http_request_with_float_labels_http_error(&self) {
|
1266 1243 | Ok(mut response) => {
|
1267 - | response.extensions_mut().insert(
|
1268 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
1269 - | self.name(),
|
1270 - | ),
|
1271 - | );
|
1244 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1272 1245 | response
|
1273 - | }
|
1246 + | },
|
1274 1247 | Err(e) => {
|
1275 1248 | ::tracing::error!(error = %e, "failed to serialize response");
|
1276 1249 | ::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))
|
1277 1250 | }
|
1278 1251 | }
|
1279 1252 | }
|
1280 1253 | }
|
1281 1254 |
|
1282 1255 | ::pin_project_lite::pin_project! {
|
1283 1256 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1284 - | /// [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput) using modelled bindings.
|
1285 - | pub struct MalformedAcceptWithGenericStringInputFuture {
|
1286 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedAcceptWithGenericStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1257 + | /// [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput) using modelled bindings.
|
1258 + | pub struct HttpRequestWithRegexLiteralInputFuture {
|
1259 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithRegexLiteralInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1287 1260 | }
|
1288 1261 | }
|
1289 1262 |
|
1290 - | impl std::future::Future for MalformedAcceptWithGenericStringInputFuture {
|
1263 + | impl std::future::Future for HttpRequestWithRegexLiteralInputFuture {
|
1291 1264 | type Output = Result<
|
1292 - | crate::input::MalformedAcceptWithGenericStringInput,
|
1265 + | crate::input::HttpRequestWithRegexLiteralInput,
|
1293 1266 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1294 1267 | >;
|
1295 1268 |
|
1296 1269 | fn poll(
|
1297 1270 | self: std::pin::Pin<&mut Self>,
|
1298 1271 | cx: &mut std::task::Context<'_>,
|
1299 1272 | ) -> std::task::Poll<Self::Output> {
|
1300 1273 | let this = self.project();
|
1301 1274 | this.inner.as_mut().poll(cx)
|
1302 1275 | }
|
1303 1276 | }
|
1304 1277 |
|
1305 1278 | impl<B>
|
1306 1279 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1307 1280 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1308 1281 | B,
|
1309 - | > for crate::input::MalformedAcceptWithGenericStringInput
|
1282 + | > for crate::input::HttpRequestWithRegexLiteralInput
|
1310 1283 | where
|
1311 1284 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1312 1285 | B: 'static,
|
1313 1286 |
|
1314 1287 | B::Data: Send,
|
1315 1288 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1316 1289 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1317 1290 | {
|
1318 1291 | type Rejection =
|
1319 1292 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1320 - | type Future = MalformedAcceptWithGenericStringInputFuture;
|
1293 + | type Future = HttpRequestWithRegexLiteralInputFuture;
|
1321 1294 |
|
1322 1295 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1323 1296 | let fut = async move {
|
1324 1297 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1325 1298 | request.headers(),
|
1326 - | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
1299 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1327 1300 | ) {
|
1328 1301 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1329 1302 | }
|
1330 - | crate::protocol_serde::shape_malformed_accept_with_generic_string::de_malformed_accept_with_generic_string_http_request(request)
|
1303 + | crate::protocol_serde::shape_http_request_with_regex_literal::de_http_request_with_regex_literal_http_request(request)
|
1331 1304 | .await
|
1332 1305 | };
|
1333 1306 | use ::futures_util::future::TryFutureExt;
|
1334 1307 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1335 1308 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1336 1309 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1337 1310 | });
|
1338 - | MalformedAcceptWithGenericStringInputFuture {
|
1311 + | HttpRequestWithRegexLiteralInputFuture {
|
1339 1312 | inner: Box::pin(fut),
|
1340 1313 | }
|
1341 1314 | }
|
1342 1315 | }
|
1343 1316 | impl
|
1344 1317 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1345 1318 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1346 - | > for crate::output::MalformedAcceptWithGenericStringOutput
|
1319 + | > for crate::output::HttpRequestWithRegexLiteralOutput
|
1347 1320 | {
|
1348 1321 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1349 - | match crate::protocol_serde::shape_malformed_accept_with_generic_string::ser_malformed_accept_with_generic_string_http_response(self) {
|
1322 + | match crate::protocol_serde::shape_http_request_with_regex_literal::ser_http_request_with_regex_literal_http_response(self) {
|
1350 1323 | Ok(response) => response,
|
1351 1324 | Err(e) => {
|
1352 1325 | ::tracing::error!(error = %e, "failed to serialize response");
|
1353 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))
|
1354 1327 | }
|
1355 1328 | }
|
1356 1329 | }
|
1357 1330 | }
|
1358 1331 | impl
|
1359 1332 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1360 1333 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1361 - | > for crate::error::MalformedAcceptWithGenericStringError
|
1334 + | > for crate::error::HttpRequestWithRegexLiteralError
|
1362 1335 | {
|
1363 1336 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1364 - | match crate::protocol_serde::shape_malformed_accept_with_generic_string::ser_malformed_accept_with_generic_string_http_error(&self) {
|
1337 + | match crate::protocol_serde::shape_http_request_with_regex_literal::ser_http_request_with_regex_literal_http_error(&self) {
|
1365 1338 | Ok(mut response) => {
|
1366 1339 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1367 1340 | response
|
1368 1341 | },
|
1369 1342 | Err(e) => {
|
1370 1343 | ::tracing::error!(error = %e, "failed to serialize response");
|
1371 1344 | ::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))
|
1372 1345 | }
|
1373 1346 | }
|
1374 1347 | }
|
1375 1348 | }
|
1376 1349 |
|
1377 1350 | ::pin_project_lite::pin_project! {
|
1378 1351 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1379 - | /// [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput) using modelled bindings.
|
1380 - | pub struct MalformedAcceptWithPayloadInputFuture {
|
1381 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedAcceptWithPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1352 + | /// [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput) using modelled bindings.
|
1353 + | pub struct AllQueryStringTypesInputFuture {
|
1354 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::AllQueryStringTypesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1382 1355 | }
|
1383 1356 | }
|
1384 1357 |
|
1385 - | impl std::future::Future for MalformedAcceptWithPayloadInputFuture {
|
1358 + | impl std::future::Future for AllQueryStringTypesInputFuture {
|
1386 1359 | type Output = Result<
|
1387 - | crate::input::MalformedAcceptWithPayloadInput,
|
1360 + | crate::input::AllQueryStringTypesInput,
|
1388 1361 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1389 1362 | >;
|
1390 1363 |
|
1391 1364 | fn poll(
|
1392 1365 | self: std::pin::Pin<&mut Self>,
|
1393 1366 | cx: &mut std::task::Context<'_>,
|
1394 1367 | ) -> std::task::Poll<Self::Output> {
|
1395 1368 | let this = self.project();
|
1396 1369 | this.inner.as_mut().poll(cx)
|
1397 1370 | }
|
1398 1371 | }
|
1399 1372 |
|
1400 1373 | impl<B>
|
1401 1374 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1402 1375 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1403 1376 | B,
|
1404 - | > for crate::input::MalformedAcceptWithPayloadInput
|
1377 + | > for crate::input::AllQueryStringTypesInput
|
1405 1378 | where
|
1406 1379 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1407 1380 | B: 'static,
|
1408 1381 |
|
1409 1382 | B::Data: Send,
|
1410 1383 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1411 1384 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1412 1385 | {
|
1413 1386 | type Rejection =
|
1414 1387 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1415 - | type Future = MalformedAcceptWithPayloadInputFuture;
|
1388 + | type Future = AllQueryStringTypesInputFuture;
|
1416 1389 |
|
1417 1390 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1418 1391 | let fut = async move {
|
1419 1392 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1420 1393 | request.headers(),
|
1421 - | &crate::mimes::CONTENT_TYPE_IMAGE_JPEG,
|
1394 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1422 1395 | ) {
|
1423 1396 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1424 1397 | }
|
1425 - | crate::protocol_serde::shape_malformed_accept_with_payload::de_malformed_accept_with_payload_http_request(request)
|
1398 + | crate::protocol_serde::shape_all_query_string_types::de_all_query_string_types_http_request(request)
|
1426 1399 | .await
|
1427 1400 | };
|
1428 1401 | use ::futures_util::future::TryFutureExt;
|
1429 1402 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1430 1403 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1431 1404 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1432 1405 | });
|
1433 - | MalformedAcceptWithPayloadInputFuture {
|
1406 + | AllQueryStringTypesInputFuture {
|
1434 1407 | inner: Box::pin(fut),
|
1435 1408 | }
|
1436 1409 | }
|
1437 1410 | }
|
1438 1411 | impl
|
1439 1412 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1440 1413 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1441 - | > for crate::output::MalformedAcceptWithPayloadOutput
|
1414 + | > for crate::output::AllQueryStringTypesOutput
|
1442 1415 | {
|
1443 1416 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1444 - | match crate::protocol_serde::shape_malformed_accept_with_payload::ser_malformed_accept_with_payload_http_response(self) {
|
1417 + | match crate::protocol_serde::shape_all_query_string_types::ser_all_query_string_types_http_response(self) {
|
1445 1418 | Ok(response) => response,
|
1446 1419 | Err(e) => {
|
1447 1420 | ::tracing::error!(error = %e, "failed to serialize response");
|
1448 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))
|
1449 1422 | }
|
1450 1423 | }
|
1451 1424 | }
|
1452 1425 | }
|
1453 1426 | impl
|
1454 1427 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1455 1428 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1456 - | > for crate::error::MalformedAcceptWithPayloadError
|
1429 + | > for crate::error::AllQueryStringTypesError
|
1457 1430 | {
|
1458 1431 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1459 - | match crate::protocol_serde::shape_malformed_accept_with_payload::ser_malformed_accept_with_payload_http_error(&self) {
|
1432 + | match crate::protocol_serde::shape_all_query_string_types::ser_all_query_string_types_http_error(&self) {
|
1460 1433 | Ok(mut response) => {
|
1461 1434 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1462 1435 | response
|
1463 1436 | },
|
1464 1437 | Err(e) => {
|
1465 1438 | ::tracing::error!(error = %e, "failed to serialize response");
|
1466 1439 | ::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 1440 | }
|
1468 1441 | }
|
1469 1442 | }
|
1470 1443 | }
|
1471 1444 |
|
1472 1445 | ::pin_project_lite::pin_project! {
|
1473 1446 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1474 - | /// [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput) using modelled bindings.
|
1475 - | pub struct MalformedAcceptWithBodyInputFuture {
|
1476 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedAcceptWithBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1447 + | /// [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput) using modelled bindings.
|
1448 + | pub struct ConstantQueryStringInputFuture {
|
1449 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstantQueryStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1477 1450 | }
|
1478 1451 | }
|
1479 1452 |
|
1480 - | impl std::future::Future for MalformedAcceptWithBodyInputFuture {
|
1453 + | impl std::future::Future for ConstantQueryStringInputFuture {
|
1481 1454 | type Output = Result<
|
1482 - | crate::input::MalformedAcceptWithBodyInput,
|
1455 + | crate::input::ConstantQueryStringInput,
|
1483 1456 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1484 1457 | >;
|
1485 1458 |
|
1486 1459 | fn poll(
|
1487 1460 | self: std::pin::Pin<&mut Self>,
|
1488 1461 | cx: &mut std::task::Context<'_>,
|
1489 1462 | ) -> std::task::Poll<Self::Output> {
|
1490 1463 | let this = self.project();
|
1491 1464 | this.inner.as_mut().poll(cx)
|
1492 1465 | }
|
1493 1466 | }
|
1494 1467 |
|
1495 1468 | impl<B>
|
1496 1469 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1497 1470 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1498 1471 | B,
|
1499 - | > for crate::input::MalformedAcceptWithBodyInput
|
1472 + | > for crate::input::ConstantQueryStringInput
|
1500 1473 | where
|
1501 1474 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1502 1475 | B: 'static,
|
1503 1476 |
|
1504 1477 | B::Data: Send,
|
1505 1478 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1506 1479 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1507 1480 | {
|
1508 1481 | type Rejection =
|
1509 1482 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1510 - | type Future = MalformedAcceptWithBodyInputFuture;
|
1483 + | type Future = ConstantQueryStringInputFuture;
|
1511 1484 |
|
1512 1485 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1513 1486 | let fut = async move {
|
1514 1487 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1515 1488 | request.headers(),
|
1516 1489 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1517 1490 | ) {
|
1518 1491 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1519 1492 | }
|
1520 - | crate::protocol_serde::shape_malformed_accept_with_body::de_malformed_accept_with_body_http_request(request)
|
1493 + | crate::protocol_serde::shape_constant_query_string::de_constant_query_string_http_request(request)
|
1521 1494 | .await
|
1522 1495 | };
|
1523 1496 | use ::futures_util::future::TryFutureExt;
|
1524 1497 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1525 1498 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1526 1499 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1527 1500 | });
|
1528 - | MalformedAcceptWithBodyInputFuture {
|
1501 + | ConstantQueryStringInputFuture {
|
1529 1502 | inner: Box::pin(fut),
|
1530 1503 | }
|
1531 1504 | }
|
1532 1505 | }
|
1533 1506 | impl
|
1534 1507 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1535 1508 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1536 - | > for crate::output::MalformedAcceptWithBodyOutput
|
1509 + | > for crate::output::ConstantQueryStringOutput
|
1537 1510 | {
|
1538 1511 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1539 - | match crate::protocol_serde::shape_malformed_accept_with_body::ser_malformed_accept_with_body_http_response(self) {
|
1512 + | match crate::protocol_serde::shape_constant_query_string::ser_constant_query_string_http_response(self) {
|
1540 1513 | Ok(response) => response,
|
1541 1514 | Err(e) => {
|
1542 1515 | ::tracing::error!(error = %e, "failed to serialize response");
|
1543 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))
|
1544 1517 | }
|
1545 1518 | }
|
1546 1519 | }
|
1547 1520 | }
|
1548 1521 | impl
|
1549 1522 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1550 1523 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1551 - | > for crate::error::MalformedAcceptWithBodyError
|
1524 + | > for crate::error::ConstantQueryStringError
|
1552 1525 | {
|
1553 1526 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1554 - | match crate::protocol_serde::shape_malformed_accept_with_body::ser_malformed_accept_with_body_http_error(&self) {
|
1527 + | match crate::protocol_serde::shape_constant_query_string::ser_constant_query_string_http_error(&self) {
|
1555 1528 | Ok(mut response) => {
|
1556 1529 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1557 1530 | response
|
1558 1531 | },
|
1559 1532 | Err(e) => {
|
1560 1533 | ::tracing::error!(error = %e, "failed to serialize response");
|
1561 1534 | ::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))
|
1562 1535 | }
|
1563 1536 | }
|
1564 1537 | }
|
1565 1538 | }
|
1566 1539 |
|
1567 1540 | ::pin_project_lite::pin_project! {
|
1568 1541 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1569 - | /// [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput) using modelled bindings.
|
1570 - | pub struct MalformedContentTypeWithGenericStringInputFuture {
|
1571 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithGenericStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1542 + | /// [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput) using modelled bindings.
|
1543 + | pub struct ConstantAndVariableQueryStringInputFuture {
|
1544 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstantAndVariableQueryStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1572 1545 | }
|
1573 1546 | }
|
1574 1547 |
|
1575 - | impl std::future::Future for MalformedContentTypeWithGenericStringInputFuture {
|
1548 + | impl std::future::Future for ConstantAndVariableQueryStringInputFuture {
|
1576 1549 | type Output = Result<
|
1577 - | crate::input::MalformedContentTypeWithGenericStringInput,
|
1550 + | crate::input::ConstantAndVariableQueryStringInput,
|
1578 1551 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1579 1552 | >;
|
1580 1553 |
|
1581 1554 | fn poll(
|
1582 1555 | self: std::pin::Pin<&mut Self>,
|
1583 1556 | cx: &mut std::task::Context<'_>,
|
1584 1557 | ) -> std::task::Poll<Self::Output> {
|
1585 1558 | let this = self.project();
|
1586 1559 | this.inner.as_mut().poll(cx)
|
1587 1560 | }
|
1588 1561 | }
|
1589 1562 |
|
1590 1563 | impl<B>
|
1591 1564 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1592 1565 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1593 1566 | B,
|
1594 - | > for crate::input::MalformedContentTypeWithGenericStringInput
|
1567 + | > for crate::input::ConstantAndVariableQueryStringInput
|
1595 1568 | where
|
1596 1569 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1597 1570 | B: 'static,
|
1598 1571 |
|
1599 1572 | B::Data: Send,
|
1600 1573 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1601 1574 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1602 1575 | {
|
1603 1576 | type Rejection =
|
1604 1577 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1605 - | type Future = MalformedContentTypeWithGenericStringInputFuture;
|
1578 + | type Future = ConstantAndVariableQueryStringInputFuture;
|
1606 1579 |
|
1607 1580 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1608 1581 | let fut = async move {
|
1609 1582 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1610 1583 | request.headers(),
|
1611 1584 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1612 1585 | ) {
|
1613 1586 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1614 1587 | }
|
1615 - | crate::protocol_serde::shape_malformed_content_type_with_generic_string::de_malformed_content_type_with_generic_string_http_request(request)
|
1588 + | crate::protocol_serde::shape_constant_and_variable_query_string::de_constant_and_variable_query_string_http_request(request)
|
1616 1589 | .await
|
1617 1590 | };
|
1618 1591 | use ::futures_util::future::TryFutureExt;
|
1619 1592 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1620 1593 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1621 1594 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1622 1595 | });
|
1623 - | MalformedContentTypeWithGenericStringInputFuture {
|
1596 + | ConstantAndVariableQueryStringInputFuture {
|
1624 1597 | inner: Box::pin(fut),
|
1625 1598 | }
|
1626 1599 | }
|
1627 1600 | }
|
1628 1601 | impl
|
1629 1602 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1630 1603 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1631 - | > for crate::output::MalformedContentTypeWithGenericStringOutput
|
1604 + | > for crate::output::ConstantAndVariableQueryStringOutput
|
1632 1605 | {
|
1633 1606 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1634 - | match crate::protocol_serde::shape_malformed_content_type_with_generic_string::ser_malformed_content_type_with_generic_string_http_response(self) {
|
1607 + | match crate::protocol_serde::shape_constant_and_variable_query_string::ser_constant_and_variable_query_string_http_response(self) {
|
1635 1608 | Ok(response) => response,
|
1636 1609 | Err(e) => {
|
1637 1610 | ::tracing::error!(error = %e, "failed to serialize response");
|
1638 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))
|
1639 1612 | }
|
1640 1613 | }
|
1641 1614 | }
|
1642 1615 | }
|
1643 1616 | impl
|
1644 1617 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1645 1618 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1646 - | > for crate::error::MalformedContentTypeWithGenericStringError
|
1619 + | > for crate::error::ConstantAndVariableQueryStringError
|
1647 1620 | {
|
1648 1621 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1649 - | match crate::protocol_serde::shape_malformed_content_type_with_generic_string::ser_malformed_content_type_with_generic_string_http_error(&self) {
|
1622 + | match crate::protocol_serde::shape_constant_and_variable_query_string::ser_constant_and_variable_query_string_http_error(&self) {
|
1650 1623 | Ok(mut response) => {
|
1651 1624 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1652 1625 | response
|
1653 1626 | },
|
1654 1627 | Err(e) => {
|
1655 1628 | ::tracing::error!(error = %e, "failed to serialize response");
|
1656 1629 | ::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))
|
1657 1630 | }
|
1658 1631 | }
|
1659 1632 | }
|
1660 1633 | }
|
1661 1634 |
|
1662 1635 | ::pin_project_lite::pin_project! {
|
1663 1636 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1664 - | /// [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput) using modelled bindings.
|
1665 - | pub struct MalformedContentTypeWithPayloadInputFuture {
|
1666 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1637 + | /// [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput) using modelled bindings.
|
1638 + | pub struct IgnoreQueryParamsInResponseInputFuture {
|
1639 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::IgnoreQueryParamsInResponseInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1667 1640 | }
|
1668 1641 | }
|
1669 1642 |
|
1670 - | impl std::future::Future for MalformedContentTypeWithPayloadInputFuture {
|
1643 + | impl std::future::Future for IgnoreQueryParamsInResponseInputFuture {
|
1671 1644 | type Output = Result<
|
1672 - | crate::input::MalformedContentTypeWithPayloadInput,
|
1645 + | crate::input::IgnoreQueryParamsInResponseInput,
|
1673 1646 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1674 1647 | >;
|
1675 1648 |
|
1676 1649 | fn poll(
|
1677 1650 | self: std::pin::Pin<&mut Self>,
|
1678 1651 | cx: &mut std::task::Context<'_>,
|
1679 1652 | ) -> std::task::Poll<Self::Output> {
|
1680 1653 | let this = self.project();
|
1681 1654 | this.inner.as_mut().poll(cx)
|
1682 1655 | }
|
1683 1656 | }
|
1684 1657 |
|
1685 1658 | impl<B>
|
1686 1659 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1687 1660 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1688 1661 | B,
|
1689 - | > for crate::input::MalformedContentTypeWithPayloadInput
|
1662 + | > for crate::input::IgnoreQueryParamsInResponseInput
|
1690 1663 | where
|
1691 1664 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1692 1665 | B: 'static,
|
1693 1666 |
|
1694 1667 | B::Data: Send,
|
1695 1668 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1696 1669 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1697 1670 | {
|
1698 1671 | type Rejection =
|
1699 1672 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1700 - | type Future = MalformedContentTypeWithPayloadInputFuture;
|
1673 + | type Future = IgnoreQueryParamsInResponseInputFuture;
|
1701 1674 |
|
1702 1675 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1703 1676 | let fut = async move {
|
1704 1677 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1705 1678 | request.headers(),
|
1706 1679 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1707 1680 | ) {
|
1708 1681 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1709 1682 | }
|
1710 - | crate::protocol_serde::shape_malformed_content_type_with_payload::de_malformed_content_type_with_payload_http_request(request)
|
1683 + | crate::protocol_serde::shape_ignore_query_params_in_response::de_ignore_query_params_in_response_http_request(request)
|
1711 1684 | .await
|
1712 1685 | };
|
1713 1686 | use ::futures_util::future::TryFutureExt;
|
1714 1687 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1715 1688 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1716 1689 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1717 1690 | });
|
1718 - | MalformedContentTypeWithPayloadInputFuture {
|
1691 + | IgnoreQueryParamsInResponseInputFuture {
|
1719 1692 | inner: Box::pin(fut),
|
1720 1693 | }
|
1721 1694 | }
|
1722 1695 | }
|
1723 1696 | impl
|
1724 1697 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1725 1698 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1726 - | > for crate::output::MalformedContentTypeWithPayloadOutput
|
1699 + | > for crate::output::IgnoreQueryParamsInResponseOutput
|
1727 1700 | {
|
1728 1701 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1729 - | match crate::protocol_serde::shape_malformed_content_type_with_payload::ser_malformed_content_type_with_payload_http_response(self) {
|
1702 + | match crate::protocol_serde::shape_ignore_query_params_in_response::ser_ignore_query_params_in_response_http_response(self) {
|
1730 1703 | Ok(response) => response,
|
1731 1704 | Err(e) => {
|
1732 1705 | ::tracing::error!(error = %e, "failed to serialize response");
|
1733 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))
|
1734 1707 | }
|
1735 1708 | }
|
1736 1709 | }
|
1737 1710 | }
|
1738 1711 | impl
|
1739 1712 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1740 1713 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1741 - | > for crate::error::MalformedContentTypeWithPayloadError
|
1714 + | > for crate::error::IgnoreQueryParamsInResponseError
|
1742 1715 | {
|
1743 1716 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1744 - | match crate::protocol_serde::shape_malformed_content_type_with_payload::ser_malformed_content_type_with_payload_http_error(&self) {
|
1717 + | match crate::protocol_serde::shape_ignore_query_params_in_response::ser_ignore_query_params_in_response_http_error(&self) {
|
1745 1718 | Ok(mut response) => {
|
1746 1719 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1747 1720 | response
|
1748 1721 | },
|
1749 1722 | Err(e) => {
|
1750 1723 | ::tracing::error!(error = %e, "failed to serialize response");
|
1751 1724 | ::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))
|
1752 1725 | }
|
1753 1726 | }
|
1754 1727 | }
|
1755 1728 | }
|
1756 1729 |
|
1757 1730 | ::pin_project_lite::pin_project! {
|
1758 1731 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1759 - | /// [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput) using modelled bindings.
|
1760 - | pub struct MalformedContentTypeWithBodyInputFuture {
|
1761 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1732 + | /// [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput) using modelled bindings.
|
1733 + | pub struct OmitsNullSerializesEmptyStringInputFuture {
|
1734 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OmitsNullSerializesEmptyStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1762 1735 | }
|
1763 1736 | }
|
1764 1737 |
|
1765 - | impl std::future::Future for MalformedContentTypeWithBodyInputFuture {
|
1738 + | impl std::future::Future for OmitsNullSerializesEmptyStringInputFuture {
|
1766 1739 | type Output = Result<
|
1767 - | crate::input::MalformedContentTypeWithBodyInput,
|
1740 + | crate::input::OmitsNullSerializesEmptyStringInput,
|
1768 1741 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1769 1742 | >;
|
1770 1743 |
|
1771 1744 | fn poll(
|
1772 1745 | self: std::pin::Pin<&mut Self>,
|
1773 1746 | cx: &mut std::task::Context<'_>,
|
1774 1747 | ) -> std::task::Poll<Self::Output> {
|
1775 1748 | let this = self.project();
|
1776 1749 | this.inner.as_mut().poll(cx)
|
1777 1750 | }
|
1778 1751 | }
|
1779 1752 |
|
1780 1753 | impl<B>
|
1781 1754 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1782 1755 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1783 1756 | B,
|
1784 - | > for crate::input::MalformedContentTypeWithBodyInput
|
1757 + | > for crate::input::OmitsNullSerializesEmptyStringInput
|
1785 1758 | where
|
1786 1759 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1787 1760 | B: 'static,
|
1788 1761 |
|
1789 1762 | B::Data: Send,
|
1790 1763 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1791 1764 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1792 1765 | {
|
1793 1766 | type Rejection =
|
1794 1767 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1795 - | type Future = MalformedContentTypeWithBodyInputFuture;
|
1768 + | type Future = OmitsNullSerializesEmptyStringInputFuture;
|
1796 1769 |
|
1797 1770 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1798 1771 | let fut = async move {
|
1799 1772 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1800 1773 | request.headers(),
|
1801 1774 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1802 1775 | ) {
|
1803 1776 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1804 1777 | }
|
1805 - | crate::protocol_serde::shape_malformed_content_type_with_body::de_malformed_content_type_with_body_http_request(request)
|
1778 + | crate::protocol_serde::shape_omits_null_serializes_empty_string::de_omits_null_serializes_empty_string_http_request(request)
|
1806 1779 | .await
|
1807 1780 | };
|
1808 1781 | use ::futures_util::future::TryFutureExt;
|
1809 1782 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1810 1783 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1811 1784 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1812 1785 | });
|
1813 - | MalformedContentTypeWithBodyInputFuture {
|
1786 + | OmitsNullSerializesEmptyStringInputFuture {
|
1814 1787 | inner: Box::pin(fut),
|
1815 1788 | }
|
1816 1789 | }
|
1817 1790 | }
|
1818 1791 | impl
|
1819 1792 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1820 1793 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1821 - | > for crate::output::MalformedContentTypeWithBodyOutput
|
1794 + | > for crate::output::OmitsNullSerializesEmptyStringOutput
|
1822 1795 | {
|
1823 1796 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1824 - | match crate::protocol_serde::shape_malformed_content_type_with_body::ser_malformed_content_type_with_body_http_response(self) {
|
1797 + | match crate::protocol_serde::shape_omits_null_serializes_empty_string::ser_omits_null_serializes_empty_string_http_response(self) {
|
1825 1798 | Ok(response) => response,
|
1826 1799 | Err(e) => {
|
1827 1800 | ::tracing::error!(error = %e, "failed to serialize response");
|
1828 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))
|
1829 1802 | }
|
1830 1803 | }
|
1831 1804 | }
|
1832 1805 | }
|
1833 1806 | impl
|
1834 1807 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1835 1808 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1836 - | > for crate::error::MalformedContentTypeWithBodyError
|
1809 + | > for crate::error::OmitsNullSerializesEmptyStringError
|
1837 1810 | {
|
1838 1811 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1839 - | match crate::protocol_serde::shape_malformed_content_type_with_body::ser_malformed_content_type_with_body_http_error(&self) {
|
1812 + | match crate::protocol_serde::shape_omits_null_serializes_empty_string::ser_omits_null_serializes_empty_string_http_error(&self) {
|
1840 1813 | Ok(mut response) => {
|
1841 1814 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1842 1815 | response
|
1843 1816 | },
|
1844 1817 | Err(e) => {
|
1845 1818 | ::tracing::error!(error = %e, "failed to serialize response");
|
1846 1819 | ::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))
|
1847 1820 | }
|
1848 1821 | }
|
1849 1822 | }
|
1850 1823 | }
|
1851 1824 |
|
1852 1825 | ::pin_project_lite::pin_project! {
|
1853 1826 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1854 - | /// [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput) using modelled bindings.
|
1855 - | pub struct MalformedContentTypeWithoutBodyEmptyInputInputFuture {
|
1856 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithoutBodyEmptyInputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1827 + | /// [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput) using modelled bindings.
|
1828 + | pub struct OmitsSerializingEmptyListsInputFuture {
|
1829 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OmitsSerializingEmptyListsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1857 1830 | }
|
1858 1831 | }
|
1859 1832 |
|
1860 - | impl std::future::Future for MalformedContentTypeWithoutBodyEmptyInputInputFuture {
|
1833 + | impl std::future::Future for OmitsSerializingEmptyListsInputFuture {
|
1861 1834 | type Output = Result<
|
1862 - | crate::input::MalformedContentTypeWithoutBodyEmptyInputInput,
|
1835 + | crate::input::OmitsSerializingEmptyListsInput,
|
1863 1836 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1864 1837 | >;
|
1865 1838 |
|
1866 1839 | fn poll(
|
1867 1840 | self: std::pin::Pin<&mut Self>,
|
1868 1841 | cx: &mut std::task::Context<'_>,
|
1869 1842 | ) -> std::task::Poll<Self::Output> {
|
1870 1843 | let this = self.project();
|
1871 1844 | this.inner.as_mut().poll(cx)
|
1872 1845 | }
|
1873 1846 | }
|
1874 1847 |
|
1875 1848 | impl<B>
|
1876 1849 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1877 1850 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1878 1851 | B,
|
1879 - | > for crate::input::MalformedContentTypeWithoutBodyEmptyInputInput
|
1852 + | > for crate::input::OmitsSerializingEmptyListsInput
|
1880 1853 | where
|
1881 1854 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1882 1855 | B: 'static,
|
1883 1856 |
|
1884 1857 | B::Data: Send,
|
1885 1858 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1886 1859 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1887 1860 | {
|
1888 1861 | type Rejection =
|
1889 1862 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1890 - | type Future = MalformedContentTypeWithoutBodyEmptyInputInputFuture;
|
1863 + | type Future = OmitsSerializingEmptyListsInputFuture;
|
1891 1864 |
|
1892 1865 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1893 1866 | let fut = async move {
|
1894 1867 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1895 1868 | request.headers(),
|
1896 1869 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1897 1870 | ) {
|
1898 1871 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1899 1872 | }
|
1900 - | crate::protocol_serde::shape_malformed_content_type_without_body_empty_input::de_malformed_content_type_without_body_empty_input_http_request(request)
|
1873 + | crate::protocol_serde::shape_omits_serializing_empty_lists::de_omits_serializing_empty_lists_http_request(request)
|
1901 1874 | .await
|
1902 1875 | };
|
1903 1876 | use ::futures_util::future::TryFutureExt;
|
1904 1877 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
1905 1878 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
1906 1879 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
1907 1880 | });
|
1908 - | MalformedContentTypeWithoutBodyEmptyInputInputFuture {
|
1881 + | OmitsSerializingEmptyListsInputFuture {
|
1909 1882 | inner: Box::pin(fut),
|
1910 1883 | }
|
1911 1884 | }
|
1912 1885 | }
|
1913 1886 | impl
|
1914 1887 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1915 1888 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1916 - | > for crate::output::MalformedContentTypeWithoutBodyEmptyInputOutput
|
1889 + | > for crate::output::OmitsSerializingEmptyListsOutput
|
1917 1890 | {
|
1918 1891 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1919 - | match crate::protocol_serde::shape_malformed_content_type_without_body_empty_input::ser_malformed_content_type_without_body_empty_input_http_response(self) {
|
1892 + | match crate::protocol_serde::shape_omits_serializing_empty_lists::ser_omits_serializing_empty_lists_http_response(self) {
|
1920 1893 | Ok(response) => response,
|
1921 1894 | Err(e) => {
|
1922 1895 | ::tracing::error!(error = %e, "failed to serialize response");
|
1923 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))
|
1924 1897 | }
|
1925 1898 | }
|
1926 1899 | }
|
1927 1900 | }
|
1928 1901 | impl
|
1929 1902 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
1930 1903 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1931 - | > for crate::error::MalformedContentTypeWithoutBodyEmptyInputError
|
1904 + | > for crate::error::OmitsSerializingEmptyListsError
|
1932 1905 | {
|
1933 1906 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
1934 - | match crate::protocol_serde::shape_malformed_content_type_without_body_empty_input::ser_malformed_content_type_without_body_empty_input_http_error(&self) {
|
1907 + | match crate::protocol_serde::shape_omits_serializing_empty_lists::ser_omits_serializing_empty_lists_http_error(&self) {
|
1935 1908 | Ok(mut response) => {
|
1936 1909 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
1937 1910 | response
|
1938 1911 | },
|
1939 1912 | Err(e) => {
|
1940 1913 | ::tracing::error!(error = %e, "failed to serialize response");
|
1941 1914 | ::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))
|
1942 1915 | }
|
1943 1916 | }
|
1944 1917 | }
|
1945 1918 | }
|
1946 1919 |
|
1947 1920 | ::pin_project_lite::pin_project! {
|
1948 1921 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
1949 - | /// [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput) using modelled bindings.
|
1950 - | pub struct MalformedContentTypeWithoutBodyInputFuture {
|
1951 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithoutBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1922 + | /// [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput) using modelled bindings.
|
1923 + | pub struct QueryIdempotencyTokenAutoFillInputFuture {
|
1924 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryIdempotencyTokenAutoFillInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
1952 1925 | }
|
1953 1926 | }
|
1954 1927 |
|
1955 - | impl std::future::Future for MalformedContentTypeWithoutBodyInputFuture {
|
1928 + | impl std::future::Future for QueryIdempotencyTokenAutoFillInputFuture {
|
1956 1929 | type Output = Result<
|
1957 - | crate::input::MalformedContentTypeWithoutBodyInput,
|
1930 + | crate::input::QueryIdempotencyTokenAutoFillInput,
|
1958 1931 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
1959 1932 | >;
|
1960 1933 |
|
1961 1934 | fn poll(
|
1962 1935 | self: std::pin::Pin<&mut Self>,
|
1963 1936 | cx: &mut std::task::Context<'_>,
|
1964 1937 | ) -> std::task::Poll<Self::Output> {
|
1965 1938 | let this = self.project();
|
1966 1939 | this.inner.as_mut().poll(cx)
|
1967 1940 | }
|
1968 1941 | }
|
1969 1942 |
|
1970 1943 | impl<B>
|
1971 1944 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
1972 1945 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
1973 1946 | B,
|
1974 - | > for crate::input::MalformedContentTypeWithoutBodyInput
|
1947 + | > for crate::input::QueryIdempotencyTokenAutoFillInput
|
1975 1948 | where
|
1976 1949 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
1977 1950 | B: 'static,
|
1978 1951 |
|
1979 1952 | B::Data: Send,
|
1980 1953 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
1981 1954 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
1982 1955 | {
|
1983 1956 | type Rejection =
|
1984 1957 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
1985 - | type Future = MalformedContentTypeWithoutBodyInputFuture;
|
1958 + | type Future = QueryIdempotencyTokenAutoFillInputFuture;
|
1986 1959 |
|
1987 1960 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
1988 1961 | let fut = async move {
|
1989 1962 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
1990 1963 | request.headers(),
|
1991 1964 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
1992 1965 | ) {
|
1993 1966 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
1994 1967 | }
|
1995 - | crate::protocol_serde::shape_malformed_content_type_without_body::de_malformed_content_type_without_body_http_request(request)
|
1968 + | crate::protocol_serde::shape_query_idempotency_token_auto_fill::de_query_idempotency_token_auto_fill_http_request(request)
|
1996 1969 | .await
|
1997 1970 | };
|
1998 1971 | use ::futures_util::future::TryFutureExt;
|
1999 1972 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2000 1973 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2001 1974 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2002 1975 | });
|
2003 - | MalformedContentTypeWithoutBodyInputFuture {
|
1976 + | QueryIdempotencyTokenAutoFillInputFuture {
|
2004 1977 | inner: Box::pin(fut),
|
2005 1978 | }
|
2006 1979 | }
|
2007 1980 | }
|
2008 1981 | impl
|
2009 1982 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2010 1983 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2011 - | > for crate::output::MalformedContentTypeWithoutBodyOutput
|
1984 + | > for crate::output::QueryIdempotencyTokenAutoFillOutput
|
2012 1985 | {
|
2013 1986 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2014 - | match crate::protocol_serde::shape_malformed_content_type_without_body::ser_malformed_content_type_without_body_http_response(self) {
|
1987 + | match crate::protocol_serde::shape_query_idempotency_token_auto_fill::ser_query_idempotency_token_auto_fill_http_response(self) {
|
2015 1988 | Ok(response) => response,
|
2016 1989 | Err(e) => {
|
2017 1990 | ::tracing::error!(error = %e, "failed to serialize response");
|
2018 1991 | ::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))
|
2019 1992 | }
|
2020 1993 | }
|
2021 1994 | }
|
2022 1995 | }
|
2023 1996 | impl
|
2024 1997 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2025 1998 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2026 - | > for crate::error::MalformedContentTypeWithoutBodyError
|
1999 + | > for crate::error::QueryIdempotencyTokenAutoFillError
|
2027 2000 | {
|
2028 2001 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2029 - | match crate::protocol_serde::shape_malformed_content_type_without_body::ser_malformed_content_type_without_body_http_error(&self) {
|
2002 + | match crate::protocol_serde::shape_query_idempotency_token_auto_fill::ser_query_idempotency_token_auto_fill_http_error(&self) {
|
2030 2003 | Ok(mut response) => {
|
2031 2004 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2032 2005 | response
|
2033 2006 | },
|
2034 2007 | Err(e) => {
|
2035 2008 | ::tracing::error!(error = %e, "failed to serialize response");
|
2036 2009 | ::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))
|
2037 2010 | }
|
2038 2011 | }
|
2039 2012 | }
|
2040 2013 | }
|
2041 2014 |
|
2042 2015 | ::pin_project_lite::pin_project! {
|
2043 2016 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2044 - | /// [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput) using modelled bindings.
|
2045 - | pub struct MalformedTimestampBodyHttpDateInputFuture {
|
2046 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampBodyHttpDateInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2017 + | /// [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput) using modelled bindings.
|
2018 + | pub struct QueryPrecedenceInputFuture {
|
2019 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryPrecedenceInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2047 2020 | }
|
2048 2021 | }
|
2049 2022 |
|
2050 - | impl std::future::Future for MalformedTimestampBodyHttpDateInputFuture {
|
2023 + | impl std::future::Future for QueryPrecedenceInputFuture {
|
2051 2024 | type Output = Result<
|
2052 - | crate::input::MalformedTimestampBodyHttpDateInput,
|
2025 + | crate::input::QueryPrecedenceInput,
|
2053 2026 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2054 2027 | >;
|
2055 2028 |
|
2056 2029 | fn poll(
|
2057 2030 | self: std::pin::Pin<&mut Self>,
|
2058 2031 | cx: &mut std::task::Context<'_>,
|
2059 2032 | ) -> std::task::Poll<Self::Output> {
|
2060 2033 | let this = self.project();
|
2061 2034 | this.inner.as_mut().poll(cx)
|
2062 2035 | }
|
2063 2036 | }
|
2064 2037 |
|
2065 2038 | impl<B>
|
2066 2039 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2067 2040 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2068 2041 | B,
|
2069 - | > for crate::input::MalformedTimestampBodyHttpDateInput
|
2042 + | > for crate::input::QueryPrecedenceInput
|
2070 2043 | where
|
2071 2044 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2072 2045 | B: 'static,
|
2073 2046 |
|
2074 2047 | B::Data: Send,
|
2075 2048 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2076 2049 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2077 2050 | {
|
2078 2051 | type Rejection =
|
2079 2052 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2080 - | type Future = MalformedTimestampBodyHttpDateInputFuture;
|
2053 + | type Future = QueryPrecedenceInputFuture;
|
2081 2054 |
|
2082 2055 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2083 2056 | let fut = async move {
|
2084 2057 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2085 2058 | request.headers(),
|
2086 2059 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2087 2060 | ) {
|
2088 2061 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2089 2062 | }
|
2090 - | crate::protocol_serde::shape_malformed_timestamp_body_http_date::de_malformed_timestamp_body_http_date_http_request(request)
|
2091 - | .await
|
2063 + | crate::protocol_serde::shape_query_precedence::de_query_precedence_http_request(request)
|
2064 + | .await
|
2092 2065 | };
|
2093 2066 | use ::futures_util::future::TryFutureExt;
|
2094 2067 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2095 2068 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2096 2069 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2097 2070 | });
|
2098 - | MalformedTimestampBodyHttpDateInputFuture {
|
2071 + | QueryPrecedenceInputFuture {
|
2099 2072 | inner: Box::pin(fut),
|
2100 2073 | }
|
2101 2074 | }
|
2102 2075 | }
|
2103 2076 | impl
|
2104 2077 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2105 2078 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2106 - | > for crate::output::MalformedTimestampBodyHttpDateOutput
|
2079 + | > for crate::output::QueryPrecedenceOutput
|
2107 2080 | {
|
2108 2081 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2109 - | match crate::protocol_serde::shape_malformed_timestamp_body_http_date::ser_malformed_timestamp_body_http_date_http_response(self) {
|
2110 - | Ok(response) => response,
|
2111 - | Err(e) => {
|
2112 - | ::tracing::error!(error = %e, "failed to serialize response");
|
2113 - | ::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))
|
2114 - | }
|
2115 - | }
|
2082 + | match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_response(
|
2083 + | self,
|
2084 + | ) {
|
2085 + | Ok(response) => response,
|
2086 + | Err(e) => {
|
2087 + | ::tracing::error!(error = %e, "failed to serialize response");
|
2088 + | ::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))
|
2089 + | }
|
2090 + | }
|
2116 2091 | }
|
2117 2092 | }
|
2118 2093 | impl
|
2119 2094 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2120 2095 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2121 - | > for crate::error::MalformedTimestampBodyHttpDateError
|
2096 + | > for crate::error::QueryPrecedenceError
|
2122 2097 | {
|
2123 2098 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2124 - | match crate::protocol_serde::shape_malformed_timestamp_body_http_date::ser_malformed_timestamp_body_http_date_http_error(&self) {
|
2099 + | match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_error(&self)
|
2100 + | {
|
2125 2101 | Ok(mut response) => {
|
2126 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2102 + | response.extensions_mut().insert(
|
2103 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
2104 + | self.name(),
|
2105 + | ),
|
2106 + | );
|
2127 2107 | response
|
2128 - | },
|
2108 + | }
|
2129 2109 | Err(e) => {
|
2130 2110 | ::tracing::error!(error = %e, "failed to serialize response");
|
2131 2111 | ::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))
|
2132 2112 | }
|
2133 2113 | }
|
2134 2114 | }
|
2135 2115 | }
|
2136 2116 |
|
2137 2117 | ::pin_project_lite::pin_project! {
|
2138 2118 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2139 - | /// [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput) using modelled bindings.
|
2140 - | pub struct MalformedTimestampBodyDateTimeInputFuture {
|
2141 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampBodyDateTimeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2119 + | /// [`HttpQueryParamsOnlyOperationInput`](crate::input::HttpQueryParamsOnlyOperationInput) using modelled bindings.
|
2120 + | pub struct HttpQueryParamsOnlyOperationInputFuture {
|
2121 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpQueryParamsOnlyOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2142 2122 | }
|
2143 2123 | }
|
2144 2124 |
|
2145 - | impl std::future::Future for MalformedTimestampBodyDateTimeInputFuture {
|
2125 + | impl std::future::Future for HttpQueryParamsOnlyOperationInputFuture {
|
2146 2126 | type Output = Result<
|
2147 - | crate::input::MalformedTimestampBodyDateTimeInput,
|
2127 + | crate::input::HttpQueryParamsOnlyOperationInput,
|
2148 2128 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2149 2129 | >;
|
2150 2130 |
|
2151 2131 | fn poll(
|
2152 2132 | self: std::pin::Pin<&mut Self>,
|
2153 2133 | cx: &mut std::task::Context<'_>,
|
2154 2134 | ) -> std::task::Poll<Self::Output> {
|
2155 2135 | let this = self.project();
|
2156 2136 | this.inner.as_mut().poll(cx)
|
2157 2137 | }
|
2158 2138 | }
|
2159 2139 |
|
2160 2140 | impl<B>
|
2161 2141 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2162 2142 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2163 2143 | B,
|
2164 - | > for crate::input::MalformedTimestampBodyDateTimeInput
|
2144 + | > for crate::input::HttpQueryParamsOnlyOperationInput
|
2165 2145 | where
|
2166 2146 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2167 2147 | B: 'static,
|
2168 2148 |
|
2169 2149 | B::Data: Send,
|
2170 2150 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2171 2151 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2172 2152 | {
|
2173 2153 | type Rejection =
|
2174 2154 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2175 - | type Future = MalformedTimestampBodyDateTimeInputFuture;
|
2155 + | type Future = HttpQueryParamsOnlyOperationInputFuture;
|
2176 2156 |
|
2177 2157 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2178 2158 | let fut = async move {
|
2179 2159 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2180 2160 | request.headers(),
|
2181 2161 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2182 2162 | ) {
|
2183 2163 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2184 2164 | }
|
2185 - | crate::protocol_serde::shape_malformed_timestamp_body_date_time::de_malformed_timestamp_body_date_time_http_request(request)
|
2165 + | crate::protocol_serde::shape_http_query_params_only_operation::de_http_query_params_only_operation_http_request(request)
|
2186 2166 | .await
|
2187 2167 | };
|
2188 2168 | use ::futures_util::future::TryFutureExt;
|
2189 2169 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2190 2170 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2191 2171 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2192 2172 | });
|
2193 - | MalformedTimestampBodyDateTimeInputFuture {
|
2173 + | HttpQueryParamsOnlyOperationInputFuture {
|
2194 2174 | inner: Box::pin(fut),
|
2195 2175 | }
|
2196 2176 | }
|
2197 2177 | }
|
2198 2178 | impl
|
2199 2179 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2200 2180 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2201 - | > for crate::output::MalformedTimestampBodyDateTimeOutput
|
2181 + | > for crate::output::HttpQueryParamsOnlyOperationOutput
|
2202 2182 | {
|
2203 2183 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2204 - | match crate::protocol_serde::shape_malformed_timestamp_body_date_time::ser_malformed_timestamp_body_date_time_http_response(self) {
|
2184 + | match crate::protocol_serde::shape_http_query_params_only_operation::ser_http_query_params_only_operation_http_response(self) {
|
2205 2185 | Ok(response) => response,
|
2206 2186 | Err(e) => {
|
2207 2187 | ::tracing::error!(error = %e, "failed to serialize response");
|
2208 2188 | ::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))
|
2209 2189 | }
|
2210 2190 | }
|
2211 2191 | }
|
2212 2192 | }
|
2213 2193 | impl
|
2214 2194 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2215 2195 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2216 - | > for crate::error::MalformedTimestampBodyDateTimeError
|
2196 + | > for crate::error::HttpQueryParamsOnlyOperationError
|
2217 2197 | {
|
2218 2198 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2219 - | match crate::protocol_serde::shape_malformed_timestamp_body_date_time::ser_malformed_timestamp_body_date_time_http_error(&self) {
|
2199 + | match crate::protocol_serde::shape_http_query_params_only_operation::ser_http_query_params_only_operation_http_error(&self) {
|
2220 2200 | Ok(mut response) => {
|
2221 2201 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2222 2202 | response
|
2223 2203 | },
|
2224 2204 | Err(e) => {
|
2225 2205 | ::tracing::error!(error = %e, "failed to serialize response");
|
2226 2206 | ::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))
|
2227 2207 | }
|
2228 2208 | }
|
2229 2209 | }
|
2230 2210 | }
|
2231 2211 |
|
2232 2212 | ::pin_project_lite::pin_project! {
|
2233 2213 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2234 - | /// [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput) using modelled bindings.
|
2235 - | pub struct MalformedTimestampBodyDefaultInputFuture {
|
2236 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampBodyDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2214 + | /// [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput) using modelled bindings.
|
2215 + | pub struct QueryParamsAsStringListMapInputFuture {
|
2216 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsAsStringListMapInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2237 2217 | }
|
2238 2218 | }
|
2239 2219 |
|
2240 - | impl std::future::Future for MalformedTimestampBodyDefaultInputFuture {
|
2220 + | impl std::future::Future for QueryParamsAsStringListMapInputFuture {
|
2241 2221 | type Output = Result<
|
2242 - | crate::input::MalformedTimestampBodyDefaultInput,
|
2222 + | crate::input::QueryParamsAsStringListMapInput,
|
2243 2223 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2244 2224 | >;
|
2245 2225 |
|
2246 2226 | fn poll(
|
2247 2227 | self: std::pin::Pin<&mut Self>,
|
2248 2228 | cx: &mut std::task::Context<'_>,
|
2249 2229 | ) -> std::task::Poll<Self::Output> {
|
2250 2230 | let this = self.project();
|
2251 2231 | this.inner.as_mut().poll(cx)
|
2252 2232 | }
|
2253 2233 | }
|
2254 2234 |
|
2255 2235 | impl<B>
|
2256 2236 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2257 2237 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2258 2238 | B,
|
2259 - | > for crate::input::MalformedTimestampBodyDefaultInput
|
2239 + | > for crate::input::QueryParamsAsStringListMapInput
|
2260 2240 | where
|
2261 2241 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2262 2242 | B: 'static,
|
2263 2243 |
|
2264 2244 | B::Data: Send,
|
2265 2245 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2266 2246 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2267 2247 | {
|
2268 2248 | type Rejection =
|
2269 2249 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2270 - | type Future = MalformedTimestampBodyDefaultInputFuture;
|
2250 + | type Future = QueryParamsAsStringListMapInputFuture;
|
2271 2251 |
|
2272 2252 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2273 2253 | let fut = async move {
|
2274 2254 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2275 2255 | request.headers(),
|
2276 2256 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2277 2257 | ) {
|
2278 2258 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2279 2259 | }
|
2280 - | crate::protocol_serde::shape_malformed_timestamp_body_default::de_malformed_timestamp_body_default_http_request(request)
|
2260 + | crate::protocol_serde::shape_query_params_as_string_list_map::de_query_params_as_string_list_map_http_request(request)
|
2281 2261 | .await
|
2282 2262 | };
|
2283 2263 | use ::futures_util::future::TryFutureExt;
|
2284 2264 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2285 2265 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2286 2266 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2287 2267 | });
|
2288 - | MalformedTimestampBodyDefaultInputFuture {
|
2268 + | QueryParamsAsStringListMapInputFuture {
|
2289 2269 | inner: Box::pin(fut),
|
2290 2270 | }
|
2291 2271 | }
|
2292 2272 | }
|
2293 2273 | impl
|
2294 2274 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2295 2275 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2296 - | > for crate::output::MalformedTimestampBodyDefaultOutput
|
2276 + | > for crate::output::QueryParamsAsStringListMapOutput
|
2297 2277 | {
|
2298 2278 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2299 - | match crate::protocol_serde::shape_malformed_timestamp_body_default::ser_malformed_timestamp_body_default_http_response(self) {
|
2279 + | match crate::protocol_serde::shape_query_params_as_string_list_map::ser_query_params_as_string_list_map_http_response(self) {
|
2300 2280 | Ok(response) => response,
|
2301 2281 | Err(e) => {
|
2302 2282 | ::tracing::error!(error = %e, "failed to serialize response");
|
2303 2283 | ::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))
|
2304 2284 | }
|
2305 2285 | }
|
2306 2286 | }
|
2307 2287 | }
|
2308 2288 | impl
|
2309 2289 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2310 2290 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2311 - | > for crate::error::MalformedTimestampBodyDefaultError
|
2291 + | > for crate::error::QueryParamsAsStringListMapError
|
2312 2292 | {
|
2313 2293 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2314 - | match crate::protocol_serde::shape_malformed_timestamp_body_default::ser_malformed_timestamp_body_default_http_error(&self) {
|
2294 + | match crate::protocol_serde::shape_query_params_as_string_list_map::ser_query_params_as_string_list_map_http_error(&self) {
|
2315 2295 | Ok(mut response) => {
|
2316 2296 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2317 2297 | response
|
2318 2298 | },
|
2319 2299 | Err(e) => {
|
2320 2300 | ::tracing::error!(error = %e, "failed to serialize response");
|
2321 2301 | ::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))
|
2322 2302 | }
|
2323 2303 | }
|
2324 2304 | }
|
2325 2305 | }
|
2326 2306 |
|
2327 2307 | ::pin_project_lite::pin_project! {
|
2328 2308 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2329 - | /// [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput) using modelled bindings.
|
2330 - | pub struct MalformedTimestampHeaderEpochInputFuture {
|
2331 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampHeaderEpochInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2309 + | /// [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput) using modelled bindings.
|
2310 + | pub struct HttpPrefixHeadersInputFuture {
|
2311 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPrefixHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2332 2312 | }
|
2333 2313 | }
|
2334 2314 |
|
2335 - | impl std::future::Future for MalformedTimestampHeaderEpochInputFuture {
|
2315 + | impl std::future::Future for HttpPrefixHeadersInputFuture {
|
2336 2316 | type Output = Result<
|
2337 - | crate::input::MalformedTimestampHeaderEpochInput,
|
2317 + | crate::input::HttpPrefixHeadersInput,
|
2338 2318 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2339 2319 | >;
|
2340 2320 |
|
2341 2321 | fn poll(
|
2342 2322 | self: std::pin::Pin<&mut Self>,
|
2343 2323 | cx: &mut std::task::Context<'_>,
|
2344 2324 | ) -> std::task::Poll<Self::Output> {
|
2345 2325 | let this = self.project();
|
2346 2326 | this.inner.as_mut().poll(cx)
|
2347 2327 | }
|
2348 2328 | }
|
2349 2329 |
|
2350 2330 | impl<B>
|
2351 2331 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2352 2332 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2353 2333 | B,
|
2354 - | > for crate::input::MalformedTimestampHeaderEpochInput
|
2334 + | > for crate::input::HttpPrefixHeadersInput
|
2355 2335 | where
|
2356 2336 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2357 2337 | B: 'static,
|
2358 2338 |
|
2359 2339 | B::Data: Send,
|
2360 2340 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2361 2341 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2362 2342 | {
|
2363 2343 | type Rejection =
|
2364 2344 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2365 - | type Future = MalformedTimestampHeaderEpochInputFuture;
|
2345 + | type Future = HttpPrefixHeadersInputFuture;
|
2366 2346 |
|
2367 2347 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2368 2348 | let fut = async move {
|
2369 2349 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2370 2350 | request.headers(),
|
2371 2351 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2372 2352 | ) {
|
2373 2353 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2374 2354 | }
|
2375 - | crate::protocol_serde::shape_malformed_timestamp_header_epoch::de_malformed_timestamp_header_epoch_http_request(request)
|
2376 - | .await
|
2355 + | crate::protocol_serde::shape_http_prefix_headers::de_http_prefix_headers_http_request(
|
2356 + | request,
|
2357 + | )
|
2358 + | .await
|
2377 2359 | };
|
2378 2360 | use ::futures_util::future::TryFutureExt;
|
2379 2361 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2380 2362 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2381 2363 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2382 2364 | });
|
2383 - | MalformedTimestampHeaderEpochInputFuture {
|
2365 + | HttpPrefixHeadersInputFuture {
|
2384 2366 | inner: Box::pin(fut),
|
2385 2367 | }
|
2386 2368 | }
|
2387 2369 | }
|
2388 2370 | impl
|
2389 2371 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2390 2372 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2391 - | > for crate::output::MalformedTimestampHeaderEpochOutput
|
2373 + | > for crate::output::HttpPrefixHeadersOutput
|
2392 2374 | {
|
2393 2375 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2394 - | match crate::protocol_serde::shape_malformed_timestamp_header_epoch::ser_malformed_timestamp_header_epoch_http_response(self) {
|
2376 + | match crate::protocol_serde::shape_http_prefix_headers::ser_http_prefix_headers_http_response(self) {
|
2395 2377 | Ok(response) => response,
|
2396 2378 | Err(e) => {
|
2397 2379 | ::tracing::error!(error = %e, "failed to serialize response");
|
2398 2380 | ::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))
|
2399 2381 | }
|
2400 2382 | }
|
2401 2383 | }
|
2402 2384 | }
|
2403 2385 | impl
|
2404 2386 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2405 2387 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2406 - | > for crate::error::MalformedTimestampHeaderEpochError
|
2388 + | > for crate::error::HttpPrefixHeadersError
|
2407 2389 | {
|
2408 2390 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2409 - | match crate::protocol_serde::shape_malformed_timestamp_header_epoch::ser_malformed_timestamp_header_epoch_http_error(&self) {
|
2391 + | match crate::protocol_serde::shape_http_prefix_headers::ser_http_prefix_headers_http_error(
|
2392 + | &self,
|
2393 + | ) {
|
2410 2394 | Ok(mut response) => {
|
2411 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2395 + | response.extensions_mut().insert(
|
2396 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
2397 + | self.name(),
|
2398 + | ),
|
2399 + | );
|
2412 2400 | response
|
2413 - | },
|
2401 + | }
|
2414 2402 | Err(e) => {
|
2415 2403 | ::tracing::error!(error = %e, "failed to serialize response");
|
2416 2404 | ::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))
|
2417 2405 | }
|
2418 2406 | }
|
2419 2407 | }
|
2420 2408 | }
|
2421 2409 |
|
2422 2410 | ::pin_project_lite::pin_project! {
|
2423 2411 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2424 - | /// [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput) using modelled bindings.
|
2425 - | pub struct MalformedTimestampHeaderDateTimeInputFuture {
|
2426 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampHeaderDateTimeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2412 + | /// [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput) using modelled bindings.
|
2413 + | pub struct HttpPrefixHeadersInResponseInputFuture {
|
2414 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPrefixHeadersInResponseInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2427 2415 | }
|
2428 2416 | }
|
2429 2417 |
|
2430 - | impl std::future::Future for MalformedTimestampHeaderDateTimeInputFuture {
|
2418 + | impl std::future::Future for HttpPrefixHeadersInResponseInputFuture {
|
2431 2419 | type Output = Result<
|
2432 - | crate::input::MalformedTimestampHeaderDateTimeInput,
|
2420 + | crate::input::HttpPrefixHeadersInResponseInput,
|
2433 2421 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2434 2422 | >;
|
2435 2423 |
|
2436 2424 | fn poll(
|
2437 2425 | self: std::pin::Pin<&mut Self>,
|
2438 2426 | cx: &mut std::task::Context<'_>,
|
2439 2427 | ) -> std::task::Poll<Self::Output> {
|
2440 2428 | let this = self.project();
|
2441 2429 | this.inner.as_mut().poll(cx)
|
2442 2430 | }
|
2443 2431 | }
|
2444 2432 |
|
2445 2433 | impl<B>
|
2446 2434 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2447 2435 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2448 2436 | B,
|
2449 - | > for crate::input::MalformedTimestampHeaderDateTimeInput
|
2437 + | > for crate::input::HttpPrefixHeadersInResponseInput
|
2450 2438 | where
|
2451 2439 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2452 2440 | B: 'static,
|
2453 2441 |
|
2454 2442 | B::Data: Send,
|
2455 2443 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2456 2444 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2457 2445 | {
|
2458 2446 | type Rejection =
|
2459 2447 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2460 - | type Future = MalformedTimestampHeaderDateTimeInputFuture;
|
2448 + | type Future = HttpPrefixHeadersInResponseInputFuture;
|
2461 2449 |
|
2462 2450 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2463 2451 | let fut = async move {
|
2464 2452 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2465 2453 | request.headers(),
|
2466 2454 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2467 2455 | ) {
|
2468 2456 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2469 2457 | }
|
2470 - | crate::protocol_serde::shape_malformed_timestamp_header_date_time::de_malformed_timestamp_header_date_time_http_request(request)
|
2458 + | crate::protocol_serde::shape_http_prefix_headers_in_response::de_http_prefix_headers_in_response_http_request(request)
|
2471 2459 | .await
|
2472 2460 | };
|
2473 2461 | use ::futures_util::future::TryFutureExt;
|
2474 2462 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2475 2463 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2476 2464 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2477 2465 | });
|
2478 - | MalformedTimestampHeaderDateTimeInputFuture {
|
2466 + | HttpPrefixHeadersInResponseInputFuture {
|
2479 2467 | inner: Box::pin(fut),
|
2480 2468 | }
|
2481 2469 | }
|
2482 2470 | }
|
2483 2471 | impl
|
2484 2472 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2485 2473 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2486 - | > for crate::output::MalformedTimestampHeaderDateTimeOutput
|
2474 + | > for crate::output::HttpPrefixHeadersInResponseOutput
|
2487 2475 | {
|
2488 2476 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2489 - | match crate::protocol_serde::shape_malformed_timestamp_header_date_time::ser_malformed_timestamp_header_date_time_http_response(self) {
|
2477 + | match crate::protocol_serde::shape_http_prefix_headers_in_response::ser_http_prefix_headers_in_response_http_response(self) {
|
2490 2478 | Ok(response) => response,
|
2491 2479 | Err(e) => {
|
2492 2480 | ::tracing::error!(error = %e, "failed to serialize response");
|
2493 2481 | ::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))
|
2494 2482 | }
|
2495 2483 | }
|
2496 2484 | }
|
2497 2485 | }
|
2498 2486 | impl
|
2499 2487 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2500 2488 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2501 - | > for crate::error::MalformedTimestampHeaderDateTimeError
|
2489 + | > for crate::error::HttpPrefixHeadersInResponseError
|
2502 2490 | {
|
2503 2491 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2504 - | match crate::protocol_serde::shape_malformed_timestamp_header_date_time::ser_malformed_timestamp_header_date_time_http_error(&self) {
|
2492 + | match crate::protocol_serde::shape_http_prefix_headers_in_response::ser_http_prefix_headers_in_response_http_error(&self) {
|
2505 2493 | Ok(mut response) => {
|
2506 2494 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2507 2495 | response
|
2508 2496 | },
|
2509 2497 | Err(e) => {
|
2510 2498 | ::tracing::error!(error = %e, "failed to serialize response");
|
2511 2499 | ::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))
|
2512 2500 | }
|
2513 2501 | }
|
2514 2502 | }
|
2515 2503 | }
|
2516 2504 |
|
2517 2505 | ::pin_project_lite::pin_project! {
|
2518 2506 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2519 - | /// [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput) using modelled bindings.
|
2520 - | pub struct MalformedTimestampHeaderDefaultInputFuture {
|
2521 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampHeaderDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2507 + | /// [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput) using modelled bindings.
|
2508 + | pub struct HttpEmptyPrefixHeadersInputFuture {
|
2509 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpEmptyPrefixHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2522 2510 | }
|
2523 2511 | }
|
2524 2512 |
|
2525 - | impl std::future::Future for MalformedTimestampHeaderDefaultInputFuture {
|
2513 + | impl std::future::Future for HttpEmptyPrefixHeadersInputFuture {
|
2526 2514 | type Output = Result<
|
2527 - | crate::input::MalformedTimestampHeaderDefaultInput,
|
2515 + | crate::input::HttpEmptyPrefixHeadersInput,
|
2528 2516 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2529 2517 | >;
|
2530 2518 |
|
2531 2519 | fn poll(
|
2532 2520 | self: std::pin::Pin<&mut Self>,
|
2533 2521 | cx: &mut std::task::Context<'_>,
|
2534 2522 | ) -> std::task::Poll<Self::Output> {
|
2535 2523 | let this = self.project();
|
2536 2524 | this.inner.as_mut().poll(cx)
|
2537 2525 | }
|
2538 2526 | }
|
2539 2527 |
|
2540 2528 | impl<B>
|
2541 2529 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2542 2530 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2543 2531 | B,
|
2544 - | > for crate::input::MalformedTimestampHeaderDefaultInput
|
2532 + | > for crate::input::HttpEmptyPrefixHeadersInput
|
2545 2533 | where
|
2546 2534 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2547 2535 | B: 'static,
|
2548 2536 |
|
2549 2537 | B::Data: Send,
|
2550 2538 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2551 2539 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2552 2540 | {
|
2553 2541 | type Rejection =
|
2554 2542 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2555 - | type Future = MalformedTimestampHeaderDefaultInputFuture;
|
2543 + | type Future = HttpEmptyPrefixHeadersInputFuture;
|
2556 2544 |
|
2557 2545 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2558 2546 | let fut = async move {
|
2559 2547 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2560 2548 | request.headers(),
|
2561 2549 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2562 2550 | ) {
|
2563 2551 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2564 2552 | }
|
2565 - | crate::protocol_serde::shape_malformed_timestamp_header_default::de_malformed_timestamp_header_default_http_request(request)
|
2553 + | crate::protocol_serde::shape_http_empty_prefix_headers::de_http_empty_prefix_headers_http_request(request)
|
2566 2554 | .await
|
2567 2555 | };
|
2568 2556 | use ::futures_util::future::TryFutureExt;
|
2569 2557 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2570 2558 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2571 2559 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2572 2560 | });
|
2573 - | MalformedTimestampHeaderDefaultInputFuture {
|
2561 + | HttpEmptyPrefixHeadersInputFuture {
|
2574 2562 | inner: Box::pin(fut),
|
2575 2563 | }
|
2576 2564 | }
|
2577 2565 | }
|
2578 2566 | impl
|
2579 2567 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2580 2568 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2581 - | > for crate::output::MalformedTimestampHeaderDefaultOutput
|
2569 + | > for crate::output::HttpEmptyPrefixHeadersOutput
|
2582 2570 | {
|
2583 2571 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2584 - | match crate::protocol_serde::shape_malformed_timestamp_header_default::ser_malformed_timestamp_header_default_http_response(self) {
|
2572 + | match crate::protocol_serde::shape_http_empty_prefix_headers::ser_http_empty_prefix_headers_http_response(self) {
|
2585 2573 | Ok(response) => response,
|
2586 2574 | Err(e) => {
|
2587 2575 | ::tracing::error!(error = %e, "failed to serialize response");
|
2588 2576 | ::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))
|
2589 2577 | }
|
2590 2578 | }
|
2591 2579 | }
|
2592 2580 | }
|
2593 2581 | impl
|
2594 2582 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2595 2583 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2596 - | > for crate::error::MalformedTimestampHeaderDefaultError
|
2584 + | > for crate::error::HttpEmptyPrefixHeadersError
|
2597 2585 | {
|
2598 2586 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2599 - | match crate::protocol_serde::shape_malformed_timestamp_header_default::ser_malformed_timestamp_header_default_http_error(&self) {
|
2587 + | match crate::protocol_serde::shape_http_empty_prefix_headers::ser_http_empty_prefix_headers_http_error(&self) {
|
2600 2588 | Ok(mut response) => {
|
2601 2589 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2602 2590 | response
|
2603 2591 | },
|
2604 2592 | Err(e) => {
|
2605 2593 | ::tracing::error!(error = %e, "failed to serialize response");
|
2606 2594 | ::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))
|
2607 2595 | }
|
2608 2596 | }
|
2609 2597 | }
|
2610 2598 | }
|
2611 2599 |
|
2612 2600 | ::pin_project_lite::pin_project! {
|
2613 2601 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2614 - | /// [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput) using modelled bindings.
|
2615 - | pub struct MalformedTimestampQueryEpochInputFuture {
|
2616 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampQueryEpochInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2602 + | /// [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput) using modelled bindings.
|
2603 + | pub struct HttpPayloadTraitsInputFuture {
|
2604 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadTraitsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2617 2605 | }
|
2618 2606 | }
|
2619 2607 |
|
2620 - | impl std::future::Future for MalformedTimestampQueryEpochInputFuture {
|
2608 + | impl std::future::Future for HttpPayloadTraitsInputFuture {
|
2621 2609 | type Output = Result<
|
2622 - | crate::input::MalformedTimestampQueryEpochInput,
|
2610 + | crate::input::HttpPayloadTraitsInput,
|
2623 2611 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2624 2612 | >;
|
2625 2613 |
|
2626 2614 | fn poll(
|
2627 2615 | self: std::pin::Pin<&mut Self>,
|
2628 2616 | cx: &mut std::task::Context<'_>,
|
2629 2617 | ) -> std::task::Poll<Self::Output> {
|
2630 2618 | let this = self.project();
|
2631 2619 | this.inner.as_mut().poll(cx)
|
2632 2620 | }
|
2633 2621 | }
|
2634 2622 |
|
2635 2623 | impl<B>
|
2636 2624 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2637 2625 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2638 2626 | B,
|
2639 - | > for crate::input::MalformedTimestampQueryEpochInput
|
2627 + | > for crate::input::HttpPayloadTraitsInput
|
2640 2628 | where
|
2641 2629 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2642 2630 | B: 'static,
|
2643 2631 |
|
2644 2632 | B::Data: Send,
|
2645 2633 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2646 2634 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2647 2635 | {
|
2648 2636 | type Rejection =
|
2649 2637 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2650 - | type Future = MalformedTimestampQueryEpochInputFuture;
|
2638 + | type Future = HttpPayloadTraitsInputFuture;
|
2651 2639 |
|
2652 2640 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2653 2641 | let fut = async move {
|
2654 - | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2655 - | request.headers(),
|
2656 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2657 - | ) {
|
2658 - | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2659 - | }
|
2660 - | crate::protocol_serde::shape_malformed_timestamp_query_epoch::de_malformed_timestamp_query_epoch_http_request(request)
|
2661 - | .await
|
2642 + | crate::protocol_serde::shape_http_payload_traits::de_http_payload_traits_http_request(
|
2643 + | request,
|
2644 + | )
|
2645 + | .await
|
2662 2646 | };
|
2663 2647 | use ::futures_util::future::TryFutureExt;
|
2664 2648 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2665 2649 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2666 2650 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2667 2651 | });
|
2668 - | MalformedTimestampQueryEpochInputFuture {
|
2652 + | HttpPayloadTraitsInputFuture {
|
2669 2653 | inner: Box::pin(fut),
|
2670 2654 | }
|
2671 2655 | }
|
2672 2656 | }
|
2673 2657 | impl
|
2674 2658 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2675 2659 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2676 - | > for crate::output::MalformedTimestampQueryEpochOutput
|
2660 + | > for crate::output::HttpPayloadTraitsOutput
|
2677 2661 | {
|
2678 2662 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2679 - | match crate::protocol_serde::shape_malformed_timestamp_query_epoch::ser_malformed_timestamp_query_epoch_http_response(self) {
|
2663 + | match crate::protocol_serde::shape_http_payload_traits::ser_http_payload_traits_http_response(self) {
|
2680 2664 | Ok(response) => response,
|
2681 2665 | Err(e) => {
|
2682 2666 | ::tracing::error!(error = %e, "failed to serialize response");
|
2683 2667 | ::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))
|
2684 2668 | }
|
2685 2669 | }
|
2686 2670 | }
|
2687 2671 | }
|
2688 2672 | impl
|
2689 2673 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2690 2674 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2691 - | > for crate::error::MalformedTimestampQueryEpochError
|
2675 + | > for crate::error::HttpPayloadTraitsError
|
2692 2676 | {
|
2693 2677 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2694 - | match crate::protocol_serde::shape_malformed_timestamp_query_epoch::ser_malformed_timestamp_query_epoch_http_error(&self) {
|
2678 + | match crate::protocol_serde::shape_http_payload_traits::ser_http_payload_traits_http_error(
|
2679 + | &self,
|
2680 + | ) {
|
2695 2681 | Ok(mut response) => {
|
2696 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2682 + | response.extensions_mut().insert(
|
2683 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
2684 + | self.name(),
|
2685 + | ),
|
2686 + | );
|
2697 2687 | response
|
2698 - | },
|
2688 + | }
|
2699 2689 | Err(e) => {
|
2700 2690 | ::tracing::error!(error = %e, "failed to serialize response");
|
2701 2691 | ::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))
|
2702 2692 | }
|
2703 2693 | }
|
2704 2694 | }
|
2705 2695 | }
|
2706 2696 |
|
2707 2697 | ::pin_project_lite::pin_project! {
|
2708 2698 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2709 - | /// [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput) using modelled bindings.
|
2710 - | pub struct MalformedTimestampQueryHttpDateInputFuture {
|
2711 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampQueryHttpDateInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2699 + | /// [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput) using modelled bindings.
|
2700 + | pub struct HttpPayloadTraitsWithMediaTypeInputFuture {
|
2701 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadTraitsWithMediaTypeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2712 2702 | }
|
2713 2703 | }
|
2714 2704 |
|
2715 - | impl std::future::Future for MalformedTimestampQueryHttpDateInputFuture {
|
2705 + | impl std::future::Future for HttpPayloadTraitsWithMediaTypeInputFuture {
|
2716 2706 | type Output = Result<
|
2717 - | crate::input::MalformedTimestampQueryHttpDateInput,
|
2707 + | crate::input::HttpPayloadTraitsWithMediaTypeInput,
|
2718 2708 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2719 2709 | >;
|
2720 2710 |
|
2721 2711 | fn poll(
|
2722 2712 | self: std::pin::Pin<&mut Self>,
|
2723 2713 | cx: &mut std::task::Context<'_>,
|
2724 2714 | ) -> std::task::Poll<Self::Output> {
|
2725 2715 | let this = self.project();
|
2726 2716 | this.inner.as_mut().poll(cx)
|
2727 2717 | }
|
2728 2718 | }
|
2729 2719 |
|
2730 2720 | impl<B>
|
2731 2721 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2732 2722 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2733 2723 | B,
|
2734 - | > for crate::input::MalformedTimestampQueryHttpDateInput
|
2724 + | > for crate::input::HttpPayloadTraitsWithMediaTypeInput
|
2735 2725 | where
|
2736 2726 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2737 2727 | B: 'static,
|
2738 2728 |
|
2739 2729 | B::Data: Send,
|
2740 2730 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2741 2731 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2742 2732 | {
|
2743 2733 | type Rejection =
|
2744 2734 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2745 - | type Future = MalformedTimestampQueryHttpDateInputFuture;
|
2735 + | type Future = HttpPayloadTraitsWithMediaTypeInputFuture;
|
2746 2736 |
|
2747 2737 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2748 2738 | let fut = async move {
|
2749 2739 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2750 2740 | request.headers(),
|
2751 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2741 + | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
2752 2742 | ) {
|
2753 2743 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2754 2744 | }
|
2755 - | crate::protocol_serde::shape_malformed_timestamp_query_http_date::de_malformed_timestamp_query_http_date_http_request(request)
|
2745 + | crate::protocol_serde::shape_http_payload_traits_with_media_type::de_http_payload_traits_with_media_type_http_request(request)
|
2756 2746 | .await
|
2757 2747 | };
|
2758 2748 | use ::futures_util::future::TryFutureExt;
|
2759 2749 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2760 2750 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2761 2751 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2762 2752 | });
|
2763 - | MalformedTimestampQueryHttpDateInputFuture {
|
2753 + | HttpPayloadTraitsWithMediaTypeInputFuture {
|
2764 2754 | inner: Box::pin(fut),
|
2765 2755 | }
|
2766 2756 | }
|
2767 2757 | }
|
2768 2758 | impl
|
2769 2759 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2770 2760 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2771 - | > for crate::output::MalformedTimestampQueryHttpDateOutput
|
2761 + | > for crate::output::HttpPayloadTraitsWithMediaTypeOutput
|
2772 2762 | {
|
2773 2763 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2774 - | match crate::protocol_serde::shape_malformed_timestamp_query_http_date::ser_malformed_timestamp_query_http_date_http_response(self) {
|
2764 + | match crate::protocol_serde::shape_http_payload_traits_with_media_type::ser_http_payload_traits_with_media_type_http_response(self) {
|
2775 2765 | Ok(response) => response,
|
2776 2766 | Err(e) => {
|
2777 2767 | ::tracing::error!(error = %e, "failed to serialize response");
|
2778 2768 | ::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))
|
2779 2769 | }
|
2780 2770 | }
|
2781 2771 | }
|
2782 2772 | }
|
2783 2773 | impl
|
2784 2774 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2785 2775 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2786 - | > for crate::error::MalformedTimestampQueryHttpDateError
|
2776 + | > for crate::error::HttpPayloadTraitsWithMediaTypeError
|
2787 2777 | {
|
2788 2778 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2789 - | match crate::protocol_serde::shape_malformed_timestamp_query_http_date::ser_malformed_timestamp_query_http_date_http_error(&self) {
|
2779 + | match crate::protocol_serde::shape_http_payload_traits_with_media_type::ser_http_payload_traits_with_media_type_http_error(&self) {
|
2790 2780 | Ok(mut response) => {
|
2791 2781 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2792 2782 | response
|
2793 2783 | },
|
2794 2784 | Err(e) => {
|
2795 2785 | ::tracing::error!(error = %e, "failed to serialize response");
|
2796 2786 | ::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))
|
2797 2787 | }
|
2798 2788 | }
|
2799 2789 | }
|
2800 2790 | }
|
2801 2791 |
|
2802 2792 | ::pin_project_lite::pin_project! {
|
2803 2793 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2804 - | /// [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput) using modelled bindings.
|
2805 - | pub struct MalformedTimestampQueryDefaultInputFuture {
|
2806 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampQueryDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2794 + | /// [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput) using modelled bindings.
|
2795 + | pub struct HttpPayloadWithStructureInputFuture {
|
2796 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadWithStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2807 2797 | }
|
2808 2798 | }
|
2809 2799 |
|
2810 - | impl std::future::Future for MalformedTimestampQueryDefaultInputFuture {
|
2800 + | impl std::future::Future for HttpPayloadWithStructureInputFuture {
|
2811 2801 | type Output = Result<
|
2812 - | crate::input::MalformedTimestampQueryDefaultInput,
|
2802 + | crate::input::HttpPayloadWithStructureInput,
|
2813 2803 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2814 2804 | >;
|
2815 2805 |
|
2816 2806 | fn poll(
|
2817 2807 | self: std::pin::Pin<&mut Self>,
|
2818 2808 | cx: &mut std::task::Context<'_>,
|
2819 2809 | ) -> std::task::Poll<Self::Output> {
|
2820 2810 | let this = self.project();
|
2821 2811 | this.inner.as_mut().poll(cx)
|
2822 2812 | }
|
2823 2813 | }
|
2824 2814 |
|
2825 2815 | impl<B>
|
2826 2816 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2827 2817 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2828 2818 | B,
|
2829 - | > for crate::input::MalformedTimestampQueryDefaultInput
|
2819 + | > for crate::input::HttpPayloadWithStructureInput
|
2830 2820 | where
|
2831 2821 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2832 2822 | B: 'static,
|
2833 2823 |
|
2834 2824 | B::Data: Send,
|
2835 2825 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2836 2826 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2837 2827 | {
|
2838 2828 | type Rejection =
|
2839 2829 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2840 - | type Future = MalformedTimestampQueryDefaultInputFuture;
|
2830 + | type Future = HttpPayloadWithStructureInputFuture;
|
2841 2831 |
|
2842 2832 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2843 2833 | let fut = async move {
|
2844 2834 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2845 2835 | request.headers(),
|
2846 2836 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2847 2837 | ) {
|
2848 2838 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2849 2839 | }
|
2850 - | crate::protocol_serde::shape_malformed_timestamp_query_default::de_malformed_timestamp_query_default_http_request(request)
|
2840 + | crate::protocol_serde::shape_http_payload_with_structure::de_http_payload_with_structure_http_request(request)
|
2851 2841 | .await
|
2852 2842 | };
|
2853 2843 | use ::futures_util::future::TryFutureExt;
|
2854 2844 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2855 2845 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2856 2846 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2857 2847 | });
|
2858 - | MalformedTimestampQueryDefaultInputFuture {
|
2848 + | HttpPayloadWithStructureInputFuture {
|
2859 2849 | inner: Box::pin(fut),
|
2860 2850 | }
|
2861 2851 | }
|
2862 2852 | }
|
2863 2853 | impl
|
2864 2854 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2865 2855 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2866 - | > for crate::output::MalformedTimestampQueryDefaultOutput
|
2856 + | > for crate::output::HttpPayloadWithStructureOutput
|
2867 2857 | {
|
2868 2858 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2869 - | match crate::protocol_serde::shape_malformed_timestamp_query_default::ser_malformed_timestamp_query_default_http_response(self) {
|
2859 + | match crate::protocol_serde::shape_http_payload_with_structure::ser_http_payload_with_structure_http_response(self) {
|
2870 2860 | Ok(response) => response,
|
2871 2861 | Err(e) => {
|
2872 2862 | ::tracing::error!(error = %e, "failed to serialize response");
|
2873 2863 | ::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))
|
2874 2864 | }
|
2875 2865 | }
|
2876 2866 | }
|
2877 2867 | }
|
2878 2868 | impl
|
2879 2869 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2880 2870 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2881 - | > for crate::error::MalformedTimestampQueryDefaultError
|
2871 + | > for crate::error::HttpPayloadWithStructureError
|
2882 2872 | {
|
2883 2873 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2884 - | match crate::protocol_serde::shape_malformed_timestamp_query_default::ser_malformed_timestamp_query_default_http_error(&self) {
|
2874 + | match crate::protocol_serde::shape_http_payload_with_structure::ser_http_payload_with_structure_http_error(&self) {
|
2885 2875 | Ok(mut response) => {
|
2886 2876 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2887 2877 | response
|
2888 2878 | },
|
2889 2879 | Err(e) => {
|
2890 2880 | ::tracing::error!(error = %e, "failed to serialize response");
|
2891 2881 | ::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))
|
2892 2882 | }
|
2893 2883 | }
|
2894 2884 | }
|
2895 2885 | }
|
2896 2886 |
|
2897 2887 | ::pin_project_lite::pin_project! {
|
2898 2888 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2899 - | /// [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput) using modelled bindings.
|
2900 - | pub struct MalformedTimestampPathEpochInputFuture {
|
2901 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampPathEpochInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2889 + | /// [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput) using modelled bindings.
|
2890 + | pub struct HttpEnumPayloadInputFuture {
|
2891 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpEnumPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2902 2892 | }
|
2903 2893 | }
|
2904 2894 |
|
2905 - | impl std::future::Future for MalformedTimestampPathEpochInputFuture {
|
2895 + | impl std::future::Future for HttpEnumPayloadInputFuture {
|
2906 2896 | type Output = Result<
|
2907 - | crate::input::MalformedTimestampPathEpochInput,
|
2897 + | crate::input::HttpEnumPayloadInput,
|
2908 2898 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
2909 2899 | >;
|
2910 2900 |
|
2911 2901 | fn poll(
|
2912 2902 | self: std::pin::Pin<&mut Self>,
|
2913 2903 | cx: &mut std::task::Context<'_>,
|
2914 2904 | ) -> std::task::Poll<Self::Output> {
|
2915 2905 | let this = self.project();
|
2916 2906 | this.inner.as_mut().poll(cx)
|
2917 2907 | }
|
2918 2908 | }
|
2919 2909 |
|
2920 2910 | impl<B>
|
2921 2911 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
2922 2912 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2923 2913 | B,
|
2924 - | > for crate::input::MalformedTimestampPathEpochInput
|
2914 + | > for crate::input::HttpEnumPayloadInput
|
2925 2915 | where
|
2926 2916 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
2927 2917 | B: 'static,
|
2928 2918 |
|
2929 2919 | B::Data: Send,
|
2930 2920 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
2931 2921 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
2932 2922 | {
|
2933 2923 | type Rejection =
|
2934 2924 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
2935 - | type Future = MalformedTimestampPathEpochInputFuture;
|
2925 + | type Future = HttpEnumPayloadInputFuture;
|
2936 2926 |
|
2937 2927 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
2938 2928 | let fut = async move {
|
2939 2929 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
2940 2930 | request.headers(),
|
2941 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
2931 + | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
2942 2932 | ) {
|
2943 2933 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
2944 2934 | }
|
2945 - | crate::protocol_serde::shape_malformed_timestamp_path_epoch::de_malformed_timestamp_path_epoch_http_request(request)
|
2946 - | .await
|
2935 + | crate::protocol_serde::shape_http_enum_payload::de_http_enum_payload_http_request(
|
2936 + | request,
|
2937 + | )
|
2938 + | .await
|
2947 2939 | };
|
2948 2940 | use ::futures_util::future::TryFutureExt;
|
2949 2941 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
2950 2942 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
2951 2943 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
2952 2944 | });
|
2953 - | MalformedTimestampPathEpochInputFuture {
|
2945 + | HttpEnumPayloadInputFuture {
|
2954 2946 | inner: Box::pin(fut),
|
2955 2947 | }
|
2956 2948 | }
|
2957 2949 | }
|
2958 2950 | impl
|
2959 2951 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2960 2952 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2961 - | > for crate::output::MalformedTimestampPathEpochOutput
|
2953 + | > for crate::output::HttpEnumPayloadOutput
|
2962 2954 | {
|
2963 2955 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2964 - | match crate::protocol_serde::shape_malformed_timestamp_path_epoch::ser_malformed_timestamp_path_epoch_http_response(self) {
|
2965 - | Ok(response) => response,
|
2966 - | Err(e) => {
|
2967 - | ::tracing::error!(error = %e, "failed to serialize response");
|
2968 - | ::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))
|
2969 - | }
|
2970 - | }
|
2956 + | match crate::protocol_serde::shape_http_enum_payload::ser_http_enum_payload_http_response(
|
2957 + | self,
|
2958 + | ) {
|
2959 + | Ok(response) => response,
|
2960 + | Err(e) => {
|
2961 + | ::tracing::error!(error = %e, "failed to serialize response");
|
2962 + | ::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))
|
2963 + | }
|
2964 + | }
|
2971 2965 | }
|
2972 2966 | }
|
2973 2967 | impl
|
2974 2968 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
2975 2969 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
2976 - | > for crate::error::MalformedTimestampPathEpochError
|
2970 + | > for crate::error::HttpEnumPayloadError
|
2977 2971 | {
|
2978 2972 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
2979 - | match crate::protocol_serde::shape_malformed_timestamp_path_epoch::ser_malformed_timestamp_path_epoch_http_error(&self) {
|
2973 + | match crate::protocol_serde::shape_http_enum_payload::ser_http_enum_payload_http_error(
|
2974 + | &self,
|
2975 + | ) {
|
2980 2976 | Ok(mut response) => {
|
2981 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
2977 + | response.extensions_mut().insert(
|
2978 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
2979 + | self.name(),
|
2980 + | ),
|
2981 + | );
|
2982 2982 | response
|
2983 - | },
|
2983 + | }
|
2984 2984 | Err(e) => {
|
2985 2985 | ::tracing::error!(error = %e, "failed to serialize response");
|
2986 2986 | ::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))
|
2987 2987 | }
|
2988 2988 | }
|
2989 2989 | }
|
2990 2990 | }
|
2991 2991 |
|
2992 2992 | ::pin_project_lite::pin_project! {
|
2993 2993 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
2994 - | /// [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput) using modelled bindings.
|
2995 - | pub struct MalformedTimestampPathHttpDateInputFuture {
|
2996 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampPathHttpDateInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2994 + | /// [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput) using modelled bindings.
|
2995 + | pub struct HttpStringPayloadInputFuture {
|
2996 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpStringPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
2997 2997 | }
|
2998 2998 | }
|
2999 2999 |
|
3000 - | impl std::future::Future for MalformedTimestampPathHttpDateInputFuture {
|
3000 + | impl std::future::Future for HttpStringPayloadInputFuture {
|
3001 3001 | type Output = Result<
|
3002 - | crate::input::MalformedTimestampPathHttpDateInput,
|
3002 + | crate::input::HttpStringPayloadInput,
|
3003 3003 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3004 3004 | >;
|
3005 3005 |
|
3006 3006 | fn poll(
|
3007 3007 | self: std::pin::Pin<&mut Self>,
|
3008 3008 | cx: &mut std::task::Context<'_>,
|
3009 3009 | ) -> std::task::Poll<Self::Output> {
|
3010 3010 | let this = self.project();
|
3011 3011 | this.inner.as_mut().poll(cx)
|
3012 3012 | }
|
3013 3013 | }
|
3014 3014 |
|
3015 3015 | impl<B>
|
3016 3016 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3017 3017 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3018 3018 | B,
|
3019 - | > for crate::input::MalformedTimestampPathHttpDateInput
|
3019 + | > for crate::input::HttpStringPayloadInput
|
3020 3020 | where
|
3021 3021 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3022 3022 | B: 'static,
|
3023 3023 |
|
3024 3024 | B::Data: Send,
|
3025 3025 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3026 3026 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3027 3027 | {
|
3028 3028 | type Rejection =
|
3029 3029 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3030 - | type Future = MalformedTimestampPathHttpDateInputFuture;
|
3030 + | type Future = HttpStringPayloadInputFuture;
|
3031 3031 |
|
3032 3032 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3033 3033 | let fut = async move {
|
3034 3034 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3035 3035 | request.headers(),
|
3036 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3036 + | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
3037 3037 | ) {
|
3038 3038 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3039 3039 | }
|
3040 - | crate::protocol_serde::shape_malformed_timestamp_path_http_date::de_malformed_timestamp_path_http_date_http_request(request)
|
3041 - | .await
|
3040 + | crate::protocol_serde::shape_http_string_payload::de_http_string_payload_http_request(
|
3041 + | request,
|
3042 + | )
|
3043 + | .await
|
3042 3044 | };
|
3043 3045 | use ::futures_util::future::TryFutureExt;
|
3044 3046 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3045 3047 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3046 3048 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3047 3049 | });
|
3048 - | MalformedTimestampPathHttpDateInputFuture {
|
3050 + | HttpStringPayloadInputFuture {
|
3049 3051 | inner: Box::pin(fut),
|
3050 3052 | }
|
3051 3053 | }
|
3052 3054 | }
|
3053 3055 | impl
|
3054 3056 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3055 3057 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3056 - | > for crate::output::MalformedTimestampPathHttpDateOutput
|
3058 + | > for crate::output::HttpStringPayloadOutput
|
3057 3059 | {
|
3058 3060 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3059 - | match crate::protocol_serde::shape_malformed_timestamp_path_http_date::ser_malformed_timestamp_path_http_date_http_response(self) {
|
3061 + | match crate::protocol_serde::shape_http_string_payload::ser_http_string_payload_http_response(self) {
|
3060 3062 | Ok(response) => response,
|
3061 3063 | Err(e) => {
|
3062 3064 | ::tracing::error!(error = %e, "failed to serialize response");
|
3063 3065 | ::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))
|
3064 3066 | }
|
3065 3067 | }
|
3066 3068 | }
|
3067 3069 | }
|
3068 3070 | impl
|
3069 3071 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3070 3072 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3071 - | > for crate::error::MalformedTimestampPathHttpDateError
|
3073 + | > for crate::error::HttpStringPayloadError
|
3072 3074 | {
|
3073 3075 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3074 - | match crate::protocol_serde::shape_malformed_timestamp_path_http_date::ser_malformed_timestamp_path_http_date_http_error(&self) {
|
3076 + | match crate::protocol_serde::shape_http_string_payload::ser_http_string_payload_http_error(
|
3077 + | &self,
|
3078 + | ) {
|
3075 3079 | Ok(mut response) => {
|
3076 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
3080 + | response.extensions_mut().insert(
|
3081 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3082 + | self.name(),
|
3083 + | ),
|
3084 + | );
|
3077 3085 | response
|
3078 - | },
|
3086 + | }
|
3079 3087 | Err(e) => {
|
3080 3088 | ::tracing::error!(error = %e, "failed to serialize response");
|
3081 3089 | ::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))
|
3082 3090 | }
|
3083 3091 | }
|
3084 3092 | }
|
3085 3093 | }
|
3086 3094 |
|
3087 3095 | ::pin_project_lite::pin_project! {
|
3088 3096 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3089 - | /// [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput) using modelled bindings.
|
3090 - | pub struct MalformedTimestampPathDefaultInputFuture {
|
3091 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampPathDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3097 + | /// [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput) using modelled bindings.
|
3098 + | pub struct HttpPayloadWithUnionInputFuture {
|
3099 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadWithUnionInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3092 3100 | }
|
3093 3101 | }
|
3094 3102 |
|
3095 - | impl std::future::Future for MalformedTimestampPathDefaultInputFuture {
|
3103 + | impl std::future::Future for HttpPayloadWithUnionInputFuture {
|
3096 3104 | type Output = Result<
|
3097 - | crate::input::MalformedTimestampPathDefaultInput,
|
3105 + | crate::input::HttpPayloadWithUnionInput,
|
3098 3106 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3099 3107 | >;
|
3100 3108 |
|
3101 3109 | fn poll(
|
3102 3110 | self: std::pin::Pin<&mut Self>,
|
3103 3111 | cx: &mut std::task::Context<'_>,
|
3104 3112 | ) -> std::task::Poll<Self::Output> {
|
3105 3113 | let this = self.project();
|
3106 3114 | this.inner.as_mut().poll(cx)
|
3107 3115 | }
|
3108 3116 | }
|
3109 3117 |
|
3110 3118 | impl<B>
|
3111 3119 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3112 3120 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3113 3121 | B,
|
3114 - | > for crate::input::MalformedTimestampPathDefaultInput
|
3122 + | > for crate::input::HttpPayloadWithUnionInput
|
3115 3123 | where
|
3116 3124 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3117 3125 | B: 'static,
|
3118 3126 |
|
3119 3127 | B::Data: Send,
|
3120 3128 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3121 3129 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3122 3130 | {
|
3123 3131 | type Rejection =
|
3124 3132 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3125 - | type Future = MalformedTimestampPathDefaultInputFuture;
|
3133 + | type Future = HttpPayloadWithUnionInputFuture;
|
3126 3134 |
|
3127 3135 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3128 3136 | let fut = async move {
|
3129 3137 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3130 3138 | request.headers(),
|
3131 3139 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3132 3140 | ) {
|
3133 3141 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3134 3142 | }
|
3135 - | crate::protocol_serde::shape_malformed_timestamp_path_default::de_malformed_timestamp_path_default_http_request(request)
|
3143 + | crate::protocol_serde::shape_http_payload_with_union::de_http_payload_with_union_http_request(request)
|
3136 3144 | .await
|
3137 3145 | };
|
3138 3146 | use ::futures_util::future::TryFutureExt;
|
3139 3147 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3140 3148 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3141 3149 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3142 3150 | });
|
3143 - | MalformedTimestampPathDefaultInputFuture {
|
3151 + | HttpPayloadWithUnionInputFuture {
|
3144 3152 | inner: Box::pin(fut),
|
3145 3153 | }
|
3146 3154 | }
|
3147 3155 | }
|
3148 3156 | impl
|
3149 3157 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3150 3158 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3151 - | > for crate::output::MalformedTimestampPathDefaultOutput
|
3159 + | > for crate::output::HttpPayloadWithUnionOutput
|
3152 3160 | {
|
3153 3161 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3154 - | match crate::protocol_serde::shape_malformed_timestamp_path_default::ser_malformed_timestamp_path_default_http_response(self) {
|
3162 + | match crate::protocol_serde::shape_http_payload_with_union::ser_http_payload_with_union_http_response(self) {
|
3155 3163 | Ok(response) => response,
|
3156 3164 | Err(e) => {
|
3157 3165 | ::tracing::error!(error = %e, "failed to serialize response");
|
3158 3166 | ::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))
|
3159 3167 | }
|
3160 3168 | }
|
3161 3169 | }
|
3162 3170 | }
|
3163 3171 | impl
|
3164 3172 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3165 3173 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3166 - | > for crate::error::MalformedTimestampPathDefaultError
|
3174 + | > for crate::error::HttpPayloadWithUnionError
|
3167 3175 | {
|
3168 3176 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3169 - | match crate::protocol_serde::shape_malformed_timestamp_path_default::ser_malformed_timestamp_path_default_http_error(&self) {
|
3177 + | match crate::protocol_serde::shape_http_payload_with_union::ser_http_payload_with_union_http_error(&self) {
|
3170 3178 | Ok(mut response) => {
|
3171 3179 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
3172 3180 | response
|
3173 3181 | },
|
3174 3182 | Err(e) => {
|
3175 3183 | ::tracing::error!(error = %e, "failed to serialize response");
|
3176 3184 | ::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))
|
3177 3185 | }
|
3178 3186 | }
|
3179 3187 | }
|
3180 3188 | }
|
3181 3189 |
|
3182 3190 | ::pin_project_lite::pin_project! {
|
3183 3191 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3184 - | /// [`MalformedStringInput`](crate::input::MalformedStringInput) using modelled bindings.
|
3185 - | pub struct MalformedStringInputFuture {
|
3186 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3192 + | /// [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput) using modelled bindings.
|
3193 + | pub struct HttpResponseCodeInputFuture {
|
3194 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpResponseCodeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3187 3195 | }
|
3188 3196 | }
|
3189 3197 |
|
3190 - | impl std::future::Future for MalformedStringInputFuture {
|
3198 + | impl std::future::Future for HttpResponseCodeInputFuture {
|
3191 3199 | type Output = Result<
|
3192 - | crate::input::MalformedStringInput,
|
3200 + | crate::input::HttpResponseCodeInput,
|
3193 3201 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3194 3202 | >;
|
3195 3203 |
|
3196 3204 | fn poll(
|
3197 3205 | self: std::pin::Pin<&mut Self>,
|
3198 3206 | cx: &mut std::task::Context<'_>,
|
3199 3207 | ) -> std::task::Poll<Self::Output> {
|
3200 3208 | let this = self.project();
|
3201 3209 | this.inner.as_mut().poll(cx)
|
3202 3210 | }
|
3203 3211 | }
|
3204 3212 |
|
3205 3213 | impl<B>
|
3206 3214 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3207 3215 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3208 3216 | B,
|
3209 - | > for crate::input::MalformedStringInput
|
3217 + | > for crate::input::HttpResponseCodeInput
|
3210 3218 | where
|
3211 3219 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3212 3220 | B: 'static,
|
3213 3221 |
|
3214 3222 | B::Data: Send,
|
3215 3223 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3216 3224 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3217 3225 | {
|
3218 3226 | type Rejection =
|
3219 3227 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3220 - | type Future = MalformedStringInputFuture;
|
3228 + | type Future = HttpResponseCodeInputFuture;
|
3221 3229 |
|
3222 3230 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3223 3231 | let fut = async move {
|
3224 3232 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3225 3233 | request.headers(),
|
3226 3234 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3227 3235 | ) {
|
3228 3236 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3229 3237 | }
|
3230 - | crate::protocol_serde::shape_malformed_string::de_malformed_string_http_request(request)
|
3231 - | .await
|
3238 + | crate::protocol_serde::shape_http_response_code::de_http_response_code_http_request(
|
3239 + | request,
|
3240 + | )
|
3241 + | .await
|
3232 3242 | };
|
3233 3243 | use ::futures_util::future::TryFutureExt;
|
3234 3244 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3235 3245 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3236 3246 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3237 3247 | });
|
3238 - | MalformedStringInputFuture {
|
3248 + | HttpResponseCodeInputFuture {
|
3239 3249 | inner: Box::pin(fut),
|
3240 3250 | }
|
3241 3251 | }
|
3242 3252 | }
|
3243 3253 | impl
|
3244 3254 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3245 3255 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3246 - | > for crate::output::MalformedStringOutput
|
3256 + | > for crate::output::HttpResponseCodeOutput
|
3247 3257 | {
|
3248 3258 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3249 - | match crate::protocol_serde::shape_malformed_string::ser_malformed_string_http_response(
|
3259 + | match crate::protocol_serde::shape_http_response_code::ser_http_response_code_http_response(
|
3250 3260 | self,
|
3251 3261 | ) {
|
3252 3262 | Ok(response) => response,
|
3253 3263 | Err(e) => {
|
3254 3264 | ::tracing::error!(error = %e, "failed to serialize response");
|
3255 3265 | ::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))
|
3256 3266 | }
|
3257 3267 | }
|
3258 3268 | }
|
3259 3269 | }
|
3260 3270 | impl
|
3261 3271 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3262 3272 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3263 - | > for crate::error::MalformedStringError
|
3273 + | > for crate::error::HttpResponseCodeError
|
3264 3274 | {
|
3265 3275 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3266 - | match crate::protocol_serde::shape_malformed_string::ser_malformed_string_http_error(&self)
|
3267 - | {
|
3276 + | match crate::protocol_serde::shape_http_response_code::ser_http_response_code_http_error(
|
3277 + | &self,
|
3278 + | ) {
|
3268 3279 | Ok(mut response) => {
|
3269 3280 | response.extensions_mut().insert(
|
3270 3281 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3271 3282 | self.name(),
|
3272 3283 | ),
|
3273 3284 | );
|
3274 3285 | response
|
3275 3286 | }
|
3276 3287 | Err(e) => {
|
3277 3288 | ::tracing::error!(error = %e, "failed to serialize response");
|
3278 3289 | ::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))
|
3279 3290 | }
|
3280 3291 | }
|
3281 3292 | }
|
3282 3293 | }
|
3283 3294 |
|
3284 3295 | ::pin_project_lite::pin_project! {
|
3285 3296 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3286 - | /// [`MalformedDoubleInput`](crate::input::MalformedDoubleInput) using modelled bindings.
|
3287 - | pub struct MalformedDoubleInputFuture {
|
3288 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedDoubleInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3297 + | /// [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput) using modelled bindings.
|
3298 + | pub struct ResponseCodeRequiredInputFuture {
|
3299 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ResponseCodeRequiredInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3289 3300 | }
|
3290 3301 | }
|
3291 3302 |
|
3292 - | impl std::future::Future for MalformedDoubleInputFuture {
|
3303 + | impl std::future::Future for ResponseCodeRequiredInputFuture {
|
3293 3304 | type Output = Result<
|
3294 - | crate::input::MalformedDoubleInput,
|
3305 + | crate::input::ResponseCodeRequiredInput,
|
3295 3306 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3296 3307 | >;
|
3297 3308 |
|
3298 3309 | fn poll(
|
3299 3310 | self: std::pin::Pin<&mut Self>,
|
3300 3311 | cx: &mut std::task::Context<'_>,
|
3301 3312 | ) -> std::task::Poll<Self::Output> {
|
3302 3313 | let this = self.project();
|
3303 3314 | this.inner.as_mut().poll(cx)
|
3304 3315 | }
|
3305 3316 | }
|
3306 3317 |
|
3307 3318 | impl<B>
|
3308 3319 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3309 3320 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3310 3321 | B,
|
3311 - | > for crate::input::MalformedDoubleInput
|
3322 + | > for crate::input::ResponseCodeRequiredInput
|
3312 3323 | where
|
3313 3324 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3314 3325 | B: 'static,
|
3315 3326 |
|
3316 3327 | B::Data: Send,
|
3317 3328 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3318 3329 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3319 3330 | {
|
3320 3331 | type Rejection =
|
3321 3332 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3322 - | type Future = MalformedDoubleInputFuture;
|
3333 + | type Future = ResponseCodeRequiredInputFuture;
|
3323 3334 |
|
3324 3335 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3325 3336 | let fut = async move {
|
3326 3337 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3327 3338 | request.headers(),
|
3328 3339 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3329 3340 | ) {
|
3330 3341 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3331 3342 | }
|
3332 - | crate::protocol_serde::shape_malformed_double::de_malformed_double_http_request(request)
|
3333 - | .await
|
3343 + | crate::protocol_serde::shape_response_code_required::de_response_code_required_http_request(request)
|
3344 + | .await
|
3334 3345 | };
|
3335 3346 | use ::futures_util::future::TryFutureExt;
|
3336 3347 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3337 3348 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3338 3349 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3339 3350 | });
|
3340 - | MalformedDoubleInputFuture {
|
3351 + | ResponseCodeRequiredInputFuture {
|
3341 3352 | inner: Box::pin(fut),
|
3342 3353 | }
|
3343 3354 | }
|
3344 3355 | }
|
3345 3356 | impl
|
3346 3357 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3347 3358 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3348 - | > for crate::output::MalformedDoubleOutput
|
3359 + | > for crate::output::ResponseCodeRequiredOutput
|
3349 3360 | {
|
3350 3361 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3351 - | match crate::protocol_serde::shape_malformed_double::ser_malformed_double_http_response(
|
3352 - | self,
|
3353 - | ) {
|
3354 - | Ok(response) => response,
|
3355 - | Err(e) => {
|
3356 - | ::tracing::error!(error = %e, "failed to serialize response");
|
3357 - | ::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))
|
3358 - | }
|
3359 - | }
|
3362 + | match crate::protocol_serde::shape_response_code_required::ser_response_code_required_http_response(self) {
|
3363 + | Ok(response) => response,
|
3364 + | Err(e) => {
|
3365 + | ::tracing::error!(error = %e, "failed to serialize response");
|
3366 + | ::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))
|
3367 + | }
|
3368 + | }
|
3360 3369 | }
|
3361 3370 | }
|
3362 3371 | impl
|
3363 3372 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3364 3373 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3365 - | > for crate::error::MalformedDoubleError
|
3374 + | > for crate::error::ResponseCodeRequiredError
|
3366 3375 | {
|
3367 3376 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3368 - | match crate::protocol_serde::shape_malformed_double::ser_malformed_double_http_error(&self)
|
3369 - | {
|
3377 + | match crate::protocol_serde::shape_response_code_required::ser_response_code_required_http_error(&self) {
|
3370 3378 | Ok(mut response) => {
|
3371 - | response.extensions_mut().insert(
|
3372 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3373 - | self.name(),
|
3374 - | ),
|
3375 - | );
|
3379 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
3376 3380 | response
|
3377 - | }
|
3381 + | },
|
3378 3382 | Err(e) => {
|
3379 3383 | ::tracing::error!(error = %e, "failed to serialize response");
|
3380 3384 | ::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))
|
3381 3385 | }
|
3382 3386 | }
|
3383 3387 | }
|
3384 3388 | }
|
3385 3389 |
|
3386 3390 | ::pin_project_lite::pin_project! {
|
3387 3391 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3388 - | /// [`MalformedFloatInput`](crate::input::MalformedFloatInput) using modelled bindings.
|
3389 - | pub struct MalformedFloatInputFuture {
|
3390 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedFloatInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3392 + | /// [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput) using modelled bindings.
|
3393 + | pub struct ResponseCodeHttpFallbackInputFuture {
|
3394 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ResponseCodeHttpFallbackInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3391 3395 | }
|
3392 3396 | }
|
3393 3397 |
|
3394 - | impl std::future::Future for MalformedFloatInputFuture {
|
3398 + | impl std::future::Future for ResponseCodeHttpFallbackInputFuture {
|
3395 3399 | type Output = Result<
|
3396 - | crate::input::MalformedFloatInput,
|
3400 + | crate::input::ResponseCodeHttpFallbackInput,
|
3397 3401 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3398 3402 | >;
|
3399 3403 |
|
3400 3404 | fn poll(
|
3401 3405 | self: std::pin::Pin<&mut Self>,
|
3402 3406 | cx: &mut std::task::Context<'_>,
|
3403 3407 | ) -> std::task::Poll<Self::Output> {
|
3404 3408 | let this = self.project();
|
3405 3409 | this.inner.as_mut().poll(cx)
|
3406 3410 | }
|
3407 3411 | }
|
3408 3412 |
|
3409 3413 | impl<B>
|
3410 3414 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3411 3415 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3412 3416 | B,
|
3413 - | > for crate::input::MalformedFloatInput
|
3417 + | > for crate::input::ResponseCodeHttpFallbackInput
|
3414 3418 | where
|
3415 3419 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3416 3420 | B: 'static,
|
3417 3421 |
|
3418 3422 | B::Data: Send,
|
3419 3423 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3420 3424 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3421 3425 | {
|
3422 3426 | type Rejection =
|
3423 3427 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3424 - | type Future = MalformedFloatInputFuture;
|
3428 + | type Future = ResponseCodeHttpFallbackInputFuture;
|
3425 3429 |
|
3426 3430 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3427 3431 | let fut = async move {
|
3428 3432 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3429 3433 | request.headers(),
|
3430 3434 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3431 3435 | ) {
|
3432 3436 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3433 3437 | }
|
3434 - | crate::protocol_serde::shape_malformed_float::de_malformed_float_http_request(request)
|
3435 - | .await
|
3438 + | crate::protocol_serde::shape_response_code_http_fallback::de_response_code_http_fallback_http_request(request)
|
3439 + | .await
|
3436 3440 | };
|
3437 3441 | use ::futures_util::future::TryFutureExt;
|
3438 3442 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3439 3443 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3440 3444 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3441 3445 | });
|
3442 - | MalformedFloatInputFuture {
|
3446 + | ResponseCodeHttpFallbackInputFuture {
|
3443 3447 | inner: Box::pin(fut),
|
3444 3448 | }
|
3445 3449 | }
|
3446 3450 | }
|
3447 3451 | impl
|
3448 3452 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3449 3453 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3450 - | > for crate::output::MalformedFloatOutput
|
3454 + | > for crate::output::ResponseCodeHttpFallbackOutput
|
3451 3455 | {
|
3452 3456 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3453 - | match crate::protocol_serde::shape_malformed_float::ser_malformed_float_http_response(self)
|
3454 - | {
|
3455 - | Ok(response) => response,
|
3456 - | Err(e) => {
|
3457 - | ::tracing::error!(error = %e, "failed to serialize response");
|
3458 - | ::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))
|
3459 - | }
|
3460 - | }
|
3457 + | match crate::protocol_serde::shape_response_code_http_fallback::ser_response_code_http_fallback_http_response(self) {
|
3458 + | Ok(response) => response,
|
3459 + | Err(e) => {
|
3460 + | ::tracing::error!(error = %e, "failed to serialize response");
|
3461 + | ::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))
|
3462 + | }
|
3463 + | }
|
3461 3464 | }
|
3462 3465 | }
|
3463 3466 | impl
|
3464 3467 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3465 3468 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3466 - | > for crate::error::MalformedFloatError
|
3469 + | > for crate::error::ResponseCodeHttpFallbackError
|
3467 3470 | {
|
3468 3471 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3469 - | match crate::protocol_serde::shape_malformed_float::ser_malformed_float_http_error(&self) {
|
3472 + | match crate::protocol_serde::shape_response_code_http_fallback::ser_response_code_http_fallback_http_error(&self) {
|
3470 3473 | Ok(mut response) => {
|
3471 - | response.extensions_mut().insert(
|
3472 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3473 - | self.name(),
|
3474 - | ),
|
3475 - | );
|
3474 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
3476 3475 | response
|
3477 - | }
|
3476 + | },
|
3478 3477 | Err(e) => {
|
3479 3478 | ::tracing::error!(error = %e, "failed to serialize response");
|
3480 3479 | ::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))
|
3481 3480 | }
|
3482 3481 | }
|
3483 3482 | }
|
3484 3483 | }
|
3485 3484 |
|
3486 3485 | ::pin_project_lite::pin_project! {
|
3487 3486 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3488 - | /// [`MalformedLongInput`](crate::input::MalformedLongInput) using modelled bindings.
|
3489 - | pub struct MalformedLongInputFuture {
|
3490 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedLongInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3487 + | /// [`StreamingTraitsInput`](crate::input::StreamingTraitsInput) using modelled bindings.
|
3488 + | pub struct StreamingTraitsInputFuture {
|
3489 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingTraitsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3491 3490 | }
|
3492 3491 | }
|
3493 3492 |
|
3494 - | impl std::future::Future for MalformedLongInputFuture {
|
3493 + | impl std::future::Future for StreamingTraitsInputFuture {
|
3495 3494 | type Output = Result<
|
3496 - | crate::input::MalformedLongInput,
|
3495 + | crate::input::StreamingTraitsInput,
|
3497 3496 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3498 3497 | >;
|
3499 3498 |
|
3500 3499 | fn poll(
|
3501 3500 | self: std::pin::Pin<&mut Self>,
|
3502 3501 | cx: &mut std::task::Context<'_>,
|
3503 3502 | ) -> std::task::Poll<Self::Output> {
|
3504 3503 | let this = self.project();
|
3505 3504 | this.inner.as_mut().poll(cx)
|
3506 3505 | }
|
3507 3506 | }
|
3508 3507 |
|
3509 3508 | impl<B>
|
3510 3509 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3511 3510 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3512 3511 | B,
|
3513 - | > for crate::input::MalformedLongInput
|
3512 + | > for crate::input::StreamingTraitsInput
|
3514 3513 | where
|
3515 3514 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3516 3515 | B: 'static,
|
3517 3516 |
|
3517 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
3518 3518 | B::Data: Send,
|
3519 3519 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3520 3520 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3521 3521 | {
|
3522 3522 | type Rejection =
|
3523 3523 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3524 - | type Future = MalformedLongInputFuture;
|
3524 + | type Future = StreamingTraitsInputFuture;
|
3525 3525 |
|
3526 3526 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3527 3527 | let fut = async move {
|
3528 3528 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3529 3529 | request.headers(),
|
3530 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3530 + | &crate::mimes::CONTENT_TYPE_APPLICATION_OCTET_STREAM,
|
3531 3531 | ) {
|
3532 3532 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3533 3533 | }
|
3534 - | crate::protocol_serde::shape_malformed_long::de_malformed_long_http_request(request)
|
3534 + | crate::protocol_serde::shape_streaming_traits::de_streaming_traits_http_request(request)
|
3535 3535 | .await
|
3536 3536 | };
|
3537 3537 | use ::futures_util::future::TryFutureExt;
|
3538 3538 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3539 3539 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3540 3540 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3541 3541 | });
|
3542 - | MalformedLongInputFuture {
|
3542 + | StreamingTraitsInputFuture {
|
3543 3543 | inner: Box::pin(fut),
|
3544 3544 | }
|
3545 3545 | }
|
3546 3546 | }
|
3547 3547 | impl
|
3548 3548 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3549 3549 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3550 - | > for crate::output::MalformedLongOutput
|
3550 + | > for crate::output::StreamingTraitsOutput
|
3551 3551 | {
|
3552 3552 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3553 - | match crate::protocol_serde::shape_malformed_long::ser_malformed_long_http_response(self) {
|
3553 + | match crate::protocol_serde::shape_streaming_traits::ser_streaming_traits_http_response(
|
3554 + | self,
|
3555 + | ) {
|
3554 3556 | Ok(response) => response,
|
3555 3557 | Err(e) => {
|
3556 3558 | ::tracing::error!(error = %e, "failed to serialize response");
|
3557 3559 | ::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))
|
3558 3560 | }
|
3559 3561 | }
|
3560 3562 | }
|
3561 3563 | }
|
3562 3564 | impl
|
3563 3565 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3564 3566 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3565 - | > for crate::error::MalformedLongError
|
3567 + | > for crate::error::StreamingTraitsError
|
3566 3568 | {
|
3567 3569 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3568 - | match crate::protocol_serde::shape_malformed_long::ser_malformed_long_http_error(&self) {
|
3570 + | match crate::protocol_serde::shape_streaming_traits::ser_streaming_traits_http_error(&self)
|
3571 + | {
|
3569 3572 | Ok(mut response) => {
|
3570 3573 | response.extensions_mut().insert(
|
3571 3574 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3572 3575 | self.name(),
|
3573 3576 | ),
|
3574 3577 | );
|
3575 3578 | response
|
3576 3579 | }
|
3577 3580 | Err(e) => {
|
3578 3581 | ::tracing::error!(error = %e, "failed to serialize response");
|
3579 3582 | ::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))
|
3580 3583 | }
|
3581 3584 | }
|
3582 3585 | }
|
3583 3586 | }
|
3584 3587 |
|
3585 3588 | ::pin_project_lite::pin_project! {
|
3586 3589 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3587 - | /// [`MalformedShortInput`](crate::input::MalformedShortInput) using modelled bindings.
|
3588 - | pub struct MalformedShortInputFuture {
|
3589 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedShortInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3590 + | /// [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput) using modelled bindings.
|
3591 + | pub struct StreamingTraitsRequireLengthInputFuture {
|
3592 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingTraitsRequireLengthInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3590 3593 | }
|
3591 3594 | }
|
3592 3595 |
|
3593 - | impl std::future::Future for MalformedShortInputFuture {
|
3596 + | impl std::future::Future for StreamingTraitsRequireLengthInputFuture {
|
3594 3597 | type Output = Result<
|
3595 - | crate::input::MalformedShortInput,
|
3598 + | crate::input::StreamingTraitsRequireLengthInput,
|
3596 3599 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3597 3600 | >;
|
3598 3601 |
|
3599 3602 | fn poll(
|
3600 3603 | self: std::pin::Pin<&mut Self>,
|
3601 3604 | cx: &mut std::task::Context<'_>,
|
3602 3605 | ) -> std::task::Poll<Self::Output> {
|
3603 3606 | let this = self.project();
|
3604 3607 | this.inner.as_mut().poll(cx)
|
3605 3608 | }
|
3606 3609 | }
|
3607 3610 |
|
3608 3611 | impl<B>
|
3609 3612 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3610 3613 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3611 3614 | B,
|
3612 - | > for crate::input::MalformedShortInput
|
3615 + | > for crate::input::StreamingTraitsRequireLengthInput
|
3613 3616 | where
|
3614 3617 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3615 3618 | B: 'static,
|
3616 3619 |
|
3620 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
3617 3621 | B::Data: Send,
|
3618 3622 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3619 3623 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3620 3624 | {
|
3621 3625 | type Rejection =
|
3622 3626 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3623 - | type Future = MalformedShortInputFuture;
|
3627 + | type Future = StreamingTraitsRequireLengthInputFuture;
|
3624 3628 |
|
3625 3629 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3626 3630 | let fut = async move {
|
3627 3631 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3628 3632 | request.headers(),
|
3629 3633 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3630 3634 | ) {
|
3631 3635 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3632 3636 | }
|
3633 - | crate::protocol_serde::shape_malformed_short::de_malformed_short_http_request(request)
|
3634 - | .await
|
3637 + | crate::protocol_serde::shape_streaming_traits_require_length::de_streaming_traits_require_length_http_request(request)
|
3638 + | .await
|
3635 3639 | };
|
3636 3640 | use ::futures_util::future::TryFutureExt;
|
3637 3641 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3638 3642 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3639 3643 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3640 3644 | });
|
3641 - | MalformedShortInputFuture {
|
3645 + | StreamingTraitsRequireLengthInputFuture {
|
3642 3646 | inner: Box::pin(fut),
|
3643 3647 | }
|
3644 3648 | }
|
3645 3649 | }
|
3646 3650 | impl
|
3647 3651 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3648 3652 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3649 - | > for crate::output::MalformedShortOutput
|
3653 + | > for crate::output::StreamingTraitsRequireLengthOutput
|
3650 3654 | {
|
3651 3655 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3652 - | match crate::protocol_serde::shape_malformed_short::ser_malformed_short_http_response(self)
|
3653 - | {
|
3654 - | Ok(response) => response,
|
3655 - | Err(e) => {
|
3656 - | ::tracing::error!(error = %e, "failed to serialize response");
|
3657 - | ::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))
|
3658 - | }
|
3659 - | }
|
3656 + | match crate::protocol_serde::shape_streaming_traits_require_length::ser_streaming_traits_require_length_http_response(self) {
|
3657 + | Ok(response) => response,
|
3658 + | Err(e) => {
|
3659 + | ::tracing::error!(error = %e, "failed to serialize response");
|
3660 + | ::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))
|
3661 + | }
|
3662 + | }
|
3660 3663 | }
|
3661 3664 | }
|
3662 3665 | impl
|
3663 3666 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3664 3667 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3665 - | > for crate::error::MalformedShortError
|
3668 + | > for crate::error::StreamingTraitsRequireLengthError
|
3666 3669 | {
|
3667 3670 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3668 - | match crate::protocol_serde::shape_malformed_short::ser_malformed_short_http_error(&self) {
|
3671 + | match crate::protocol_serde::shape_streaming_traits_require_length::ser_streaming_traits_require_length_http_error(&self) {
|
3669 3672 | Ok(mut response) => {
|
3670 - | response.extensions_mut().insert(
|
3671 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3672 - | self.name(),
|
3673 - | ),
|
3674 - | );
|
3673 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
3675 3674 | response
|
3676 - | }
|
3675 + | },
|
3677 3676 | Err(e) => {
|
3678 3677 | ::tracing::error!(error = %e, "failed to serialize response");
|
3679 3678 | ::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))
|
3680 3679 | }
|
3681 3680 | }
|
3682 3681 | }
|
3683 3682 | }
|
3684 3683 |
|
3685 3684 | ::pin_project_lite::pin_project! {
|
3686 3685 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3687 - | /// [`MalformedByteInput`](crate::input::MalformedByteInput) using modelled bindings.
|
3688 - | pub struct MalformedByteInputFuture {
|
3689 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedByteInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3686 + | /// [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput) using modelled bindings.
|
3687 + | pub struct StreamingTraitsWithMediaTypeInputFuture {
|
3688 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingTraitsWithMediaTypeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3690 3689 | }
|
3691 3690 | }
|
3692 3691 |
|
3693 - | impl std::future::Future for MalformedByteInputFuture {
|
3692 + | impl std::future::Future for StreamingTraitsWithMediaTypeInputFuture {
|
3694 3693 | type Output = Result<
|
3695 - | crate::input::MalformedByteInput,
|
3694 + | crate::input::StreamingTraitsWithMediaTypeInput,
|
3696 3695 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3697 3696 | >;
|
3698 3697 |
|
3699 3698 | fn poll(
|
3700 3699 | self: std::pin::Pin<&mut Self>,
|
3701 3700 | cx: &mut std::task::Context<'_>,
|
3702 3701 | ) -> std::task::Poll<Self::Output> {
|
3703 3702 | let this = self.project();
|
3704 3703 | this.inner.as_mut().poll(cx)
|
3705 3704 | }
|
3706 3705 | }
|
3707 3706 |
|
3708 3707 | impl<B>
|
3709 3708 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3710 3709 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3711 3710 | B,
|
3712 - | > for crate::input::MalformedByteInput
|
3711 + | > for crate::input::StreamingTraitsWithMediaTypeInput
|
3713 3712 | where
|
3714 3713 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3715 3714 | B: 'static,
|
3716 3715 |
|
3716 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
3717 3717 | B::Data: Send,
|
3718 3718 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3719 3719 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3720 3720 | {
|
3721 3721 | type Rejection =
|
3722 3722 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3723 - | type Future = MalformedByteInputFuture;
|
3723 + | type Future = StreamingTraitsWithMediaTypeInputFuture;
|
3724 3724 |
|
3725 3725 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3726 3726 | let fut = async move {
|
3727 3727 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3728 3728 | request.headers(),
|
3729 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3729 + | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
3730 3730 | ) {
|
3731 3731 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3732 3732 | }
|
3733 - | crate::protocol_serde::shape_malformed_byte::de_malformed_byte_http_request(request)
|
3734 - | .await
|
3733 + | crate::protocol_serde::shape_streaming_traits_with_media_type::de_streaming_traits_with_media_type_http_request(request)
|
3734 + | .await
|
3735 3735 | };
|
3736 3736 | use ::futures_util::future::TryFutureExt;
|
3737 3737 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3738 3738 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3739 3739 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3740 3740 | });
|
3741 - | MalformedByteInputFuture {
|
3741 + | StreamingTraitsWithMediaTypeInputFuture {
|
3742 3742 | inner: Box::pin(fut),
|
3743 3743 | }
|
3744 3744 | }
|
3745 3745 | }
|
3746 3746 | impl
|
3747 3747 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3748 3748 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3749 - | > for crate::output::MalformedByteOutput
|
3749 + | > for crate::output::StreamingTraitsWithMediaTypeOutput
|
3750 3750 | {
|
3751 3751 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3752 - | match crate::protocol_serde::shape_malformed_byte::ser_malformed_byte_http_response(self) {
|
3753 - | Ok(response) => response,
|
3754 - | Err(e) => {
|
3755 - | ::tracing::error!(error = %e, "failed to serialize response");
|
3756 - | ::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))
|
3757 - | }
|
3758 - | }
|
3752 + | match crate::protocol_serde::shape_streaming_traits_with_media_type::ser_streaming_traits_with_media_type_http_response(self) {
|
3753 + | Ok(response) => response,
|
3754 + | Err(e) => {
|
3755 + | ::tracing::error!(error = %e, "failed to serialize response");
|
3756 + | ::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))
|
3757 + | }
|
3758 + | }
|
3759 3759 | }
|
3760 3760 | }
|
3761 3761 | impl
|
3762 3762 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3763 3763 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3764 - | > for crate::error::MalformedByteError
|
3764 + | > for crate::error::StreamingTraitsWithMediaTypeError
|
3765 3765 | {
|
3766 3766 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3767 - | match crate::protocol_serde::shape_malformed_byte::ser_malformed_byte_http_error(&self) {
|
3767 + | match crate::protocol_serde::shape_streaming_traits_with_media_type::ser_streaming_traits_with_media_type_http_error(&self) {
|
3768 3768 | Ok(mut response) => {
|
3769 - | response.extensions_mut().insert(
|
3770 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3771 - | self.name(),
|
3772 - | ),
|
3773 - | );
|
3769 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
3774 3770 | response
|
3775 - | }
|
3771 + | },
|
3776 3772 | Err(e) => {
|
3777 3773 | ::tracing::error!(error = %e, "failed to serialize response");
|
3778 3774 | ::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))
|
3779 3775 | }
|
3780 3776 | }
|
3781 3777 | }
|
3782 3778 | }
|
3783 3779 |
|
3784 3780 | ::pin_project_lite::pin_project! {
|
3785 3781 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3786 - | /// [`MalformedBlobInput`](crate::input::MalformedBlobInput) using modelled bindings.
|
3787 - | pub struct MalformedBlobInputFuture {
|
3788 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedBlobInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3782 + | /// [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput) using modelled bindings.
|
3783 + | pub struct GreetingWithErrorsInputFuture {
|
3784 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GreetingWithErrorsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3789 3785 | }
|
3790 3786 | }
|
3791 3787 |
|
3792 - | impl std::future::Future for MalformedBlobInputFuture {
|
3788 + | impl std::future::Future for GreetingWithErrorsInputFuture {
|
3793 3789 | type Output = Result<
|
3794 - | crate::input::MalformedBlobInput,
|
3790 + | crate::input::GreetingWithErrorsInput,
|
3795 3791 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3796 3792 | >;
|
3797 3793 |
|
3798 3794 | fn poll(
|
3799 3795 | self: std::pin::Pin<&mut Self>,
|
3800 3796 | cx: &mut std::task::Context<'_>,
|
3801 3797 | ) -> std::task::Poll<Self::Output> {
|
3802 3798 | let this = self.project();
|
3803 3799 | this.inner.as_mut().poll(cx)
|
3804 3800 | }
|
3805 3801 | }
|
3806 3802 |
|
3807 3803 | impl<B>
|
3808 3804 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3809 3805 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3810 3806 | B,
|
3811 - | > for crate::input::MalformedBlobInput
|
3807 + | > for crate::input::GreetingWithErrorsInput
|
3812 3808 | where
|
3813 3809 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3814 3810 | B: 'static,
|
3815 3811 |
|
3816 3812 | B::Data: Send,
|
3817 3813 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3818 3814 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3819 3815 | {
|
3820 3816 | type Rejection =
|
3821 3817 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3822 - | type Future = MalformedBlobInputFuture;
|
3818 + | type Future = GreetingWithErrorsInputFuture;
|
3823 3819 |
|
3824 3820 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3825 3821 | let fut = async move {
|
3826 3822 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3827 3823 | request.headers(),
|
3828 3824 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3829 3825 | ) {
|
3830 3826 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3831 3827 | }
|
3832 - | crate::protocol_serde::shape_malformed_blob::de_malformed_blob_http_request(request)
|
3833 - | .await
|
3828 + | crate::protocol_serde::shape_greeting_with_errors::de_greeting_with_errors_http_request(
|
3829 + | request,
|
3830 + | )
|
3831 + | .await
|
3834 3832 | };
|
3835 3833 | use ::futures_util::future::TryFutureExt;
|
3836 3834 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3837 3835 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3838 3836 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3839 3837 | });
|
3840 - | MalformedBlobInputFuture {
|
3838 + | GreetingWithErrorsInputFuture {
|
3841 3839 | inner: Box::pin(fut),
|
3842 3840 | }
|
3843 3841 | }
|
3844 3842 | }
|
3845 3843 | impl
|
3846 3844 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3847 3845 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3848 - | > for crate::output::MalformedBlobOutput
|
3846 + | > for crate::output::GreetingWithErrorsOutput
|
3849 3847 | {
|
3850 3848 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3851 - | match crate::protocol_serde::shape_malformed_blob::ser_malformed_blob_http_response(self) {
|
3852 - | Ok(response) => response,
|
3853 - | Err(e) => {
|
3854 - | ::tracing::error!(error = %e, "failed to serialize response");
|
3855 - | ::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))
|
3856 - | }
|
3857 - | }
|
3849 + | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_response(self) {
|
3850 + | Ok(response) => response,
|
3851 + | Err(e) => {
|
3852 + | ::tracing::error!(error = %e, "failed to serialize response");
|
3853 + | ::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))
|
3854 + | }
|
3855 + | }
|
3858 3856 | }
|
3859 3857 | }
|
3860 3858 | impl
|
3861 3859 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3862 3860 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3863 - | > for crate::error::MalformedBlobError
|
3861 + | > for crate::error::GreetingWithErrorsError
|
3864 3862 | {
|
3865 3863 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3866 - | match crate::protocol_serde::shape_malformed_blob::ser_malformed_blob_http_error(&self) {
|
3864 + | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_error(
|
3865 + | &self,
|
3866 + | ) {
|
3867 3867 | Ok(mut response) => {
|
3868 3868 | response.extensions_mut().insert(
|
3869 3869 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3870 3870 | self.name(),
|
3871 3871 | ),
|
3872 3872 | );
|
3873 3873 | response
|
3874 3874 | }
|
3875 3875 | Err(e) => {
|
3876 3876 | ::tracing::error!(error = %e, "failed to serialize response");
|
3877 3877 | ::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))
|
3878 3878 | }
|
3879 3879 | }
|
3880 3880 | }
|
3881 3881 | }
|
3882 3882 |
|
3883 3883 | ::pin_project_lite::pin_project! {
|
3884 3884 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3885 - | /// [`MalformedMapInput`](crate::input::MalformedMapInput) using modelled bindings.
|
3886 - | pub struct MalformedMapInputFuture {
|
3887 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedMapInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3885 + | /// [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput) using modelled bindings.
|
3886 + | pub struct SimpleScalarPropertiesInputFuture {
|
3887 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::SimpleScalarPropertiesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3888 3888 | }
|
3889 3889 | }
|
3890 3890 |
|
3891 - | impl std::future::Future for MalformedMapInputFuture {
|
3891 + | impl std::future::Future for SimpleScalarPropertiesInputFuture {
|
3892 3892 | type Output = Result<
|
3893 - | crate::input::MalformedMapInput,
|
3893 + | crate::input::SimpleScalarPropertiesInput,
|
3894 3894 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3895 3895 | >;
|
3896 3896 |
|
3897 3897 | fn poll(
|
3898 3898 | self: std::pin::Pin<&mut Self>,
|
3899 3899 | cx: &mut std::task::Context<'_>,
|
3900 3900 | ) -> std::task::Poll<Self::Output> {
|
3901 3901 | let this = self.project();
|
3902 3902 | this.inner.as_mut().poll(cx)
|
3903 3903 | }
|
3904 3904 | }
|
3905 3905 |
|
3906 3906 | impl<B>
|
3907 3907 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
3908 3908 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3909 3909 | B,
|
3910 - | > for crate::input::MalformedMapInput
|
3910 + | > for crate::input::SimpleScalarPropertiesInput
|
3911 3911 | where
|
3912 3912 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
3913 3913 | B: 'static,
|
3914 3914 |
|
3915 3915 | B::Data: Send,
|
3916 3916 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
3917 3917 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
3918 3918 | {
|
3919 3919 | type Rejection =
|
3920 3920 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
3921 - | type Future = MalformedMapInputFuture;
|
3921 + | type Future = SimpleScalarPropertiesInputFuture;
|
3922 3922 |
|
3923 3923 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
3924 3924 | let fut = async move {
|
3925 3925 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
3926 3926 | request.headers(),
|
3927 3927 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
3928 3928 | ) {
|
3929 3929 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
3930 3930 | }
|
3931 - | crate::protocol_serde::shape_malformed_map::de_malformed_map_http_request(request).await
|
3931 + | crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_request(request)
|
3932 + | .await
|
3932 3933 | };
|
3933 3934 | use ::futures_util::future::TryFutureExt;
|
3934 3935 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
3935 3936 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
3936 3937 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
3937 3938 | });
|
3938 - | MalformedMapInputFuture {
|
3939 + | SimpleScalarPropertiesInputFuture {
|
3939 3940 | inner: Box::pin(fut),
|
3940 3941 | }
|
3941 3942 | }
|
3942 3943 | }
|
3943 3944 | impl
|
3944 3945 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3945 3946 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3946 - | > for crate::output::MalformedMapOutput
|
3947 + | > for crate::output::SimpleScalarPropertiesOutput
|
3947 3948 | {
|
3948 3949 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3949 - | match crate::protocol_serde::shape_malformed_map::ser_malformed_map_http_response(self) {
|
3950 - | Ok(response) => response,
|
3951 - | Err(e) => {
|
3952 - | ::tracing::error!(error = %e, "failed to serialize response");
|
3953 - | ::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))
|
3954 - | }
|
3955 - | }
|
3950 + | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_response(self) {
|
3951 + | Ok(response) => response,
|
3952 + | Err(e) => {
|
3953 + | ::tracing::error!(error = %e, "failed to serialize response");
|
3954 + | ::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))
|
3955 + | }
|
3956 + | }
|
3956 3957 | }
|
3957 3958 | }
|
3958 3959 | impl
|
3959 3960 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
3960 3961 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
3961 - | > for crate::error::MalformedMapError
|
3962 + | > for crate::error::SimpleScalarPropertiesError
|
3962 3963 | {
|
3963 3964 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
3964 - | match crate::protocol_serde::shape_malformed_map::ser_malformed_map_http_error(&self) {
|
3965 + | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_error(&self) {
|
3965 3966 | Ok(mut response) => {
|
3966 - | response.extensions_mut().insert(
|
3967 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
3968 - | self.name(),
|
3969 - | ),
|
3970 - | );
|
3967 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
3971 3968 | response
|
3972 - | }
|
3969 + | },
|
3973 3970 | Err(e) => {
|
3974 3971 | ::tracing::error!(error = %e, "failed to serialize response");
|
3975 3972 | ::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))
|
3976 3973 | }
|
3977 3974 | }
|
3978 3975 | }
|
3979 3976 | }
|
3980 3977 |
|
3981 3978 | ::pin_project_lite::pin_project! {
|
3982 3979 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
3983 - | /// [`MalformedListInput`](crate::input::MalformedListInput) using modelled bindings.
|
3984 - | pub struct MalformedListInputFuture {
|
3985 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedListInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3980 + | /// [`JsonTimestampsInput`](crate::input::JsonTimestampsInput) using modelled bindings.
|
3981 + | pub struct JsonTimestampsInputFuture {
|
3982 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonTimestampsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
3986 3983 | }
|
3987 3984 | }
|
3988 3985 |
|
3989 - | impl std::future::Future for MalformedListInputFuture {
|
3986 + | impl std::future::Future for JsonTimestampsInputFuture {
|
3990 3987 | type Output = Result<
|
3991 - | crate::input::MalformedListInput,
|
3988 + | crate::input::JsonTimestampsInput,
|
3992 3989 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
3993 3990 | >;
|
3994 3991 |
|
3995 3992 | fn poll(
|
3996 3993 | self: std::pin::Pin<&mut Self>,
|
3997 3994 | cx: &mut std::task::Context<'_>,
|
3998 3995 | ) -> std::task::Poll<Self::Output> {
|
3999 3996 | let this = self.project();
|
4000 3997 | this.inner.as_mut().poll(cx)
|
4001 3998 | }
|
4002 3999 | }
|
4003 4000 |
|
4004 4001 | impl<B>
|
4005 4002 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4006 4003 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4007 4004 | B,
|
4008 - | > for crate::input::MalformedListInput
|
4005 + | > for crate::input::JsonTimestampsInput
|
4009 4006 | where
|
4010 4007 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4011 4008 | B: 'static,
|
4012 4009 |
|
4013 4010 | B::Data: Send,
|
4014 4011 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4015 4012 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4016 4013 | {
|
4017 4014 | type Rejection =
|
4018 4015 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4019 - | type Future = MalformedListInputFuture;
|
4016 + | type Future = JsonTimestampsInputFuture;
|
4020 4017 |
|
4021 4018 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4022 4019 | let fut = async move {
|
4023 4020 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4024 4021 | request.headers(),
|
4025 4022 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4026 4023 | ) {
|
4027 4024 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4028 4025 | }
|
4029 - | crate::protocol_serde::shape_malformed_list::de_malformed_list_http_request(request)
|
4026 + | crate::protocol_serde::shape_json_timestamps::de_json_timestamps_http_request(request)
|
4030 4027 | .await
|
4031 4028 | };
|
4032 4029 | use ::futures_util::future::TryFutureExt;
|
4033 4030 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4034 4031 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4035 4032 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4036 4033 | });
|
4037 - | MalformedListInputFuture {
|
4034 + | JsonTimestampsInputFuture {
|
4038 4035 | inner: Box::pin(fut),
|
4039 4036 | }
|
4040 4037 | }
|
4041 4038 | }
|
4042 4039 | impl
|
4043 4040 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4044 4041 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4045 - | > for crate::output::MalformedListOutput
|
4042 + | > for crate::output::JsonTimestampsOutput
|
4046 4043 | {
|
4047 4044 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4048 - | match crate::protocol_serde::shape_malformed_list::ser_malformed_list_http_response(self) {
|
4045 + | match crate::protocol_serde::shape_json_timestamps::ser_json_timestamps_http_response(self)
|
4046 + | {
|
4049 4047 | Ok(response) => response,
|
4050 4048 | Err(e) => {
|
4051 4049 | ::tracing::error!(error = %e, "failed to serialize response");
|
4052 4050 | ::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))
|
4053 4051 | }
|
4054 4052 | }
|
4055 4053 | }
|
4056 4054 | }
|
4057 4055 | impl
|
4058 4056 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4059 4057 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4060 - | > for crate::error::MalformedListError
|
4058 + | > for crate::error::JsonTimestampsError
|
4061 4059 | {
|
4062 4060 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4063 - | match crate::protocol_serde::shape_malformed_list::ser_malformed_list_http_error(&self) {
|
4061 + | match crate::protocol_serde::shape_json_timestamps::ser_json_timestamps_http_error(&self) {
|
4064 4062 | Ok(mut response) => {
|
4065 4063 | response.extensions_mut().insert(
|
4066 4064 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4067 4065 | self.name(),
|
4068 4066 | ),
|
4069 4067 | );
|
4070 4068 | response
|
4071 4069 | }
|
4072 4070 | Err(e) => {
|
4073 4071 | ::tracing::error!(error = %e, "failed to serialize response");
|
4074 4072 | ::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))
|
4075 4073 | }
|
4076 4074 | }
|
4077 4075 | }
|
4078 4076 | }
|
4079 4077 |
|
4080 4078 | ::pin_project_lite::pin_project! {
|
4081 4079 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4082 - | /// [`MalformedBooleanInput`](crate::input::MalformedBooleanInput) using modelled bindings.
|
4083 - | pub struct MalformedBooleanInputFuture {
|
4084 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedBooleanInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4080 + | /// [`JsonEnumsInput`](crate::input::JsonEnumsInput) using modelled bindings.
|
4081 + | pub struct JsonEnumsInputFuture {
|
4082 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonEnumsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4085 4083 | }
|
4086 4084 | }
|
4087 4085 |
|
4088 - | impl std::future::Future for MalformedBooleanInputFuture {
|
4086 + | impl std::future::Future for JsonEnumsInputFuture {
|
4089 4087 | type Output = Result<
|
4090 - | crate::input::MalformedBooleanInput,
|
4088 + | crate::input::JsonEnumsInput,
|
4091 4089 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4092 4090 | >;
|
4093 4091 |
|
4094 4092 | fn poll(
|
4095 4093 | self: std::pin::Pin<&mut Self>,
|
4096 4094 | cx: &mut std::task::Context<'_>,
|
4097 4095 | ) -> std::task::Poll<Self::Output> {
|
4098 4096 | let this = self.project();
|
4099 4097 | this.inner.as_mut().poll(cx)
|
4100 4098 | }
|
4101 4099 | }
|
4102 4100 |
|
4103 4101 | impl<B>
|
4104 4102 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4105 4103 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4106 4104 | B,
|
4107 - | > for crate::input::MalformedBooleanInput
|
4105 + | > for crate::input::JsonEnumsInput
|
4108 4106 | where
|
4109 4107 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4110 4108 | B: 'static,
|
4111 4109 |
|
4112 4110 | B::Data: Send,
|
4113 4111 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4114 4112 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4115 4113 | {
|
4116 4114 | type Rejection =
|
4117 4115 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4118 - | type Future = MalformedBooleanInputFuture;
|
4116 + | type Future = JsonEnumsInputFuture;
|
4119 4117 |
|
4120 4118 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4121 4119 | let fut = async move {
|
4122 4120 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4123 4121 | request.headers(),
|
4124 4122 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4125 4123 | ) {
|
4126 4124 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4127 4125 | }
|
4128 - | crate::protocol_serde::shape_malformed_boolean::de_malformed_boolean_http_request(
|
4129 - | request,
|
4130 - | )
|
4131 - | .await
|
4126 + | crate::protocol_serde::shape_json_enums::de_json_enums_http_request(request).await
|
4132 4127 | };
|
4133 4128 | use ::futures_util::future::TryFutureExt;
|
4134 4129 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4135 4130 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4136 4131 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4137 4132 | });
|
4138 - | MalformedBooleanInputFuture {
|
4133 + | JsonEnumsInputFuture {
|
4139 4134 | inner: Box::pin(fut),
|
4140 4135 | }
|
4141 4136 | }
|
4142 4137 | }
|
4143 4138 | impl
|
4144 4139 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4145 4140 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4146 - | > for crate::output::MalformedBooleanOutput
|
4141 + | > for crate::output::JsonEnumsOutput
|
4147 4142 | {
|
4148 4143 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4149 - | match crate::protocol_serde::shape_malformed_boolean::ser_malformed_boolean_http_response(
|
4150 - | self,
|
4151 - | ) {
|
4144 + | match crate::protocol_serde::shape_json_enums::ser_json_enums_http_response(self) {
|
4152 4145 | Ok(response) => response,
|
4153 4146 | Err(e) => {
|
4154 4147 | ::tracing::error!(error = %e, "failed to serialize response");
|
4155 4148 | ::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))
|
4156 4149 | }
|
4157 4150 | }
|
4158 4151 | }
|
4159 4152 | }
|
4160 4153 | impl
|
4161 4154 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4162 4155 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4163 - | > for crate::error::MalformedBooleanError
|
4156 + | > for crate::error::JsonEnumsError
|
4164 4157 | {
|
4165 4158 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4166 - | match crate::protocol_serde::shape_malformed_boolean::ser_malformed_boolean_http_error(
|
4167 - | &self,
|
4168 - | ) {
|
4159 + | match crate::protocol_serde::shape_json_enums::ser_json_enums_http_error(&self) {
|
4169 4160 | Ok(mut response) => {
|
4170 4161 | response.extensions_mut().insert(
|
4171 4162 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4172 4163 | self.name(),
|
4173 4164 | ),
|
4174 4165 | );
|
4175 4166 | response
|
4176 4167 | }
|
4177 4168 | Err(e) => {
|
4178 4169 | ::tracing::error!(error = %e, "failed to serialize response");
|
4179 4170 | ::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))
|
4180 4171 | }
|
4181 4172 | }
|
4182 4173 | }
|
4183 4174 | }
|
4184 4175 |
|
4185 4176 | ::pin_project_lite::pin_project! {
|
4186 4177 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4187 - | /// [`MalformedUnionInput`](crate::input::MalformedUnionInput) using modelled bindings.
|
4188 - | pub struct MalformedUnionInputFuture {
|
4189 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedUnionInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4178 + | /// [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput) using modelled bindings.
|
4179 + | pub struct JsonIntEnumsInputFuture {
|
4180 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonIntEnumsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4190 4181 | }
|
4191 4182 | }
|
4192 4183 |
|
4193 - | impl std::future::Future for MalformedUnionInputFuture {
|
4184 + | impl std::future::Future for JsonIntEnumsInputFuture {
|
4194 4185 | type Output = Result<
|
4195 - | crate::input::MalformedUnionInput,
|
4186 + | crate::input::JsonIntEnumsInput,
|
4196 4187 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4197 4188 | >;
|
4198 4189 |
|
4199 4190 | fn poll(
|
4200 4191 | self: std::pin::Pin<&mut Self>,
|
4201 4192 | cx: &mut std::task::Context<'_>,
|
4202 4193 | ) -> std::task::Poll<Self::Output> {
|
4203 4194 | let this = self.project();
|
4204 4195 | this.inner.as_mut().poll(cx)
|
4205 4196 | }
|
4206 4197 | }
|
4207 4198 |
|
4208 4199 | impl<B>
|
4209 4200 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4210 4201 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4211 4202 | B,
|
4212 - | > for crate::input::MalformedUnionInput
|
4203 + | > for crate::input::JsonIntEnumsInput
|
4213 4204 | where
|
4214 4205 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4215 4206 | B: 'static,
|
4216 4207 |
|
4217 4208 | B::Data: Send,
|
4218 4209 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4219 4210 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4220 4211 | {
|
4221 4212 | type Rejection =
|
4222 4213 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4223 - | type Future = MalformedUnionInputFuture;
|
4214 + | type Future = JsonIntEnumsInputFuture;
|
4224 4215 |
|
4225 4216 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4226 4217 | let fut = async move {
|
4227 4218 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4228 4219 | request.headers(),
|
4229 4220 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4230 4221 | ) {
|
4231 4222 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4232 4223 | }
|
4233 - | crate::protocol_serde::shape_malformed_union::de_malformed_union_http_request(request)
|
4224 + | crate::protocol_serde::shape_json_int_enums::de_json_int_enums_http_request(request)
|
4234 4225 | .await
|
4235 4226 | };
|
4236 4227 | use ::futures_util::future::TryFutureExt;
|
4237 4228 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4238 4229 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4239 4230 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4240 4231 | });
|
4241 - | MalformedUnionInputFuture {
|
4232 + | JsonIntEnumsInputFuture {
|
4242 4233 | inner: Box::pin(fut),
|
4243 4234 | }
|
4244 4235 | }
|
4245 4236 | }
|
4246 4237 | impl
|
4247 4238 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4248 4239 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4249 - | > for crate::output::MalformedUnionOutput
|
4240 + | > for crate::output::JsonIntEnumsOutput
|
4250 4241 | {
|
4251 4242 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4252 - | match crate::protocol_serde::shape_malformed_union::ser_malformed_union_http_response(self)
|
4253 - | {
|
4243 + | match crate::protocol_serde::shape_json_int_enums::ser_json_int_enums_http_response(self) {
|
4254 4244 | Ok(response) => response,
|
4255 4245 | Err(e) => {
|
4256 4246 | ::tracing::error!(error = %e, "failed to serialize response");
|
4257 4247 | ::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))
|
4258 4248 | }
|
4259 4249 | }
|
4260 4250 | }
|
4261 4251 | }
|
4262 4252 | impl
|
4263 4253 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4264 4254 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4265 - | > for crate::error::MalformedUnionError
|
4255 + | > for crate::error::JsonIntEnumsError
|
4266 4256 | {
|
4267 4257 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4268 - | match crate::protocol_serde::shape_malformed_union::ser_malformed_union_http_error(&self) {
|
4258 + | match crate::protocol_serde::shape_json_int_enums::ser_json_int_enums_http_error(&self) {
|
4269 4259 | Ok(mut response) => {
|
4270 4260 | response.extensions_mut().insert(
|
4271 4261 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4272 4262 | self.name(),
|
4273 4263 | ),
|
4274 4264 | );
|
4275 4265 | response
|
4276 4266 | }
|
4277 4267 | Err(e) => {
|
4278 4268 | ::tracing::error!(error = %e, "failed to serialize response");
|
4279 4269 | ::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))
|
4280 4270 | }
|
4281 4271 | }
|
4282 4272 | }
|
4283 4273 | }
|
4284 4274 |
|
4285 4275 | ::pin_project_lite::pin_project! {
|
4286 4276 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4287 - | /// [`MalformedIntegerInput`](crate::input::MalformedIntegerInput) using modelled bindings.
|
4288 - | pub struct MalformedIntegerInputFuture {
|
4289 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedIntegerInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4277 + | /// [`RecursiveShapesInput`](crate::input::RecursiveShapesInput) using modelled bindings.
|
4278 + | pub struct RecursiveShapesInputFuture {
|
4279 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::RecursiveShapesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4290 4280 | }
|
4291 4281 | }
|
4292 4282 |
|
4293 - | impl std::future::Future for MalformedIntegerInputFuture {
|
4283 + | impl std::future::Future for RecursiveShapesInputFuture {
|
4294 4284 | type Output = Result<
|
4295 - | crate::input::MalformedIntegerInput,
|
4285 + | crate::input::RecursiveShapesInput,
|
4296 4286 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4297 4287 | >;
|
4298 4288 |
|
4299 4289 | fn poll(
|
4300 4290 | self: std::pin::Pin<&mut Self>,
|
4301 4291 | cx: &mut std::task::Context<'_>,
|
4302 4292 | ) -> std::task::Poll<Self::Output> {
|
4303 4293 | let this = self.project();
|
4304 4294 | this.inner.as_mut().poll(cx)
|
4305 4295 | }
|
4306 4296 | }
|
4307 4297 |
|
4308 4298 | impl<B>
|
4309 4299 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4310 4300 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4311 4301 | B,
|
4312 - | > for crate::input::MalformedIntegerInput
|
4302 + | > for crate::input::RecursiveShapesInput
|
4313 4303 | where
|
4314 4304 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4315 4305 | B: 'static,
|
4316 4306 |
|
4317 4307 | B::Data: Send,
|
4318 4308 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4319 4309 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4320 4310 | {
|
4321 4311 | type Rejection =
|
4322 4312 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4323 - | type Future = MalformedIntegerInputFuture;
|
4313 + | type Future = RecursiveShapesInputFuture;
|
4324 4314 |
|
4325 4315 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4326 4316 | let fut = async move {
|
4327 4317 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4328 4318 | request.headers(),
|
4329 4319 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4330 4320 | ) {
|
4331 4321 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4332 4322 | }
|
4333 - | crate::protocol_serde::shape_malformed_integer::de_malformed_integer_http_request(
|
4334 - | request,
|
4335 - | )
|
4336 - | .await
|
4323 + | crate::protocol_serde::shape_recursive_shapes::de_recursive_shapes_http_request(request)
|
4324 + | .await
|
4337 4325 | };
|
4338 4326 | use ::futures_util::future::TryFutureExt;
|
4339 4327 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4340 4328 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4341 4329 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4342 4330 | });
|
4343 - | MalformedIntegerInputFuture {
|
4331 + | RecursiveShapesInputFuture {
|
4344 4332 | inner: Box::pin(fut),
|
4345 4333 | }
|
4346 4334 | }
|
4347 4335 | }
|
4348 4336 | impl
|
4349 4337 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4350 4338 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4351 - | > for crate::output::MalformedIntegerOutput
|
4339 + | > for crate::output::RecursiveShapesOutput
|
4352 4340 | {
|
4353 4341 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4354 - | match crate::protocol_serde::shape_malformed_integer::ser_malformed_integer_http_response(
|
4342 + | match crate::protocol_serde::shape_recursive_shapes::ser_recursive_shapes_http_response(
|
4355 4343 | self,
|
4356 4344 | ) {
|
4357 4345 | Ok(response) => response,
|
4358 4346 | Err(e) => {
|
4359 4347 | ::tracing::error!(error = %e, "failed to serialize response");
|
4360 4348 | ::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))
|
4361 4349 | }
|
4362 4350 | }
|
4363 4351 | }
|
4364 4352 | }
|
4365 4353 | impl
|
4366 4354 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4367 4355 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4368 - | > for crate::error::MalformedIntegerError
|
4356 + | > for crate::error::RecursiveShapesError
|
4369 4357 | {
|
4370 4358 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4371 - | match crate::protocol_serde::shape_malformed_integer::ser_malformed_integer_http_error(
|
4372 - | &self,
|
4373 - | ) {
|
4359 + | match crate::protocol_serde::shape_recursive_shapes::ser_recursive_shapes_http_error(&self)
|
4360 + | {
|
4374 4361 | Ok(mut response) => {
|
4375 4362 | response.extensions_mut().insert(
|
4376 4363 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4377 4364 | self.name(),
|
4378 4365 | ),
|
4379 4366 | );
|
4380 4367 | response
|
4381 4368 | }
|
4382 4369 | Err(e) => {
|
4383 4370 | ::tracing::error!(error = %e, "failed to serialize response");
|
4384 4371 | ::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))
|
4385 4372 | }
|
4386 4373 | }
|
4387 4374 | }
|
4388 4375 | }
|
4389 4376 |
|
4390 4377 | ::pin_project_lite::pin_project! {
|
4391 4378 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4392 - | /// [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput) using modelled bindings.
|
4393 - | pub struct MalformedRequestBodyInputFuture {
|
4394 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedRequestBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4379 + | /// [`JsonListsInput`](crate::input::JsonListsInput) using modelled bindings.
|
4380 + | pub struct JsonListsInputFuture {
|
4381 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonListsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4395 4382 | }
|
4396 4383 | }
|
4397 4384 |
|
4398 - | impl std::future::Future for MalformedRequestBodyInputFuture {
|
4385 + | impl std::future::Future for JsonListsInputFuture {
|
4399 4386 | type Output = Result<
|
4400 - | crate::input::MalformedRequestBodyInput,
|
4387 + | crate::input::JsonListsInput,
|
4401 4388 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4402 4389 | >;
|
4403 4390 |
|
4404 4391 | fn poll(
|
4405 4392 | self: std::pin::Pin<&mut Self>,
|
4406 4393 | cx: &mut std::task::Context<'_>,
|
4407 4394 | ) -> std::task::Poll<Self::Output> {
|
4408 4395 | let this = self.project();
|
4409 4396 | this.inner.as_mut().poll(cx)
|
4410 4397 | }
|
4411 4398 | }
|
4412 4399 |
|
4413 4400 | impl<B>
|
4414 4401 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4415 4402 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4416 4403 | B,
|
4417 - | > for crate::input::MalformedRequestBodyInput
|
4404 + | > for crate::input::JsonListsInput
|
4418 4405 | where
|
4419 4406 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4420 4407 | B: 'static,
|
4421 4408 |
|
4422 4409 | B::Data: Send,
|
4423 4410 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4424 4411 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4425 4412 | {
|
4426 4413 | type Rejection =
|
4427 4414 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4428 - | type Future = MalformedRequestBodyInputFuture;
|
4415 + | type Future = JsonListsInputFuture;
|
4429 4416 |
|
4430 4417 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4431 4418 | let fut = async move {
|
4432 4419 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4433 4420 | request.headers(),
|
4434 4421 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4435 4422 | ) {
|
4436 4423 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4437 4424 | }
|
4438 - | crate::protocol_serde::shape_malformed_request_body::de_malformed_request_body_http_request(request)
|
4439 - | .await
|
4425 + | crate::protocol_serde::shape_json_lists::de_json_lists_http_request(request).await
|
4440 4426 | };
|
4441 4427 | use ::futures_util::future::TryFutureExt;
|
4442 4428 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4443 4429 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4444 4430 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4445 4431 | });
|
4446 - | MalformedRequestBodyInputFuture {
|
4432 + | JsonListsInputFuture {
|
4447 4433 | inner: Box::pin(fut),
|
4448 4434 | }
|
4449 4435 | }
|
4450 4436 | }
|
4451 4437 | impl
|
4452 4438 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4453 4439 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4454 - | > for crate::output::MalformedRequestBodyOutput
|
4440 + | > for crate::output::JsonListsOutput
|
4455 4441 | {
|
4456 4442 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4457 - | match crate::protocol_serde::shape_malformed_request_body::ser_malformed_request_body_http_response(self) {
|
4458 - | Ok(response) => response,
|
4459 - | Err(e) => {
|
4460 - | ::tracing::error!(error = %e, "failed to serialize response");
|
4461 - | ::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))
|
4462 - | }
|
4463 - | }
|
4443 + | match crate::protocol_serde::shape_json_lists::ser_json_lists_http_response(self) {
|
4444 + | Ok(response) => response,
|
4445 + | Err(e) => {
|
4446 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4447 + | ::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))
|
4448 + | }
|
4449 + | }
|
4464 4450 | }
|
4465 4451 | }
|
4466 4452 | impl
|
4467 4453 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4468 4454 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4469 - | > for crate::error::MalformedRequestBodyError
|
4455 + | > for crate::error::JsonListsError
|
4470 4456 | {
|
4471 4457 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4472 - | match crate::protocol_serde::shape_malformed_request_body::ser_malformed_request_body_http_error(&self) {
|
4458 + | match crate::protocol_serde::shape_json_lists::ser_json_lists_http_error(&self) {
|
4473 4459 | Ok(mut response) => {
|
4474 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
4460 + | response.extensions_mut().insert(
|
4461 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4462 + | self.name(),
|
4463 + | ),
|
4464 + | );
|
4475 4465 | response
|
4476 - | },
|
4466 + | }
|
4477 4467 | Err(e) => {
|
4478 4468 | ::tracing::error!(error = %e, "failed to serialize response");
|
4479 4469 | ::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))
|
4480 4470 | }
|
4481 4471 | }
|
4482 4472 | }
|
4483 4473 | }
|
4484 4474 |
|
4485 4475 | ::pin_project_lite::pin_project! {
|
4486 4476 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4487 - | /// [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput) using modelled bindings.
|
4488 - | pub struct HttpChecksumRequiredInputFuture {
|
4489 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpChecksumRequiredInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4477 + | /// [`SparseJsonListsInput`](crate::input::SparseJsonListsInput) using modelled bindings.
|
4478 + | pub struct SparseJsonListsInputFuture {
|
4479 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::SparseJsonListsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4490 4480 | }
|
4491 4481 | }
|
4492 4482 |
|
4493 - | impl std::future::Future for HttpChecksumRequiredInputFuture {
|
4483 + | impl std::future::Future for SparseJsonListsInputFuture {
|
4494 4484 | type Output = Result<
|
4495 - | crate::input::HttpChecksumRequiredInput,
|
4485 + | crate::input::SparseJsonListsInput,
|
4496 4486 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4497 4487 | >;
|
4498 4488 |
|
4499 4489 | fn poll(
|
4500 4490 | self: std::pin::Pin<&mut Self>,
|
4501 4491 | cx: &mut std::task::Context<'_>,
|
4502 4492 | ) -> std::task::Poll<Self::Output> {
|
4503 4493 | let this = self.project();
|
4504 4494 | this.inner.as_mut().poll(cx)
|
4505 4495 | }
|
4506 4496 | }
|
4507 4497 |
|
4508 4498 | impl<B>
|
4509 4499 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4510 4500 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4511 4501 | B,
|
4512 - | > for crate::input::HttpChecksumRequiredInput
|
4502 + | > for crate::input::SparseJsonListsInput
|
4513 4503 | where
|
4514 4504 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4515 4505 | B: 'static,
|
4516 4506 |
|
4517 4507 | B::Data: Send,
|
4518 4508 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4519 4509 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4520 4510 | {
|
4521 4511 | type Rejection =
|
4522 4512 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4523 - | type Future = HttpChecksumRequiredInputFuture;
|
4513 + | type Future = SparseJsonListsInputFuture;
|
4524 4514 |
|
4525 4515 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4526 4516 | let fut = async move {
|
4527 4517 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4528 4518 | request.headers(),
|
4529 4519 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4530 4520 | ) {
|
4531 4521 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4532 4522 | }
|
4533 - | crate::protocol_serde::shape_http_checksum_required::de_http_checksum_required_http_request(request)
|
4534 - | .await
|
4523 + | crate::protocol_serde::shape_sparse_json_lists::de_sparse_json_lists_http_request(
|
4524 + | request,
|
4525 + | )
|
4526 + | .await
|
4535 4527 | };
|
4536 4528 | use ::futures_util::future::TryFutureExt;
|
4537 4529 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4538 4530 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4539 4531 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4540 4532 | });
|
4541 - | HttpChecksumRequiredInputFuture {
|
4533 + | SparseJsonListsInputFuture {
|
4542 4534 | inner: Box::pin(fut),
|
4543 4535 | }
|
4544 4536 | }
|
4545 4537 | }
|
4546 4538 | impl
|
4547 4539 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4548 4540 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4549 - | > for crate::output::HttpChecksumRequiredOutput
|
4541 + | > for crate::output::SparseJsonListsOutput
|
4550 4542 | {
|
4551 4543 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4552 - | match crate::protocol_serde::shape_http_checksum_required::ser_http_checksum_required_http_response(self) {
|
4553 - | Ok(response) => response,
|
4554 - | Err(e) => {
|
4555 - | ::tracing::error!(error = %e, "failed to serialize response");
|
4556 - | ::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))
|
4557 - | }
|
4558 - | }
|
4544 + | match crate::protocol_serde::shape_sparse_json_lists::ser_sparse_json_lists_http_response(
|
4545 + | self,
|
4546 + | ) {
|
4547 + | Ok(response) => response,
|
4548 + | Err(e) => {
|
4549 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4550 + | ::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))
|
4551 + | }
|
4552 + | }
|
4559 4553 | }
|
4560 4554 | }
|
4561 4555 | impl
|
4562 4556 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4563 4557 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4564 - | > for crate::error::HttpChecksumRequiredError
|
4558 + | > for crate::error::SparseJsonListsError
|
4565 4559 | {
|
4566 4560 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4567 - | match crate::protocol_serde::shape_http_checksum_required::ser_http_checksum_required_http_error(&self) {
|
4561 + | match crate::protocol_serde::shape_sparse_json_lists::ser_sparse_json_lists_http_error(
|
4562 + | &self,
|
4563 + | ) {
|
4564 + | Ok(mut response) => {
|
4565 + | response.extensions_mut().insert(
|
4566 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4567 + | self.name(),
|
4568 + | ),
|
4569 + | );
|
4570 + | response
|
4571 + | }
|
4572 + | Err(e) => {
|
4573 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4574 + | ::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))
|
4575 + | }
|
4576 + | }
|
4577 + | }
|
4578 + | }
|
4579 + |
|
4580 + | ::pin_project_lite::pin_project! {
|
4581 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4582 + | /// [`JsonMapsInput`](crate::input::JsonMapsInput) using modelled bindings.
|
4583 + | pub struct JsonMapsInputFuture {
|
4584 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonMapsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4585 + | }
|
4586 + | }
|
4587 + |
|
4588 + | impl std::future::Future for JsonMapsInputFuture {
|
4589 + | type Output = Result<
|
4590 + | crate::input::JsonMapsInput,
|
4591 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4592 + | >;
|
4593 + |
|
4594 + | fn poll(
|
4595 + | self: std::pin::Pin<&mut Self>,
|
4596 + | cx: &mut std::task::Context<'_>,
|
4597 + | ) -> std::task::Poll<Self::Output> {
|
4598 + | let this = self.project();
|
4599 + | this.inner.as_mut().poll(cx)
|
4600 + | }
|
4601 + | }
|
4602 + |
|
4603 + | impl<B>
|
4604 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4605 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4606 + | B,
|
4607 + | > for crate::input::JsonMapsInput
|
4608 + | where
|
4609 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4610 + | B: 'static,
|
4611 + |
|
4612 + | B::Data: Send,
|
4613 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4614 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4615 + | {
|
4616 + | type Rejection =
|
4617 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4618 + | type Future = JsonMapsInputFuture;
|
4619 + |
|
4620 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4621 + | let fut = async move {
|
4622 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4623 + | request.headers(),
|
4624 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4625 + | ) {
|
4626 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4627 + | }
|
4628 + | crate::protocol_serde::shape_json_maps::de_json_maps_http_request(request).await
|
4629 + | };
|
4630 + | use ::futures_util::future::TryFutureExt;
|
4631 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4632 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4633 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4634 + | });
|
4635 + | JsonMapsInputFuture {
|
4636 + | inner: Box::pin(fut),
|
4637 + | }
|
4638 + | }
|
4639 + | }
|
4640 + | impl
|
4641 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4642 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4643 + | > for crate::output::JsonMapsOutput
|
4644 + | {
|
4645 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4646 + | match crate::protocol_serde::shape_json_maps::ser_json_maps_http_response(self) {
|
4647 + | Ok(response) => response,
|
4648 + | Err(e) => {
|
4649 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4650 + | ::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))
|
4651 + | }
|
4652 + | }
|
4653 + | }
|
4654 + | }
|
4655 + | impl
|
4656 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4657 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4658 + | > for crate::error::JsonMapsError
|
4659 + | {
|
4660 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4661 + | match crate::protocol_serde::shape_json_maps::ser_json_maps_http_error(&self) {
|
4662 + | Ok(mut response) => {
|
4663 + | response.extensions_mut().insert(
|
4664 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4665 + | self.name(),
|
4666 + | ),
|
4667 + | );
|
4668 + | response
|
4669 + | }
|
4670 + | Err(e) => {
|
4671 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4672 + | ::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))
|
4673 + | }
|
4674 + | }
|
4675 + | }
|
4676 + | }
|
4677 + |
|
4678 + | ::pin_project_lite::pin_project! {
|
4679 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4680 + | /// [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput) using modelled bindings.
|
4681 + | pub struct SparseJsonMapsInputFuture {
|
4682 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::SparseJsonMapsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4683 + | }
|
4684 + | }
|
4685 + |
|
4686 + | impl std::future::Future for SparseJsonMapsInputFuture {
|
4687 + | type Output = Result<
|
4688 + | crate::input::SparseJsonMapsInput,
|
4689 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4690 + | >;
|
4691 + |
|
4692 + | fn poll(
|
4693 + | self: std::pin::Pin<&mut Self>,
|
4694 + | cx: &mut std::task::Context<'_>,
|
4695 + | ) -> std::task::Poll<Self::Output> {
|
4696 + | let this = self.project();
|
4697 + | this.inner.as_mut().poll(cx)
|
4698 + | }
|
4699 + | }
|
4700 + |
|
4701 + | impl<B>
|
4702 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4703 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4704 + | B,
|
4705 + | > for crate::input::SparseJsonMapsInput
|
4706 + | where
|
4707 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4708 + | B: 'static,
|
4709 + |
|
4710 + | B::Data: Send,
|
4711 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4712 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4713 + | {
|
4714 + | type Rejection =
|
4715 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4716 + | type Future = SparseJsonMapsInputFuture;
|
4717 + |
|
4718 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4719 + | let fut = async move {
|
4720 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4721 + | request.headers(),
|
4722 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4723 + | ) {
|
4724 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4725 + | }
|
4726 + | crate::protocol_serde::shape_sparse_json_maps::de_sparse_json_maps_http_request(request)
|
4727 + | .await
|
4728 + | };
|
4729 + | use ::futures_util::future::TryFutureExt;
|
4730 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4731 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4732 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4733 + | });
|
4734 + | SparseJsonMapsInputFuture {
|
4735 + | inner: Box::pin(fut),
|
4736 + | }
|
4737 + | }
|
4738 + | }
|
4739 + | impl
|
4740 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4741 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4742 + | > for crate::output::SparseJsonMapsOutput
|
4743 + | {
|
4744 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4745 + | match crate::protocol_serde::shape_sparse_json_maps::ser_sparse_json_maps_http_response(
|
4746 + | self,
|
4747 + | ) {
|
4748 + | Ok(response) => response,
|
4749 + | Err(e) => {
|
4750 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4751 + | ::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))
|
4752 + | }
|
4753 + | }
|
4754 + | }
|
4755 + | }
|
4756 + | impl
|
4757 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4758 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4759 + | > for crate::error::SparseJsonMapsError
|
4760 + | {
|
4761 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4762 + | match crate::protocol_serde::shape_sparse_json_maps::ser_sparse_json_maps_http_error(&self)
|
4763 + | {
|
4764 + | Ok(mut response) => {
|
4765 + | response.extensions_mut().insert(
|
4766 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4767 + | self.name(),
|
4768 + | ),
|
4769 + | );
|
4770 + | response
|
4771 + | }
|
4772 + | Err(e) => {
|
4773 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4774 + | ::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))
|
4775 + | }
|
4776 + | }
|
4777 + | }
|
4778 + | }
|
4779 + |
|
4780 + | ::pin_project_lite::pin_project! {
|
4781 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4782 + | /// [`JsonBlobsInput`](crate::input::JsonBlobsInput) using modelled bindings.
|
4783 + | pub struct JsonBlobsInputFuture {
|
4784 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonBlobsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4785 + | }
|
4786 + | }
|
4787 + |
|
4788 + | impl std::future::Future for JsonBlobsInputFuture {
|
4789 + | type Output = Result<
|
4790 + | crate::input::JsonBlobsInput,
|
4791 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4792 + | >;
|
4793 + |
|
4794 + | fn poll(
|
4795 + | self: std::pin::Pin<&mut Self>,
|
4796 + | cx: &mut std::task::Context<'_>,
|
4797 + | ) -> std::task::Poll<Self::Output> {
|
4798 + | let this = self.project();
|
4799 + | this.inner.as_mut().poll(cx)
|
4800 + | }
|
4801 + | }
|
4802 + |
|
4803 + | impl<B>
|
4804 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4805 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4806 + | B,
|
4807 + | > for crate::input::JsonBlobsInput
|
4808 + | where
|
4809 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4810 + | B: 'static,
|
4811 + |
|
4812 + | B::Data: Send,
|
4813 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4814 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4815 + | {
|
4816 + | type Rejection =
|
4817 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4818 + | type Future = JsonBlobsInputFuture;
|
4819 + |
|
4820 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4821 + | let fut = async move {
|
4822 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4823 + | request.headers(),
|
4824 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4825 + | ) {
|
4826 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4827 + | }
|
4828 + | crate::protocol_serde::shape_json_blobs::de_json_blobs_http_request(request).await
|
4829 + | };
|
4830 + | use ::futures_util::future::TryFutureExt;
|
4831 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4832 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4833 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4834 + | });
|
4835 + | JsonBlobsInputFuture {
|
4836 + | inner: Box::pin(fut),
|
4837 + | }
|
4838 + | }
|
4839 + | }
|
4840 + | impl
|
4841 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4842 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4843 + | > for crate::output::JsonBlobsOutput
|
4844 + | {
|
4845 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4846 + | match crate::protocol_serde::shape_json_blobs::ser_json_blobs_http_response(self) {
|
4847 + | Ok(response) => response,
|
4848 + | Err(e) => {
|
4849 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4850 + | ::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))
|
4851 + | }
|
4852 + | }
|
4853 + | }
|
4854 + | }
|
4855 + | impl
|
4856 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4857 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4858 + | > for crate::error::JsonBlobsError
|
4859 + | {
|
4860 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4861 + | match crate::protocol_serde::shape_json_blobs::ser_json_blobs_http_error(&self) {
|
4862 + | Ok(mut response) => {
|
4863 + | response.extensions_mut().insert(
|
4864 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4865 + | self.name(),
|
4866 + | ),
|
4867 + | );
|
4868 + | response
|
4869 + | }
|
4870 + | Err(e) => {
|
4871 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4872 + | ::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))
|
4873 + | }
|
4874 + | }
|
4875 + | }
|
4876 + | }
|
4877 + |
|
4878 + | ::pin_project_lite::pin_project! {
|
4879 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4880 + | /// [`DocumentTypeInput`](crate::input::DocumentTypeInput) using modelled bindings.
|
4881 + | pub struct DocumentTypeInputFuture {
|
4882 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DocumentTypeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4883 + | }
|
4884 + | }
|
4885 + |
|
4886 + | impl std::future::Future for DocumentTypeInputFuture {
|
4887 + | type Output = Result<
|
4888 + | crate::input::DocumentTypeInput,
|
4889 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4890 + | >;
|
4891 + |
|
4892 + | fn poll(
|
4893 + | self: std::pin::Pin<&mut Self>,
|
4894 + | cx: &mut std::task::Context<'_>,
|
4895 + | ) -> std::task::Poll<Self::Output> {
|
4896 + | let this = self.project();
|
4897 + | this.inner.as_mut().poll(cx)
|
4898 + | }
|
4899 + | }
|
4900 + |
|
4901 + | impl<B>
|
4902 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4903 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4904 + | B,
|
4905 + | > for crate::input::DocumentTypeInput
|
4906 + | where
|
4907 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4908 + | B: 'static,
|
4909 + |
|
4910 + | B::Data: Send,
|
4911 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4912 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4913 + | {
|
4914 + | type Rejection =
|
4915 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4916 + | type Future = DocumentTypeInputFuture;
|
4917 + |
|
4918 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4919 + | let fut = async move {
|
4920 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4921 + | request.headers(),
|
4922 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4923 + | ) {
|
4924 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4925 + | }
|
4926 + | crate::protocol_serde::shape_document_type::de_document_type_http_request(request).await
|
4927 + | };
|
4928 + | use ::futures_util::future::TryFutureExt;
|
4929 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4930 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4931 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4932 + | });
|
4933 + | DocumentTypeInputFuture {
|
4934 + | inner: Box::pin(fut),
|
4935 + | }
|
4936 + | }
|
4937 + | }
|
4938 + | impl
|
4939 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4940 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4941 + | > for crate::output::DocumentTypeOutput
|
4942 + | {
|
4943 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4944 + | match crate::protocol_serde::shape_document_type::ser_document_type_http_response(self) {
|
4945 + | Ok(response) => response,
|
4946 + | Err(e) => {
|
4947 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4948 + | ::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))
|
4949 + | }
|
4950 + | }
|
4951 + | }
|
4952 + | }
|
4953 + | impl
|
4954 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4955 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4956 + | > for crate::error::DocumentTypeError
|
4957 + | {
|
4958 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4959 + | match crate::protocol_serde::shape_document_type::ser_document_type_http_error(&self) {
|
4960 + | Ok(mut response) => {
|
4961 + | response.extensions_mut().insert(
|
4962 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4963 + | self.name(),
|
4964 + | ),
|
4965 + | );
|
4966 + | response
|
4967 + | }
|
4968 + | Err(e) => {
|
4969 + | ::tracing::error!(error = %e, "failed to serialize response");
|
4970 + | ::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))
|
4971 + | }
|
4972 + | }
|
4973 + | }
|
4974 + | }
|
4975 + |
|
4976 + | ::pin_project_lite::pin_project! {
|
4977 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4978 + | /// [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput) using modelled bindings.
|
4979 + | pub struct DocumentTypeAsPayloadInputFuture {
|
4980 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DocumentTypeAsPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4981 + | }
|
4982 + | }
|
4983 + |
|
4984 + | impl std::future::Future for DocumentTypeAsPayloadInputFuture {
|
4985 + | type Output = Result<
|
4986 + | crate::input::DocumentTypeAsPayloadInput,
|
4987 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4988 + | >;
|
4989 + |
|
4990 + | fn poll(
|
4991 + | self: std::pin::Pin<&mut Self>,
|
4992 + | cx: &mut std::task::Context<'_>,
|
4993 + | ) -> std::task::Poll<Self::Output> {
|
4994 + | let this = self.project();
|
4995 + | this.inner.as_mut().poll(cx)
|
4996 + | }
|
4997 + | }
|
4998 + |
|
4999 + | impl<B>
|
5000 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5001 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5002 + | B,
|
5003 + | > for crate::input::DocumentTypeAsPayloadInput
|
5004 + | where
|
5005 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5006 + | B: 'static,
|
5007 + |
|
5008 + | B::Data: Send,
|
5009 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5010 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5011 + | {
|
5012 + | type Rejection =
|
5013 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5014 + | type Future = DocumentTypeAsPayloadInputFuture;
|
5015 + |
|
5016 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5017 + | let fut = async move {
|
5018 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5019 + | request.headers(),
|
5020 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5021 + | ) {
|
5022 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5023 + | }
|
5024 + | crate::protocol_serde::shape_document_type_as_payload::de_document_type_as_payload_http_request(request)
|
5025 + | .await
|
5026 + | };
|
5027 + | use ::futures_util::future::TryFutureExt;
|
5028 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5029 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5030 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5031 + | });
|
5032 + | DocumentTypeAsPayloadInputFuture {
|
5033 + | inner: Box::pin(fut),
|
5034 + | }
|
5035 + | }
|
5036 + | }
|
5037 + | impl
|
5038 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5039 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5040 + | > for crate::output::DocumentTypeAsPayloadOutput
|
5041 + | {
|
5042 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5043 + | match crate::protocol_serde::shape_document_type_as_payload::ser_document_type_as_payload_http_response(self) {
|
5044 + | Ok(response) => response,
|
5045 + | Err(e) => {
|
5046 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5047 + | ::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))
|
5048 + | }
|
5049 + | }
|
5050 + | }
|
5051 + | }
|
5052 + | impl
|
5053 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5054 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5055 + | > for crate::error::DocumentTypeAsPayloadError
|
5056 + | {
|
5057 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5058 + | match crate::protocol_serde::shape_document_type_as_payload::ser_document_type_as_payload_http_error(&self) {
|
5059 + | Ok(mut response) => {
|
5060 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
5061 + | response
|
5062 + | },
|
5063 + | Err(e) => {
|
5064 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5065 + | ::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))
|
5066 + | }
|
5067 + | }
|
5068 + | }
|
5069 + | }
|
5070 + |
|
5071 + | ::pin_project_lite::pin_project! {
|
5072 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5073 + | /// [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput) using modelled bindings.
|
5074 + | pub struct DocumentTypeAsMapValueInputFuture {
|
5075 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DocumentTypeAsMapValueInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5076 + | }
|
5077 + | }
|
5078 + |
|
5079 + | impl std::future::Future for DocumentTypeAsMapValueInputFuture {
|
5080 + | type Output = Result<
|
5081 + | crate::input::DocumentTypeAsMapValueInput,
|
5082 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5083 + | >;
|
5084 + |
|
5085 + | fn poll(
|
5086 + | self: std::pin::Pin<&mut Self>,
|
5087 + | cx: &mut std::task::Context<'_>,
|
5088 + | ) -> std::task::Poll<Self::Output> {
|
5089 + | let this = self.project();
|
5090 + | this.inner.as_mut().poll(cx)
|
5091 + | }
|
5092 + | }
|
5093 + |
|
5094 + | impl<B>
|
5095 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5096 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5097 + | B,
|
5098 + | > for crate::input::DocumentTypeAsMapValueInput
|
5099 + | where
|
5100 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5101 + | B: 'static,
|
5102 + |
|
5103 + | B::Data: Send,
|
5104 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5105 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5106 + | {
|
5107 + | type Rejection =
|
5108 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5109 + | type Future = DocumentTypeAsMapValueInputFuture;
|
5110 + |
|
5111 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5112 + | let fut = async move {
|
5113 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5114 + | request.headers(),
|
5115 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5116 + | ) {
|
5117 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5118 + | }
|
5119 + | crate::protocol_serde::shape_document_type_as_map_value::de_document_type_as_map_value_http_request(request)
|
5120 + | .await
|
5121 + | };
|
5122 + | use ::futures_util::future::TryFutureExt;
|
5123 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5124 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5125 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5126 + | });
|
5127 + | DocumentTypeAsMapValueInputFuture {
|
5128 + | inner: Box::pin(fut),
|
5129 + | }
|
5130 + | }
|
5131 + | }
|
5132 + | impl
|
5133 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5134 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5135 + | > for crate::output::DocumentTypeAsMapValueOutput
|
5136 + | {
|
5137 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5138 + | match crate::protocol_serde::shape_document_type_as_map_value::ser_document_type_as_map_value_http_response(self) {
|
5139 + | Ok(response) => response,
|
5140 + | Err(e) => {
|
5141 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5142 + | ::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))
|
5143 + | }
|
5144 + | }
|
5145 + | }
|
5146 + | }
|
5147 + | impl
|
5148 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5149 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5150 + | > for crate::error::DocumentTypeAsMapValueError
|
5151 + | {
|
5152 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5153 + | match crate::protocol_serde::shape_document_type_as_map_value::ser_document_type_as_map_value_http_error(&self) {
|
5154 + | Ok(mut response) => {
|
5155 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
5156 + | response
|
5157 + | },
|
5158 + | Err(e) => {
|
5159 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5160 + | ::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))
|
5161 + | }
|
5162 + | }
|
5163 + | }
|
5164 + | }
|
5165 + |
|
5166 + | ::pin_project_lite::pin_project! {
|
5167 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5168 + | /// [`JsonUnionsInput`](crate::input::JsonUnionsInput) using modelled bindings.
|
5169 + | pub struct JsonUnionsInputFuture {
|
5170 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonUnionsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5171 + | }
|
5172 + | }
|
5173 + |
|
5174 + | impl std::future::Future for JsonUnionsInputFuture {
|
5175 + | type Output = Result<
|
5176 + | crate::input::JsonUnionsInput,
|
5177 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5178 + | >;
|
5179 + |
|
5180 + | fn poll(
|
5181 + | self: std::pin::Pin<&mut Self>,
|
5182 + | cx: &mut std::task::Context<'_>,
|
5183 + | ) -> std::task::Poll<Self::Output> {
|
5184 + | let this = self.project();
|
5185 + | this.inner.as_mut().poll(cx)
|
5186 + | }
|
5187 + | }
|
5188 + |
|
5189 + | impl<B>
|
5190 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5191 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5192 + | B,
|
5193 + | > for crate::input::JsonUnionsInput
|
5194 + | where
|
5195 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5196 + | B: 'static,
|
5197 + |
|
5198 + | B::Data: Send,
|
5199 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5200 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5201 + | {
|
5202 + | type Rejection =
|
5203 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5204 + | type Future = JsonUnionsInputFuture;
|
5205 + |
|
5206 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5207 + | let fut = async move {
|
5208 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5209 + | request.headers(),
|
5210 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5211 + | ) {
|
5212 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5213 + | }
|
5214 + | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request).await
|
5215 + | };
|
5216 + | use ::futures_util::future::TryFutureExt;
|
5217 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5218 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5219 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5220 + | });
|
5221 + | JsonUnionsInputFuture {
|
5222 + | inner: Box::pin(fut),
|
5223 + | }
|
5224 + | }
|
5225 + | }
|
5226 + | impl
|
5227 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5228 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5229 + | > for crate::output::JsonUnionsOutput
|
5230 + | {
|
5231 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5232 + | match crate::protocol_serde::shape_json_unions::ser_json_unions_http_response(self) {
|
5233 + | Ok(response) => response,
|
5234 + | Err(e) => {
|
5235 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5236 + | ::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))
|
5237 + | }
|
5238 + | }
|
5239 + | }
|
5240 + | }
|
5241 + | impl
|
5242 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5243 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5244 + | > for crate::error::JsonUnionsError
|
5245 + | {
|
5246 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5247 + | match crate::protocol_serde::shape_json_unions::ser_json_unions_http_error(&self) {
|
5248 + | Ok(mut response) => {
|
5249 + | response.extensions_mut().insert(
|
5250 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5251 + | self.name(),
|
5252 + | ),
|
5253 + | );
|
5254 + | response
|
5255 + | }
|
5256 + | Err(e) => {
|
5257 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5258 + | ::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))
|
5259 + | }
|
5260 + | }
|
5261 + | }
|
5262 + | }
|
5263 + |
|
5264 + | ::pin_project_lite::pin_project! {
|
5265 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5266 + | /// [`PostPlayerActionInput`](crate::input::PostPlayerActionInput) using modelled bindings.
|
5267 + | pub struct PostPlayerActionInputFuture {
|
5268 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PostPlayerActionInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5269 + | }
|
5270 + | }
|
5271 + |
|
5272 + | impl std::future::Future for PostPlayerActionInputFuture {
|
5273 + | type Output = Result<
|
5274 + | crate::input::PostPlayerActionInput,
|
5275 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5276 + | >;
|
5277 + |
|
5278 + | fn poll(
|
5279 + | self: std::pin::Pin<&mut Self>,
|
5280 + | cx: &mut std::task::Context<'_>,
|
5281 + | ) -> std::task::Poll<Self::Output> {
|
5282 + | let this = self.project();
|
5283 + | this.inner.as_mut().poll(cx)
|
5284 + | }
|
5285 + | }
|
5286 + |
|
5287 + | impl<B>
|
5288 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5289 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5290 + | B,
|
5291 + | > for crate::input::PostPlayerActionInput
|
5292 + | where
|
5293 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5294 + | B: 'static,
|
5295 + |
|
5296 + | B::Data: Send,
|
5297 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5298 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5299 + | {
|
5300 + | type Rejection =
|
5301 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5302 + | type Future = PostPlayerActionInputFuture;
|
5303 + |
|
5304 + | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5305 + | let fut = async move {
|
5306 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5307 + | request.headers(),
|
5308 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5309 + | ) {
|
5310 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5311 + | }
|
5312 + | crate::protocol_serde::shape_post_player_action::de_post_player_action_http_request(
|
5313 + | request,
|
5314 + | )
|
5315 + | .await
|
5316 + | };
|
5317 + | use ::futures_util::future::TryFutureExt;
|
5318 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5319 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5320 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5321 + | });
|
5322 + | PostPlayerActionInputFuture {
|
5323 + | inner: Box::pin(fut),
|
5324 + | }
|
5325 + | }
|
5326 + | }
|
5327 + | impl
|
5328 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5329 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5330 + | > for crate::output::PostPlayerActionOutput
|
5331 + | {
|
5332 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5333 + | match crate::protocol_serde::shape_post_player_action::ser_post_player_action_http_response(
|
5334 + | self,
|
5335 + | ) {
|
5336 + | Ok(response) => response,
|
5337 + | Err(e) => {
|
5338 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5339 + | ::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))
|
5340 + | }
|
5341 + | }
|
5342 + | }
|
5343 + | }
|
5344 + | impl
|
5345 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5346 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5347 + | > for crate::error::PostPlayerActionError
|
5348 + | {
|
5349 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5350 + | match crate::protocol_serde::shape_post_player_action::ser_post_player_action_http_error(
|
5351 + | &self,
|
5352 + | ) {
|
4568 5353 | Ok(mut response) => {
|
4569 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
5354 + | response.extensions_mut().insert(
|
5355 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5356 + | self.name(),
|
5357 + | ),
|
5358 + | );
|
4570 5359 | response
|
4571 - | },
|
5360 + | }
|
4572 5361 | Err(e) => {
|
4573 5362 | ::tracing::error!(error = %e, "failed to serialize response");
|
4574 5363 | ::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))
|
4575 5364 | }
|
4576 5365 | }
|
4577 5366 | }
|
4578 5367 | }
|
4579 5368 |
|
4580 5369 | ::pin_project_lite::pin_project! {
|
4581 5370 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4582 - | /// [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput) using modelled bindings.
|
4583 - | pub struct HostWithPathOperationInputFuture {
|
4584 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HostWithPathOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5371 + | /// [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput) using modelled bindings.
|
5372 + | pub struct PostUnionWithJsonNameInputFuture {
|
5373 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PostUnionWithJsonNameInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4585 5374 | }
|
4586 5375 | }
|
4587 5376 |
|
4588 - | impl std::future::Future for HostWithPathOperationInputFuture {
|
5377 + | impl std::future::Future for PostUnionWithJsonNameInputFuture {
|
4589 5378 | type Output = Result<
|
4590 - | crate::input::HostWithPathOperationInput,
|
5379 + | crate::input::PostUnionWithJsonNameInput,
|
4591 5380 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4592 5381 | >;
|
4593 5382 |
|
4594 5383 | fn poll(
|
4595 5384 | self: std::pin::Pin<&mut Self>,
|
4596 5385 | cx: &mut std::task::Context<'_>,
|
4597 5386 | ) -> std::task::Poll<Self::Output> {
|
4598 5387 | let this = self.project();
|
4599 5388 | this.inner.as_mut().poll(cx)
|
4600 5389 | }
|
4601 5390 | }
|
4602 5391 |
|
4603 5392 | impl<B>
|
4604 5393 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4605 5394 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4606 5395 | B,
|
4607 - | > for crate::input::HostWithPathOperationInput
|
5396 + | > for crate::input::PostUnionWithJsonNameInput
|
4608 5397 | where
|
4609 5398 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4610 5399 | B: 'static,
|
4611 5400 |
|
4612 5401 | B::Data: Send,
|
4613 5402 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4614 5403 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4615 5404 | {
|
4616 5405 | type Rejection =
|
4617 5406 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4618 - | type Future = HostWithPathOperationInputFuture;
|
5407 + | type Future = PostUnionWithJsonNameInputFuture;
|
4619 5408 |
|
4620 5409 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4621 5410 | let fut = async move {
|
4622 5411 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4623 5412 | request.headers(),
|
4624 5413 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4625 5414 | ) {
|
4626 5415 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4627 5416 | }
|
4628 - | crate::protocol_serde::shape_host_with_path_operation::de_host_with_path_operation_http_request(request)
|
5417 + | crate::protocol_serde::shape_post_union_with_json_name::de_post_union_with_json_name_http_request(request)
|
4629 5418 | .await
|
4630 5419 | };
|
4631 5420 | use ::futures_util::future::TryFutureExt;
|
4632 5421 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4633 5422 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4634 5423 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4635 5424 | });
|
4636 - | HostWithPathOperationInputFuture {
|
5425 + | PostUnionWithJsonNameInputFuture {
|
4637 5426 | inner: Box::pin(fut),
|
4638 5427 | }
|
4639 5428 | }
|
4640 5429 | }
|
4641 5430 | impl
|
4642 5431 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4643 5432 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4644 - | > for crate::output::HostWithPathOperationOutput
|
5433 + | > for crate::output::PostUnionWithJsonNameOutput
|
4645 5434 | {
|
4646 5435 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4647 - | match crate::protocol_serde::shape_host_with_path_operation::ser_host_with_path_operation_http_response(self) {
|
5436 + | match crate::protocol_serde::shape_post_union_with_json_name::ser_post_union_with_json_name_http_response(self) {
|
4648 5437 | Ok(response) => response,
|
4649 5438 | Err(e) => {
|
4650 5439 | ::tracing::error!(error = %e, "failed to serialize response");
|
4651 5440 | ::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))
|
4652 5441 | }
|
4653 5442 | }
|
4654 5443 | }
|
4655 5444 | }
|
4656 5445 | impl
|
4657 5446 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4658 5447 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4659 - | > for crate::error::HostWithPathOperationError
|
5448 + | > for crate::error::PostUnionWithJsonNameError
|
4660 5449 | {
|
4661 5450 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4662 - | match crate::protocol_serde::shape_host_with_path_operation::ser_host_with_path_operation_http_error(&self) {
|
5451 + | match crate::protocol_serde::shape_post_union_with_json_name::ser_post_union_with_json_name_http_error(&self) {
|
4663 5452 | Ok(mut response) => {
|
4664 5453 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
4665 5454 | response
|
4666 5455 | },
|
4667 5456 | Err(e) => {
|
4668 5457 | ::tracing::error!(error = %e, "failed to serialize response");
|
4669 5458 | ::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))
|
4670 5459 | }
|
4671 5460 | }
|
4672 5461 | }
|
4673 5462 | }
|
4674 5463 |
|
4675 5464 | ::pin_project_lite::pin_project! {
|
4676 5465 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4677 - | /// [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) using modelled bindings.
|
4678 - | pub struct EndpointWithHostLabelOperationInputFuture {
|
4679 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EndpointWithHostLabelOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5466 + | /// [`EndpointOperationInput`](crate::input::EndpointOperationInput) using modelled bindings.
|
5467 + | pub struct EndpointOperationInputFuture {
|
5468 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EndpointOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4680 5469 | }
|
4681 5470 | }
|
4682 5471 |
|
4683 - | impl std::future::Future for EndpointWithHostLabelOperationInputFuture {
|
5472 + | impl std::future::Future for EndpointOperationInputFuture {
|
4684 5473 | type Output = Result<
|
4685 - | crate::input::EndpointWithHostLabelOperationInput,
|
5474 + | crate::input::EndpointOperationInput,
|
4686 5475 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4687 5476 | >;
|
4688 5477 |
|
4689 5478 | fn poll(
|
4690 5479 | self: std::pin::Pin<&mut Self>,
|
4691 5480 | cx: &mut std::task::Context<'_>,
|
4692 5481 | ) -> std::task::Poll<Self::Output> {
|
4693 5482 | let this = self.project();
|
4694 5483 | this.inner.as_mut().poll(cx)
|
4695 5484 | }
|
4696 5485 | }
|
4697 5486 |
|
4698 5487 | impl<B>
|
4699 5488 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4700 5489 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4701 5490 | B,
|
4702 - | > for crate::input::EndpointWithHostLabelOperationInput
|
5491 + | > for crate::input::EndpointOperationInput
|
4703 5492 | where
|
4704 5493 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4705 5494 | B: 'static,
|
4706 5495 |
|
4707 5496 | B::Data: Send,
|
4708 5497 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4709 5498 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4710 5499 | {
|
4711 5500 | type Rejection =
|
4712 5501 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4713 - | type Future = EndpointWithHostLabelOperationInputFuture;
|
5502 + | type Future = EndpointOperationInputFuture;
|
4714 5503 |
|
4715 5504 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4716 5505 | let fut = async move {
|
4717 5506 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4718 5507 | request.headers(),
|
4719 5508 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4720 5509 | ) {
|
4721 5510 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4722 5511 | }
|
4723 - | crate::protocol_serde::shape_endpoint_with_host_label_operation::de_endpoint_with_host_label_operation_http_request(request)
|
4724 - | .await
|
5512 + | crate::protocol_serde::shape_endpoint_operation::de_endpoint_operation_http_request(
|
5513 + | request,
|
5514 + | )
|
5515 + | .await
|
4725 5516 | };
|
4726 5517 | use ::futures_util::future::TryFutureExt;
|
4727 5518 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4728 5519 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4729 5520 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4730 5521 | });
|
4731 - | EndpointWithHostLabelOperationInputFuture {
|
5522 + | EndpointOperationInputFuture {
|
4732 5523 | inner: Box::pin(fut),
|
4733 5524 | }
|
4734 5525 | }
|
4735 5526 | }
|
4736 5527 | impl
|
4737 5528 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4738 5529 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4739 - | > for crate::output::EndpointWithHostLabelOperationOutput
|
5530 + | > for crate::output::EndpointOperationOutput
|
4740 5531 | {
|
4741 5532 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4742 - | match crate::protocol_serde::shape_endpoint_with_host_label_operation::ser_endpoint_with_host_label_operation_http_response(self) {
|
4743 - | Ok(response) => response,
|
4744 - | Err(e) => {
|
4745 - | ::tracing::error!(error = %e, "failed to serialize response");
|
4746 - | ::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))
|
4747 - | }
|
4748 - | }
|
5533 + | match crate::protocol_serde::shape_endpoint_operation::ser_endpoint_operation_http_response(
|
5534 + | self,
|
5535 + | ) {
|
5536 + | Ok(response) => response,
|
5537 + | Err(e) => {
|
5538 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5539 + | ::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))
|
5540 + | }
|
5541 + | }
|
4749 5542 | }
|
4750 5543 | }
|
4751 5544 | impl
|
4752 5545 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4753 5546 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4754 - | > for crate::error::EndpointWithHostLabelOperationError
|
5547 + | > for crate::error::EndpointOperationError
|
4755 5548 | {
|
4756 5549 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4757 - | match crate::protocol_serde::shape_endpoint_with_host_label_operation::ser_endpoint_with_host_label_operation_http_error(&self) {
|
5550 + | match crate::protocol_serde::shape_endpoint_operation::ser_endpoint_operation_http_error(
|
5551 + | &self,
|
5552 + | ) {
|
4758 5553 | Ok(mut response) => {
|
4759 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
5554 + | response.extensions_mut().insert(
|
5555 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5556 + | self.name(),
|
5557 + | ),
|
5558 + | );
|
4760 5559 | response
|
4761 - | },
|
5560 + | }
|
4762 5561 | Err(e) => {
|
4763 5562 | ::tracing::error!(error = %e, "failed to serialize response");
|
4764 5563 | ::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))
|
4765 5564 | }
|
4766 5565 | }
|
4767 5566 | }
|
4768 5567 | }
|
4769 5568 |
|
4770 5569 | ::pin_project_lite::pin_project! {
|
4771 5570 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4772 - | /// [`EndpointOperationInput`](crate::input::EndpointOperationInput) using modelled bindings.
|
4773 - | pub struct EndpointOperationInputFuture {
|
4774 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EndpointOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5571 + | /// [`EndpointWithHostLabelOperationInput`](crate::input::EndpointWithHostLabelOperationInput) using modelled bindings.
|
5572 + | pub struct EndpointWithHostLabelOperationInputFuture {
|
5573 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EndpointWithHostLabelOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4775 5574 | }
|
4776 5575 | }
|
4777 5576 |
|
4778 - | impl std::future::Future for EndpointOperationInputFuture {
|
5577 + | impl std::future::Future for EndpointWithHostLabelOperationInputFuture {
|
4779 5578 | type Output = Result<
|
4780 - | crate::input::EndpointOperationInput,
|
5579 + | crate::input::EndpointWithHostLabelOperationInput,
|
4781 5580 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4782 5581 | >;
|
4783 5582 |
|
4784 5583 | fn poll(
|
4785 5584 | self: std::pin::Pin<&mut Self>,
|
4786 5585 | cx: &mut std::task::Context<'_>,
|
4787 5586 | ) -> std::task::Poll<Self::Output> {
|
4788 5587 | let this = self.project();
|
4789 5588 | this.inner.as_mut().poll(cx)
|
4790 5589 | }
|
4791 5590 | }
|
4792 5591 |
|
4793 5592 | impl<B>
|
4794 5593 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4795 5594 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4796 5595 | B,
|
4797 - | > for crate::input::EndpointOperationInput
|
5596 + | > for crate::input::EndpointWithHostLabelOperationInput
|
4798 5597 | where
|
4799 5598 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4800 5599 | B: 'static,
|
4801 5600 |
|
4802 5601 | B::Data: Send,
|
4803 5602 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4804 5603 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4805 5604 | {
|
4806 5605 | type Rejection =
|
4807 5606 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4808 - | type Future = EndpointOperationInputFuture;
|
5607 + | type Future = EndpointWithHostLabelOperationInputFuture;
|
4809 5608 |
|
4810 5609 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4811 5610 | let fut = async move {
|
4812 5611 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4813 5612 | request.headers(),
|
4814 5613 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4815 5614 | ) {
|
4816 5615 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4817 5616 | }
|
4818 - | crate::protocol_serde::shape_endpoint_operation::de_endpoint_operation_http_request(
|
4819 - | request,
|
4820 - | )
|
4821 - | .await
|
5617 + | crate::protocol_serde::shape_endpoint_with_host_label_operation::de_endpoint_with_host_label_operation_http_request(request)
|
5618 + | .await
|
4822 5619 | };
|
4823 5620 | use ::futures_util::future::TryFutureExt;
|
4824 5621 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4825 5622 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4826 5623 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4827 5624 | });
|
4828 - | EndpointOperationInputFuture {
|
5625 + | EndpointWithHostLabelOperationInputFuture {
|
4829 5626 | inner: Box::pin(fut),
|
4830 5627 | }
|
4831 5628 | }
|
4832 5629 | }
|
4833 5630 | impl
|
4834 5631 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4835 5632 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4836 - | > for crate::output::EndpointOperationOutput
|
5633 + | > for crate::output::EndpointWithHostLabelOperationOutput
|
4837 5634 | {
|
4838 5635 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4839 - | match crate::protocol_serde::shape_endpoint_operation::ser_endpoint_operation_http_response(
|
4840 - | self,
|
4841 - | ) {
|
4842 - | Ok(response) => response,
|
4843 - | Err(e) => {
|
4844 - | ::tracing::error!(error = %e, "failed to serialize response");
|
4845 - | ::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))
|
4846 - | }
|
4847 - | }
|
5636 + | match crate::protocol_serde::shape_endpoint_with_host_label_operation::ser_endpoint_with_host_label_operation_http_response(self) {
|
5637 + | Ok(response) => response,
|
5638 + | Err(e) => {
|
5639 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5640 + | ::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))
|
5641 + | }
|
5642 + | }
|
4848 5643 | }
|
4849 5644 | }
|
4850 5645 | impl
|
4851 5646 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4852 5647 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4853 - | > for crate::error::EndpointOperationError
|
5648 + | > for crate::error::EndpointWithHostLabelOperationError
|
4854 5649 | {
|
4855 5650 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4856 - | match crate::protocol_serde::shape_endpoint_operation::ser_endpoint_operation_http_error(
|
4857 - | &self,
|
4858 - | ) {
|
5651 + | match crate::protocol_serde::shape_endpoint_with_host_label_operation::ser_endpoint_with_host_label_operation_http_error(&self) {
|
4859 5652 | Ok(mut response) => {
|
4860 - | response.extensions_mut().insert(
|
4861 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
4862 - | self.name(),
|
4863 - | ),
|
4864 - | );
|
5653 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
4865 5654 | response
|
4866 - | }
|
5655 + | },
|
4867 5656 | Err(e) => {
|
4868 5657 | ::tracing::error!(error = %e, "failed to serialize response");
|
4869 5658 | ::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))
|
4870 5659 | }
|
4871 5660 | }
|
4872 5661 | }
|
4873 5662 | }
|
4874 5663 |
|
4875 5664 | ::pin_project_lite::pin_project! {
|
4876 5665 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4877 - | /// [`PostUnionWithJsonNameInput`](crate::input::PostUnionWithJsonNameInput) using modelled bindings.
|
4878 - | pub struct PostUnionWithJsonNameInputFuture {
|
4879 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PostUnionWithJsonNameInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5666 + | /// [`HostWithPathOperationInput`](crate::input::HostWithPathOperationInput) using modelled bindings.
|
5667 + | pub struct HostWithPathOperationInputFuture {
|
5668 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HostWithPathOperationInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4880 5669 | }
|
4881 5670 | }
|
4882 5671 |
|
4883 - | impl std::future::Future for PostUnionWithJsonNameInputFuture {
|
5672 + | impl std::future::Future for HostWithPathOperationInputFuture {
|
4884 5673 | type Output = Result<
|
4885 - | crate::input::PostUnionWithJsonNameInput,
|
5674 + | crate::input::HostWithPathOperationInput,
|
4886 5675 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4887 5676 | >;
|
4888 5677 |
|
4889 5678 | fn poll(
|
4890 5679 | self: std::pin::Pin<&mut Self>,
|
4891 5680 | cx: &mut std::task::Context<'_>,
|
4892 5681 | ) -> std::task::Poll<Self::Output> {
|
4893 5682 | let this = self.project();
|
4894 5683 | this.inner.as_mut().poll(cx)
|
4895 5684 | }
|
4896 5685 | }
|
4897 5686 |
|
4898 5687 | impl<B>
|
4899 5688 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4900 5689 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4901 5690 | B,
|
4902 - | > for crate::input::PostUnionWithJsonNameInput
|
5691 + | > for crate::input::HostWithPathOperationInput
|
4903 5692 | where
|
4904 5693 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
4905 5694 | B: 'static,
|
4906 5695 |
|
4907 5696 | B::Data: Send,
|
4908 5697 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
4909 5698 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
4910 5699 | {
|
4911 5700 | type Rejection =
|
4912 5701 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
4913 - | type Future = PostUnionWithJsonNameInputFuture;
|
5702 + | type Future = HostWithPathOperationInputFuture;
|
4914 5703 |
|
4915 5704 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
4916 5705 | let fut = async move {
|
4917 5706 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
4918 5707 | request.headers(),
|
4919 5708 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
4920 5709 | ) {
|
4921 5710 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
4922 5711 | }
|
4923 - | crate::protocol_serde::shape_post_union_with_json_name::de_post_union_with_json_name_http_request(request)
|
5712 + | crate::protocol_serde::shape_host_with_path_operation::de_host_with_path_operation_http_request(request)
|
4924 5713 | .await
|
4925 5714 | };
|
4926 5715 | use ::futures_util::future::TryFutureExt;
|
4927 5716 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
4928 5717 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
4929 5718 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
4930 5719 | });
|
4931 - | PostUnionWithJsonNameInputFuture {
|
5720 + | HostWithPathOperationInputFuture {
|
4932 5721 | inner: Box::pin(fut),
|
4933 5722 | }
|
4934 5723 | }
|
4935 5724 | }
|
4936 5725 | impl
|
4937 5726 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4938 5727 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4939 - | > for crate::output::PostUnionWithJsonNameOutput
|
5728 + | > for crate::output::HostWithPathOperationOutput
|
4940 5729 | {
|
4941 5730 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4942 - | match crate::protocol_serde::shape_post_union_with_json_name::ser_post_union_with_json_name_http_response(self) {
|
5731 + | match crate::protocol_serde::shape_host_with_path_operation::ser_host_with_path_operation_http_response(self) {
|
4943 5732 | Ok(response) => response,
|
4944 5733 | Err(e) => {
|
4945 5734 | ::tracing::error!(error = %e, "failed to serialize response");
|
4946 5735 | ::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))
|
4947 5736 | }
|
4948 5737 | }
|
4949 5738 | }
|
4950 5739 | }
|
4951 5740 | impl
|
4952 5741 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
4953 5742 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4954 - | > for crate::error::PostUnionWithJsonNameError
|
5743 + | > for crate::error::HostWithPathOperationError
|
4955 5744 | {
|
4956 5745 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
4957 - | match crate::protocol_serde::shape_post_union_with_json_name::ser_post_union_with_json_name_http_error(&self) {
|
5746 + | match crate::protocol_serde::shape_host_with_path_operation::ser_host_with_path_operation_http_error(&self) {
|
4958 5747 | Ok(mut response) => {
|
4959 5748 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
4960 5749 | response
|
4961 5750 | },
|
4962 5751 | Err(e) => {
|
4963 5752 | ::tracing::error!(error = %e, "failed to serialize response");
|
4964 5753 | ::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))
|
4965 5754 | }
|
4966 5755 | }
|
4967 5756 | }
|
4968 5757 | }
|
4969 5758 |
|
4970 5759 | ::pin_project_lite::pin_project! {
|
4971 5760 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4972 - | /// [`PostPlayerActionInput`](crate::input::PostPlayerActionInput) using modelled bindings.
|
4973 - | pub struct PostPlayerActionInputFuture {
|
4974 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PostPlayerActionInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5761 + | /// [`HttpChecksumRequiredInput`](crate::input::HttpChecksumRequiredInput) using modelled bindings.
|
5762 + | pub struct HttpChecksumRequiredInputFuture {
|
5763 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpChecksumRequiredInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
4975 5764 | }
|
4976 5765 | }
|
4977 5766 |
|
4978 - | impl std::future::Future for PostPlayerActionInputFuture {
|
5767 + | impl std::future::Future for HttpChecksumRequiredInputFuture {
|
4979 5768 | type Output = Result<
|
4980 - | crate::input::PostPlayerActionInput,
|
5769 + | crate::input::HttpChecksumRequiredInput,
|
4981 5770 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
4982 5771 | >;
|
4983 5772 |
|
4984 5773 | fn poll(
|
4985 5774 | self: std::pin::Pin<&mut Self>,
|
4986 5775 | cx: &mut std::task::Context<'_>,
|
4987 5776 | ) -> std::task::Poll<Self::Output> {
|
4988 5777 | let this = self.project();
|
4989 5778 | this.inner.as_mut().poll(cx)
|
4990 5779 | }
|
4991 5780 | }
|
4992 5781 |
|
4993 5782 | impl<B>
|
4994 5783 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
4995 5784 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
4996 5785 | B,
|
4997 - | > for crate::input::PostPlayerActionInput
|
5786 + | > for crate::input::HttpChecksumRequiredInput
|
4998 5787 | where
|
4999 5788 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5000 5789 | B: 'static,
|
5001 5790 |
|
5002 5791 | B::Data: Send,
|
5003 5792 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5004 5793 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5005 5794 | {
|
5006 5795 | type Rejection =
|
5007 5796 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5008 - | type Future = PostPlayerActionInputFuture;
|
5797 + | type Future = HttpChecksumRequiredInputFuture;
|
5009 5798 |
|
5010 5799 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5011 5800 | let fut = async move {
|
5012 5801 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5013 5802 | request.headers(),
|
5014 5803 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5015 5804 | ) {
|
5016 5805 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5017 5806 | }
|
5018 - | crate::protocol_serde::shape_post_player_action::de_post_player_action_http_request(
|
5019 - | request,
|
5020 - | )
|
5021 - | .await
|
5807 + | crate::protocol_serde::shape_http_checksum_required::de_http_checksum_required_http_request(request)
|
5808 + | .await
|
5022 5809 | };
|
5023 5810 | use ::futures_util::future::TryFutureExt;
|
5024 5811 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5025 5812 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5026 5813 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5027 5814 | });
|
5028 - | PostPlayerActionInputFuture {
|
5815 + | HttpChecksumRequiredInputFuture {
|
5029 5816 | inner: Box::pin(fut),
|
5030 5817 | }
|
5031 5818 | }
|
5032 5819 | }
|
5033 5820 | impl
|
5034 5821 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5035 5822 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5036 - | > for crate::output::PostPlayerActionOutput
|
5823 + | > for crate::output::HttpChecksumRequiredOutput
|
5037 5824 | {
|
5038 5825 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5039 - | match crate::protocol_serde::shape_post_player_action::ser_post_player_action_http_response(
|
5040 - | self,
|
5041 - | ) {
|
5042 - | Ok(response) => response,
|
5043 - | Err(e) => {
|
5044 - | ::tracing::error!(error = %e, "failed to serialize response");
|
5045 - | ::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))
|
5046 - | }
|
5047 - | }
|
5826 + | match crate::protocol_serde::shape_http_checksum_required::ser_http_checksum_required_http_response(self) {
|
5827 + | Ok(response) => response,
|
5828 + | Err(e) => {
|
5829 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5830 + | ::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))
|
5831 + | }
|
5832 + | }
|
5048 5833 | }
|
5049 5834 | }
|
5050 5835 | impl
|
5051 5836 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5052 5837 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5053 - | > for crate::error::PostPlayerActionError
|
5838 + | > for crate::error::HttpChecksumRequiredError
|
5054 5839 | {
|
5055 5840 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5056 - | match crate::protocol_serde::shape_post_player_action::ser_post_player_action_http_error(
|
5057 - | &self,
|
5058 - | ) {
|
5841 + | match crate::protocol_serde::shape_http_checksum_required::ser_http_checksum_required_http_error(&self) {
|
5059 5842 | Ok(mut response) => {
|
5060 - | response.extensions_mut().insert(
|
5061 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5062 - | self.name(),
|
5063 - | ),
|
5064 - | );
|
5843 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
5065 5844 | response
|
5066 - | }
|
5845 + | },
|
5067 5846 | Err(e) => {
|
5068 5847 | ::tracing::error!(error = %e, "failed to serialize response");
|
5069 5848 | ::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))
|
5070 5849 | }
|
5071 5850 | }
|
5072 5851 | }
|
5073 5852 | }
|
5074 5853 |
|
5075 5854 | ::pin_project_lite::pin_project! {
|
5076 5855 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5077 - | /// [`JsonUnionsInput`](crate::input::JsonUnionsInput) using modelled bindings.
|
5078 - | pub struct JsonUnionsInputFuture {
|
5079 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonUnionsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5856 + | /// [`MalformedRequestBodyInput`](crate::input::MalformedRequestBodyInput) using modelled bindings.
|
5857 + | pub struct MalformedRequestBodyInputFuture {
|
5858 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedRequestBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5080 5859 | }
|
5081 5860 | }
|
5082 5861 |
|
5083 - | impl std::future::Future for JsonUnionsInputFuture {
|
5862 + | impl std::future::Future for MalformedRequestBodyInputFuture {
|
5084 5863 | type Output = Result<
|
5085 - | crate::input::JsonUnionsInput,
|
5864 + | crate::input::MalformedRequestBodyInput,
|
5086 5865 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5087 5866 | >;
|
5088 5867 |
|
5089 5868 | fn poll(
|
5090 5869 | self: std::pin::Pin<&mut Self>,
|
5091 5870 | cx: &mut std::task::Context<'_>,
|
5092 5871 | ) -> std::task::Poll<Self::Output> {
|
5093 5872 | let this = self.project();
|
5094 5873 | this.inner.as_mut().poll(cx)
|
5095 5874 | }
|
5096 5875 | }
|
5097 5876 |
|
5098 5877 | impl<B>
|
5099 5878 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5100 5879 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5101 5880 | B,
|
5102 - | > for crate::input::JsonUnionsInput
|
5881 + | > for crate::input::MalformedRequestBodyInput
|
5103 5882 | where
|
5104 5883 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5105 5884 | B: 'static,
|
5106 5885 |
|
5107 5886 | B::Data: Send,
|
5108 5887 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5109 5888 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5110 5889 | {
|
5111 5890 | type Rejection =
|
5112 5891 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5113 - | type Future = JsonUnionsInputFuture;
|
5892 + | type Future = MalformedRequestBodyInputFuture;
|
5114 5893 |
|
5115 5894 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5116 5895 | let fut = async move {
|
5117 5896 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5118 5897 | request.headers(),
|
5119 5898 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5120 5899 | ) {
|
5121 5900 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5122 5901 | }
|
5123 - | crate::protocol_serde::shape_json_unions::de_json_unions_http_request(request).await
|
5902 + | crate::protocol_serde::shape_malformed_request_body::de_malformed_request_body_http_request(request)
|
5903 + | .await
|
5124 5904 | };
|
5125 5905 | use ::futures_util::future::TryFutureExt;
|
5126 5906 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5127 5907 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5128 5908 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5129 5909 | });
|
5130 - | JsonUnionsInputFuture {
|
5910 + | MalformedRequestBodyInputFuture {
|
5131 5911 | inner: Box::pin(fut),
|
5132 5912 | }
|
5133 5913 | }
|
5134 5914 | }
|
5135 5915 | impl
|
5136 5916 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5137 5917 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5138 - | > for crate::output::JsonUnionsOutput
|
5918 + | > for crate::output::MalformedRequestBodyOutput
|
5139 5919 | {
|
5140 5920 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5141 - | match crate::protocol_serde::shape_json_unions::ser_json_unions_http_response(self) {
|
5142 - | Ok(response) => response,
|
5143 - | Err(e) => {
|
5144 - | ::tracing::error!(error = %e, "failed to serialize response");
|
5145 - | ::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))
|
5146 - | }
|
5147 - | }
|
5921 + | match crate::protocol_serde::shape_malformed_request_body::ser_malformed_request_body_http_response(self) {
|
5922 + | Ok(response) => response,
|
5923 + | Err(e) => {
|
5924 + | ::tracing::error!(error = %e, "failed to serialize response");
|
5925 + | ::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))
|
5926 + | }
|
5927 + | }
|
5148 5928 | }
|
5149 5929 | }
|
5150 5930 | impl
|
5151 5931 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5152 5932 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5153 - | > for crate::error::JsonUnionsError
|
5933 + | > for crate::error::MalformedRequestBodyError
|
5154 5934 | {
|
5155 5935 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5156 - | match crate::protocol_serde::shape_json_unions::ser_json_unions_http_error(&self) {
|
5936 + | match crate::protocol_serde::shape_malformed_request_body::ser_malformed_request_body_http_error(&self) {
|
5157 5937 | Ok(mut response) => {
|
5158 - | response.extensions_mut().insert(
|
5159 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5160 - | self.name(),
|
5161 - | ),
|
5162 - | );
|
5938 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
5163 5939 | response
|
5164 - | }
|
5940 + | },
|
5165 5941 | Err(e) => {
|
5166 5942 | ::tracing::error!(error = %e, "failed to serialize response");
|
5167 5943 | ::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))
|
5168 5944 | }
|
5169 5945 | }
|
5170 5946 | }
|
5171 5947 | }
|
5172 5948 |
|
5173 5949 | ::pin_project_lite::pin_project! {
|
5174 5950 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5175 - | /// [`DocumentTypeAsMapValueInput`](crate::input::DocumentTypeAsMapValueInput) using modelled bindings.
|
5176 - | pub struct DocumentTypeAsMapValueInputFuture {
|
5177 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DocumentTypeAsMapValueInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5951 + | /// [`MalformedIntegerInput`](crate::input::MalformedIntegerInput) using modelled bindings.
|
5952 + | pub struct MalformedIntegerInputFuture {
|
5953 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedIntegerInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5178 5954 | }
|
5179 5955 | }
|
5180 5956 |
|
5181 - | impl std::future::Future for DocumentTypeAsMapValueInputFuture {
|
5957 + | impl std::future::Future for MalformedIntegerInputFuture {
|
5182 5958 | type Output = Result<
|
5183 - | crate::input::DocumentTypeAsMapValueInput,
|
5959 + | crate::input::MalformedIntegerInput,
|
5184 5960 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5185 5961 | >;
|
5186 5962 |
|
5187 5963 | fn poll(
|
5188 5964 | self: std::pin::Pin<&mut Self>,
|
5189 5965 | cx: &mut std::task::Context<'_>,
|
5190 5966 | ) -> std::task::Poll<Self::Output> {
|
5191 5967 | let this = self.project();
|
5192 5968 | this.inner.as_mut().poll(cx)
|
5193 5969 | }
|
5194 5970 | }
|
5195 5971 |
|
5196 5972 | impl<B>
|
5197 5973 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5198 5974 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5199 5975 | B,
|
5200 - | > for crate::input::DocumentTypeAsMapValueInput
|
5976 + | > for crate::input::MalformedIntegerInput
|
5201 5977 | where
|
5202 5978 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5203 5979 | B: 'static,
|
5204 5980 |
|
5205 5981 | B::Data: Send,
|
5206 5982 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5207 5983 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5208 5984 | {
|
5209 5985 | type Rejection =
|
5210 5986 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5211 - | type Future = DocumentTypeAsMapValueInputFuture;
|
5987 + | type Future = MalformedIntegerInputFuture;
|
5212 5988 |
|
5213 5989 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5214 5990 | let fut = async move {
|
5215 5991 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5216 5992 | request.headers(),
|
5217 5993 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5218 5994 | ) {
|
5219 5995 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5220 5996 | }
|
5221 - | crate::protocol_serde::shape_document_type_as_map_value::de_document_type_as_map_value_http_request(request)
|
5222 - | .await
|
5997 + | crate::protocol_serde::shape_malformed_integer::de_malformed_integer_http_request(
|
5998 + | request,
|
5999 + | )
|
6000 + | .await
|
5223 6001 | };
|
5224 6002 | use ::futures_util::future::TryFutureExt;
|
5225 6003 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5226 6004 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5227 6005 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5228 6006 | });
|
5229 - | DocumentTypeAsMapValueInputFuture {
|
6007 + | MalformedIntegerInputFuture {
|
5230 6008 | inner: Box::pin(fut),
|
5231 6009 | }
|
5232 6010 | }
|
5233 6011 | }
|
5234 6012 | impl
|
5235 6013 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5236 6014 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5237 - | > for crate::output::DocumentTypeAsMapValueOutput
|
6015 + | > for crate::output::MalformedIntegerOutput
|
5238 6016 | {
|
5239 6017 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5240 - | match crate::protocol_serde::shape_document_type_as_map_value::ser_document_type_as_map_value_http_response(self) {
|
5241 - | Ok(response) => response,
|
5242 - | Err(e) => {
|
5243 - | ::tracing::error!(error = %e, "failed to serialize response");
|
5244 - | ::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))
|
5245 - | }
|
5246 - | }
|
6018 + | match crate::protocol_serde::shape_malformed_integer::ser_malformed_integer_http_response(
|
6019 + | self,
|
6020 + | ) {
|
6021 + | Ok(response) => response,
|
6022 + | Err(e) => {
|
6023 + | ::tracing::error!(error = %e, "failed to serialize response");
|
6024 + | ::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))
|
6025 + | }
|
6026 + | }
|
5247 6027 | }
|
5248 6028 | }
|
5249 6029 | impl
|
5250 6030 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5251 6031 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5252 - | > for crate::error::DocumentTypeAsMapValueError
|
6032 + | > for crate::error::MalformedIntegerError
|
5253 6033 | {
|
5254 6034 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5255 - | match crate::protocol_serde::shape_document_type_as_map_value::ser_document_type_as_map_value_http_error(&self) {
|
6035 + | match crate::protocol_serde::shape_malformed_integer::ser_malformed_integer_http_error(
|
6036 + | &self,
|
6037 + | ) {
|
5256 6038 | Ok(mut response) => {
|
5257 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6039 + | response.extensions_mut().insert(
|
6040 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6041 + | self.name(),
|
6042 + | ),
|
6043 + | );
|
5258 6044 | response
|
5259 - | },
|
6045 + | }
|
5260 6046 | Err(e) => {
|
5261 6047 | ::tracing::error!(error = %e, "failed to serialize response");
|
5262 6048 | ::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))
|
5263 6049 | }
|
5264 6050 | }
|
5265 6051 | }
|
5266 6052 | }
|
5267 6053 |
|
5268 6054 | ::pin_project_lite::pin_project! {
|
5269 6055 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5270 - | /// [`DocumentTypeAsPayloadInput`](crate::input::DocumentTypeAsPayloadInput) using modelled bindings.
|
5271 - | pub struct DocumentTypeAsPayloadInputFuture {
|
5272 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DocumentTypeAsPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6056 + | /// [`MalformedUnionInput`](crate::input::MalformedUnionInput) using modelled bindings.
|
6057 + | pub struct MalformedUnionInputFuture {
|
6058 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedUnionInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5273 6059 | }
|
5274 6060 | }
|
5275 6061 |
|
5276 - | impl std::future::Future for DocumentTypeAsPayloadInputFuture {
|
6062 + | impl std::future::Future for MalformedUnionInputFuture {
|
5277 6063 | type Output = Result<
|
5278 - | crate::input::DocumentTypeAsPayloadInput,
|
6064 + | crate::input::MalformedUnionInput,
|
5279 6065 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5280 6066 | >;
|
5281 6067 |
|
5282 6068 | fn poll(
|
5283 6069 | self: std::pin::Pin<&mut Self>,
|
5284 6070 | cx: &mut std::task::Context<'_>,
|
5285 6071 | ) -> std::task::Poll<Self::Output> {
|
5286 6072 | let this = self.project();
|
5287 6073 | this.inner.as_mut().poll(cx)
|
5288 6074 | }
|
5289 6075 | }
|
5290 6076 |
|
5291 6077 | impl<B>
|
5292 6078 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5293 6079 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5294 6080 | B,
|
5295 - | > for crate::input::DocumentTypeAsPayloadInput
|
6081 + | > for crate::input::MalformedUnionInput
|
5296 6082 | where
|
5297 6083 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5298 6084 | B: 'static,
|
5299 6085 |
|
5300 6086 | B::Data: Send,
|
5301 6087 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5302 6088 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5303 6089 | {
|
5304 6090 | type Rejection =
|
5305 6091 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5306 - | type Future = DocumentTypeAsPayloadInputFuture;
|
6092 + | type Future = MalformedUnionInputFuture;
|
5307 6093 |
|
5308 6094 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5309 6095 | let fut = async move {
|
5310 6096 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5311 6097 | request.headers(),
|
5312 6098 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5313 6099 | ) {
|
5314 6100 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5315 6101 | }
|
5316 - | crate::protocol_serde::shape_document_type_as_payload::de_document_type_as_payload_http_request(request)
|
5317 - | .await
|
6102 + | crate::protocol_serde::shape_malformed_union::de_malformed_union_http_request(request)
|
6103 + | .await
|
5318 6104 | };
|
5319 6105 | use ::futures_util::future::TryFutureExt;
|
5320 6106 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5321 6107 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5322 6108 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5323 6109 | });
|
5324 - | DocumentTypeAsPayloadInputFuture {
|
6110 + | MalformedUnionInputFuture {
|
5325 6111 | inner: Box::pin(fut),
|
5326 6112 | }
|
5327 6113 | }
|
5328 6114 | }
|
5329 6115 | impl
|
5330 6116 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5331 6117 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5332 - | > for crate::output::DocumentTypeAsPayloadOutput
|
6118 + | > for crate::output::MalformedUnionOutput
|
5333 6119 | {
|
5334 6120 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5335 - | match crate::protocol_serde::shape_document_type_as_payload::ser_document_type_as_payload_http_response(self) {
|
5336 - | Ok(response) => response,
|
5337 - | Err(e) => {
|
5338 - | ::tracing::error!(error = %e, "failed to serialize response");
|
5339 - | ::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))
|
5340 - | }
|
5341 - | }
|
6121 + | match crate::protocol_serde::shape_malformed_union::ser_malformed_union_http_response(self)
|
6122 + | {
|
6123 + | Ok(response) => response,
|
6124 + | Err(e) => {
|
6125 + | ::tracing::error!(error = %e, "failed to serialize response");
|
6126 + | ::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))
|
6127 + | }
|
6128 + | }
|
5342 6129 | }
|
5343 6130 | }
|
5344 6131 | impl
|
5345 6132 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5346 6133 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5347 - | > for crate::error::DocumentTypeAsPayloadError
|
6134 + | > for crate::error::MalformedUnionError
|
5348 6135 | {
|
5349 6136 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5350 - | match crate::protocol_serde::shape_document_type_as_payload::ser_document_type_as_payload_http_error(&self) {
|
6137 + | match crate::protocol_serde::shape_malformed_union::ser_malformed_union_http_error(&self) {
|
5351 6138 | Ok(mut response) => {
|
5352 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6139 + | response.extensions_mut().insert(
|
6140 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6141 + | self.name(),
|
6142 + | ),
|
6143 + | );
|
5353 6144 | response
|
5354 - | },
|
6145 + | }
|
5355 6146 | Err(e) => {
|
5356 6147 | ::tracing::error!(error = %e, "failed to serialize response");
|
5357 6148 | ::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))
|
5358 6149 | }
|
5359 6150 | }
|
5360 6151 | }
|
5361 6152 | }
|
5362 6153 |
|
5363 6154 | ::pin_project_lite::pin_project! {
|
5364 6155 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5365 - | /// [`DocumentTypeInput`](crate::input::DocumentTypeInput) using modelled bindings.
|
5366 - | pub struct DocumentTypeInputFuture {
|
5367 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DocumentTypeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6156 + | /// [`MalformedBooleanInput`](crate::input::MalformedBooleanInput) using modelled bindings.
|
6157 + | pub struct MalformedBooleanInputFuture {
|
6158 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedBooleanInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5368 6159 | }
|
5369 6160 | }
|
5370 6161 |
|
5371 - | impl std::future::Future for DocumentTypeInputFuture {
|
6162 + | impl std::future::Future for MalformedBooleanInputFuture {
|
5372 6163 | type Output = Result<
|
5373 - | crate::input::DocumentTypeInput,
|
6164 + | crate::input::MalformedBooleanInput,
|
5374 6165 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5375 6166 | >;
|
5376 6167 |
|
5377 6168 | fn poll(
|
5378 6169 | self: std::pin::Pin<&mut Self>,
|
5379 6170 | cx: &mut std::task::Context<'_>,
|
5380 6171 | ) -> std::task::Poll<Self::Output> {
|
5381 6172 | let this = self.project();
|
5382 6173 | this.inner.as_mut().poll(cx)
|
5383 6174 | }
|
5384 6175 | }
|
5385 6176 |
|
5386 6177 | impl<B>
|
5387 6178 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5388 6179 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5389 6180 | B,
|
5390 - | > for crate::input::DocumentTypeInput
|
6181 + | > for crate::input::MalformedBooleanInput
|
5391 6182 | where
|
5392 6183 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5393 6184 | B: 'static,
|
5394 6185 |
|
5395 6186 | B::Data: Send,
|
5396 6187 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5397 6188 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5398 6189 | {
|
5399 6190 | type Rejection =
|
5400 6191 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5401 - | type Future = DocumentTypeInputFuture;
|
6192 + | type Future = MalformedBooleanInputFuture;
|
5402 6193 |
|
5403 6194 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5404 6195 | let fut = async move {
|
5405 6196 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5406 6197 | request.headers(),
|
5407 6198 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5408 6199 | ) {
|
5409 6200 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5410 6201 | }
|
5411 - | crate::protocol_serde::shape_document_type::de_document_type_http_request(request).await
|
6202 + | crate::protocol_serde::shape_malformed_boolean::de_malformed_boolean_http_request(
|
6203 + | request,
|
6204 + | )
|
6205 + | .await
|
5412 6206 | };
|
5413 6207 | use ::futures_util::future::TryFutureExt;
|
5414 6208 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5415 6209 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5416 6210 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5417 6211 | });
|
5418 - | DocumentTypeInputFuture {
|
6212 + | MalformedBooleanInputFuture {
|
5419 6213 | inner: Box::pin(fut),
|
5420 6214 | }
|
5421 6215 | }
|
5422 6216 | }
|
5423 6217 | impl
|
5424 6218 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5425 6219 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5426 - | > for crate::output::DocumentTypeOutput
|
6220 + | > for crate::output::MalformedBooleanOutput
|
5427 6221 | {
|
5428 6222 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5429 - | match crate::protocol_serde::shape_document_type::ser_document_type_http_response(self) {
|
6223 + | match crate::protocol_serde::shape_malformed_boolean::ser_malformed_boolean_http_response(
|
6224 + | self,
|
6225 + | ) {
|
5430 6226 | Ok(response) => response,
|
5431 6227 | Err(e) => {
|
5432 6228 | ::tracing::error!(error = %e, "failed to serialize response");
|
5433 6229 | ::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))
|
5434 6230 | }
|
5435 6231 | }
|
5436 6232 | }
|
5437 6233 | }
|
5438 6234 | impl
|
5439 6235 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5440 6236 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5441 - | > for crate::error::DocumentTypeError
|
6237 + | > for crate::error::MalformedBooleanError
|
5442 6238 | {
|
5443 6239 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5444 - | match crate::protocol_serde::shape_document_type::ser_document_type_http_error(&self) {
|
6240 + | match crate::protocol_serde::shape_malformed_boolean::ser_malformed_boolean_http_error(
|
6241 + | &self,
|
6242 + | ) {
|
5445 6243 | Ok(mut response) => {
|
5446 6244 | response.extensions_mut().insert(
|
5447 6245 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5448 6246 | self.name(),
|
5449 6247 | ),
|
5450 6248 | );
|
5451 6249 | response
|
5452 6250 | }
|
5453 6251 | Err(e) => {
|
5454 6252 | ::tracing::error!(error = %e, "failed to serialize response");
|
5455 6253 | ::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))
|
5456 6254 | }
|
5457 6255 | }
|
5458 6256 | }
|
5459 6257 | }
|
5460 6258 |
|
5461 6259 | ::pin_project_lite::pin_project! {
|
5462 6260 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5463 - | /// [`JsonBlobsInput`](crate::input::JsonBlobsInput) using modelled bindings.
|
5464 - | pub struct JsonBlobsInputFuture {
|
5465 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonBlobsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6261 + | /// [`MalformedListInput`](crate::input::MalformedListInput) using modelled bindings.
|
6262 + | pub struct MalformedListInputFuture {
|
6263 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedListInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5466 6264 | }
|
5467 6265 | }
|
5468 6266 |
|
5469 - | impl std::future::Future for JsonBlobsInputFuture {
|
6267 + | impl std::future::Future for MalformedListInputFuture {
|
5470 6268 | type Output = Result<
|
5471 - | crate::input::JsonBlobsInput,
|
6269 + | crate::input::MalformedListInput,
|
5472 6270 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5473 6271 | >;
|
5474 6272 |
|
5475 6273 | fn poll(
|
5476 6274 | self: std::pin::Pin<&mut Self>,
|
5477 6275 | cx: &mut std::task::Context<'_>,
|
5478 6276 | ) -> std::task::Poll<Self::Output> {
|
5479 6277 | let this = self.project();
|
5480 6278 | this.inner.as_mut().poll(cx)
|
5481 6279 | }
|
5482 6280 | }
|
5483 6281 |
|
5484 6282 | impl<B>
|
5485 6283 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5486 6284 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5487 6285 | B,
|
5488 - | > for crate::input::JsonBlobsInput
|
6286 + | > for crate::input::MalformedListInput
|
5489 6287 | where
|
5490 6288 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5491 6289 | B: 'static,
|
5492 6290 |
|
5493 6291 | B::Data: Send,
|
5494 6292 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5495 6293 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5496 6294 | {
|
5497 6295 | type Rejection =
|
5498 6296 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5499 - | type Future = JsonBlobsInputFuture;
|
6297 + | type Future = MalformedListInputFuture;
|
5500 6298 |
|
5501 6299 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5502 6300 | let fut = async move {
|
5503 6301 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5504 6302 | request.headers(),
|
5505 6303 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5506 6304 | ) {
|
5507 6305 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5508 6306 | }
|
5509 - | crate::protocol_serde::shape_json_blobs::de_json_blobs_http_request(request).await
|
6307 + | crate::protocol_serde::shape_malformed_list::de_malformed_list_http_request(request)
|
6308 + | .await
|
5510 6309 | };
|
5511 6310 | use ::futures_util::future::TryFutureExt;
|
5512 6311 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5513 6312 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5514 6313 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5515 6314 | });
|
5516 - | JsonBlobsInputFuture {
|
6315 + | MalformedListInputFuture {
|
5517 6316 | inner: Box::pin(fut),
|
5518 6317 | }
|
5519 6318 | }
|
5520 6319 | }
|
5521 6320 | impl
|
5522 6321 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5523 6322 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5524 - | > for crate::output::JsonBlobsOutput
|
6323 + | > for crate::output::MalformedListOutput
|
5525 6324 | {
|
5526 6325 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5527 - | match crate::protocol_serde::shape_json_blobs::ser_json_blobs_http_response(self) {
|
6326 + | match crate::protocol_serde::shape_malformed_list::ser_malformed_list_http_response(self) {
|
5528 6327 | Ok(response) => response,
|
5529 6328 | Err(e) => {
|
5530 6329 | ::tracing::error!(error = %e, "failed to serialize response");
|
5531 6330 | ::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))
|
5532 6331 | }
|
5533 6332 | }
|
5534 6333 | }
|
5535 6334 | }
|
5536 6335 | impl
|
5537 6336 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5538 6337 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5539 - | > for crate::error::JsonBlobsError
|
6338 + | > for crate::error::MalformedListError
|
5540 6339 | {
|
5541 6340 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5542 - | match crate::protocol_serde::shape_json_blobs::ser_json_blobs_http_error(&self) {
|
6341 + | match crate::protocol_serde::shape_malformed_list::ser_malformed_list_http_error(&self) {
|
5543 6342 | Ok(mut response) => {
|
5544 6343 | response.extensions_mut().insert(
|
5545 6344 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5546 6345 | self.name(),
|
5547 6346 | ),
|
5548 6347 | );
|
5549 6348 | response
|
5550 6349 | }
|
5551 6350 | Err(e) => {
|
5552 6351 | ::tracing::error!(error = %e, "failed to serialize response");
|
5553 6352 | ::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))
|
5554 6353 | }
|
5555 6354 | }
|
5556 6355 | }
|
5557 6356 | }
|
5558 6357 |
|
5559 6358 | ::pin_project_lite::pin_project! {
|
5560 6359 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5561 - | /// [`SparseJsonMapsInput`](crate::input::SparseJsonMapsInput) using modelled bindings.
|
5562 - | pub struct SparseJsonMapsInputFuture {
|
5563 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::SparseJsonMapsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6360 + | /// [`MalformedMapInput`](crate::input::MalformedMapInput) using modelled bindings.
|
6361 + | pub struct MalformedMapInputFuture {
|
6362 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedMapInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5564 6363 | }
|
5565 6364 | }
|
5566 6365 |
|
5567 - | impl std::future::Future for SparseJsonMapsInputFuture {
|
6366 + | impl std::future::Future for MalformedMapInputFuture {
|
5568 6367 | type Output = Result<
|
5569 - | crate::input::SparseJsonMapsInput,
|
6368 + | crate::input::MalformedMapInput,
|
5570 6369 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5571 6370 | >;
|
5572 6371 |
|
5573 6372 | fn poll(
|
5574 6373 | self: std::pin::Pin<&mut Self>,
|
5575 6374 | cx: &mut std::task::Context<'_>,
|
5576 6375 | ) -> std::task::Poll<Self::Output> {
|
5577 6376 | let this = self.project();
|
5578 6377 | this.inner.as_mut().poll(cx)
|
5579 6378 | }
|
5580 6379 | }
|
5581 6380 |
|
5582 6381 | impl<B>
|
5583 6382 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5584 6383 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5585 6384 | B,
|
5586 - | > for crate::input::SparseJsonMapsInput
|
6385 + | > for crate::input::MalformedMapInput
|
5587 6386 | where
|
5588 6387 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5589 6388 | B: 'static,
|
5590 6389 |
|
5591 6390 | B::Data: Send,
|
5592 6391 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5593 6392 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5594 6393 | {
|
5595 6394 | type Rejection =
|
5596 6395 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5597 - | type Future = SparseJsonMapsInputFuture;
|
6396 + | type Future = MalformedMapInputFuture;
|
5598 6397 |
|
5599 6398 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5600 6399 | let fut = async move {
|
5601 6400 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5602 6401 | request.headers(),
|
5603 6402 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5604 6403 | ) {
|
5605 6404 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5606 6405 | }
|
5607 - | crate::protocol_serde::shape_sparse_json_maps::de_sparse_json_maps_http_request(request)
|
5608 - | .await
|
6406 + | crate::protocol_serde::shape_malformed_map::de_malformed_map_http_request(request).await
|
5609 6407 | };
|
5610 6408 | use ::futures_util::future::TryFutureExt;
|
5611 6409 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5612 6410 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5613 6411 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5614 6412 | });
|
5615 - | SparseJsonMapsInputFuture {
|
6413 + | MalformedMapInputFuture {
|
5616 6414 | inner: Box::pin(fut),
|
5617 6415 | }
|
5618 6416 | }
|
5619 6417 | }
|
5620 6418 | impl
|
5621 6419 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5622 6420 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5623 - | > for crate::output::SparseJsonMapsOutput
|
6421 + | > for crate::output::MalformedMapOutput
|
5624 6422 | {
|
5625 6423 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5626 - | match crate::protocol_serde::shape_sparse_json_maps::ser_sparse_json_maps_http_response(
|
5627 - | self,
|
5628 - | ) {
|
6424 + | match crate::protocol_serde::shape_malformed_map::ser_malformed_map_http_response(self) {
|
5629 6425 | Ok(response) => response,
|
5630 6426 | Err(e) => {
|
5631 6427 | ::tracing::error!(error = %e, "failed to serialize response");
|
5632 6428 | ::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))
|
5633 6429 | }
|
5634 6430 | }
|
5635 6431 | }
|
5636 6432 | }
|
5637 6433 | impl
|
5638 6434 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5639 6435 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5640 - | > for crate::error::SparseJsonMapsError
|
6436 + | > for crate::error::MalformedMapError
|
5641 6437 | {
|
5642 6438 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5643 - | match crate::protocol_serde::shape_sparse_json_maps::ser_sparse_json_maps_http_error(&self)
|
5644 - | {
|
6439 + | match crate::protocol_serde::shape_malformed_map::ser_malformed_map_http_error(&self) {
|
5645 6440 | Ok(mut response) => {
|
5646 6441 | response.extensions_mut().insert(
|
5647 6442 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5648 6443 | self.name(),
|
5649 6444 | ),
|
5650 6445 | );
|
5651 6446 | response
|
5652 6447 | }
|
5653 6448 | Err(e) => {
|
5654 6449 | ::tracing::error!(error = %e, "failed to serialize response");
|
5655 6450 | ::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))
|
5656 6451 | }
|
5657 6452 | }
|
5658 6453 | }
|
5659 6454 | }
|
5660 6455 |
|
5661 6456 | ::pin_project_lite::pin_project! {
|
5662 6457 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5663 - | /// [`JsonMapsInput`](crate::input::JsonMapsInput) using modelled bindings.
|
5664 - | pub struct JsonMapsInputFuture {
|
5665 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonMapsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6458 + | /// [`MalformedBlobInput`](crate::input::MalformedBlobInput) using modelled bindings.
|
6459 + | pub struct MalformedBlobInputFuture {
|
6460 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedBlobInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5666 6461 | }
|
5667 6462 | }
|
5668 6463 |
|
5669 - | impl std::future::Future for JsonMapsInputFuture {
|
6464 + | impl std::future::Future for MalformedBlobInputFuture {
|
5670 6465 | type Output = Result<
|
5671 - | crate::input::JsonMapsInput,
|
6466 + | crate::input::MalformedBlobInput,
|
5672 6467 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5673 6468 | >;
|
5674 6469 |
|
5675 6470 | fn poll(
|
5676 6471 | self: std::pin::Pin<&mut Self>,
|
5677 6472 | cx: &mut std::task::Context<'_>,
|
5678 6473 | ) -> std::task::Poll<Self::Output> {
|
5679 6474 | let this = self.project();
|
5680 6475 | this.inner.as_mut().poll(cx)
|
5681 6476 | }
|
5682 6477 | }
|
5683 6478 |
|
5684 6479 | impl<B>
|
5685 6480 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5686 6481 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5687 6482 | B,
|
5688 - | > for crate::input::JsonMapsInput
|
6483 + | > for crate::input::MalformedBlobInput
|
5689 6484 | where
|
5690 6485 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5691 6486 | B: 'static,
|
5692 6487 |
|
5693 6488 | B::Data: Send,
|
5694 6489 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5695 6490 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5696 6491 | {
|
5697 6492 | type Rejection =
|
5698 6493 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5699 - | type Future = JsonMapsInputFuture;
|
6494 + | type Future = MalformedBlobInputFuture;
|
5700 6495 |
|
5701 6496 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5702 6497 | let fut = async move {
|
5703 6498 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5704 6499 | request.headers(),
|
5705 6500 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5706 6501 | ) {
|
5707 6502 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5708 6503 | }
|
5709 - | crate::protocol_serde::shape_json_maps::de_json_maps_http_request(request).await
|
6504 + | crate::protocol_serde::shape_malformed_blob::de_malformed_blob_http_request(request)
|
6505 + | .await
|
5710 6506 | };
|
5711 6507 | use ::futures_util::future::TryFutureExt;
|
5712 6508 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5713 6509 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5714 6510 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5715 6511 | });
|
5716 - | JsonMapsInputFuture {
|
6512 + | MalformedBlobInputFuture {
|
5717 6513 | inner: Box::pin(fut),
|
5718 6514 | }
|
5719 6515 | }
|
5720 6516 | }
|
5721 6517 | impl
|
5722 6518 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5723 6519 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5724 - | > for crate::output::JsonMapsOutput
|
6520 + | > for crate::output::MalformedBlobOutput
|
5725 6521 | {
|
5726 6522 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5727 - | match crate::protocol_serde::shape_json_maps::ser_json_maps_http_response(self) {
|
6523 + | match crate::protocol_serde::shape_malformed_blob::ser_malformed_blob_http_response(self) {
|
5728 6524 | Ok(response) => response,
|
5729 6525 | Err(e) => {
|
5730 6526 | ::tracing::error!(error = %e, "failed to serialize response");
|
5731 6527 | ::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))
|
5732 6528 | }
|
5733 6529 | }
|
5734 6530 | }
|
5735 6531 | }
|
5736 6532 | impl
|
5737 6533 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5738 6534 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5739 - | > for crate::error::JsonMapsError
|
6535 + | > for crate::error::MalformedBlobError
|
5740 6536 | {
|
5741 6537 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5742 - | match crate::protocol_serde::shape_json_maps::ser_json_maps_http_error(&self) {
|
6538 + | match crate::protocol_serde::shape_malformed_blob::ser_malformed_blob_http_error(&self) {
|
5743 6539 | Ok(mut response) => {
|
5744 6540 | response.extensions_mut().insert(
|
5745 6541 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5746 6542 | self.name(),
|
5747 6543 | ),
|
5748 6544 | );
|
5749 6545 | response
|
5750 6546 | }
|
5751 6547 | Err(e) => {
|
5752 6548 | ::tracing::error!(error = %e, "failed to serialize response");
|
5753 6549 | ::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))
|
5754 6550 | }
|
5755 6551 | }
|
5756 6552 | }
|
5757 6553 | }
|
5758 6554 |
|
5759 6555 | ::pin_project_lite::pin_project! {
|
5760 6556 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5761 - | /// [`SparseJsonListsInput`](crate::input::SparseJsonListsInput) using modelled bindings.
|
5762 - | pub struct SparseJsonListsInputFuture {
|
5763 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::SparseJsonListsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6557 + | /// [`MalformedByteInput`](crate::input::MalformedByteInput) using modelled bindings.
|
6558 + | pub struct MalformedByteInputFuture {
|
6559 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedByteInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5764 6560 | }
|
5765 6561 | }
|
5766 6562 |
|
5767 - | impl std::future::Future for SparseJsonListsInputFuture {
|
6563 + | impl std::future::Future for MalformedByteInputFuture {
|
5768 6564 | type Output = Result<
|
5769 - | crate::input::SparseJsonListsInput,
|
6565 + | crate::input::MalformedByteInput,
|
5770 6566 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5771 6567 | >;
|
5772 6568 |
|
5773 6569 | fn poll(
|
5774 6570 | self: std::pin::Pin<&mut Self>,
|
5775 6571 | cx: &mut std::task::Context<'_>,
|
5776 6572 | ) -> std::task::Poll<Self::Output> {
|
5777 6573 | let this = self.project();
|
5778 6574 | this.inner.as_mut().poll(cx)
|
5779 6575 | }
|
5780 6576 | }
|
5781 6577 |
|
5782 6578 | impl<B>
|
5783 6579 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5784 6580 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5785 6581 | B,
|
5786 - | > for crate::input::SparseJsonListsInput
|
6582 + | > for crate::input::MalformedByteInput
|
5787 6583 | where
|
5788 6584 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5789 6585 | B: 'static,
|
5790 6586 |
|
5791 6587 | B::Data: Send,
|
5792 6588 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5793 6589 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5794 6590 | {
|
5795 6591 | type Rejection =
|
5796 6592 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5797 - | type Future = SparseJsonListsInputFuture;
|
6593 + | type Future = MalformedByteInputFuture;
|
5798 6594 |
|
5799 6595 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5800 6596 | let fut = async move {
|
5801 6597 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5802 6598 | request.headers(),
|
5803 6599 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5804 6600 | ) {
|
5805 6601 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5806 6602 | }
|
5807 - | crate::protocol_serde::shape_sparse_json_lists::de_sparse_json_lists_http_request(
|
5808 - | request,
|
5809 - | )
|
5810 - | .await
|
6603 + | crate::protocol_serde::shape_malformed_byte::de_malformed_byte_http_request(request)
|
6604 + | .await
|
5811 6605 | };
|
5812 6606 | use ::futures_util::future::TryFutureExt;
|
5813 6607 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5814 6608 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5815 6609 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5816 6610 | });
|
5817 - | SparseJsonListsInputFuture {
|
6611 + | MalformedByteInputFuture {
|
5818 6612 | inner: Box::pin(fut),
|
5819 6613 | }
|
5820 6614 | }
|
5821 6615 | }
|
5822 6616 | impl
|
5823 6617 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5824 6618 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5825 - | > for crate::output::SparseJsonListsOutput
|
6619 + | > for crate::output::MalformedByteOutput
|
5826 6620 | {
|
5827 6621 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5828 - | match crate::protocol_serde::shape_sparse_json_lists::ser_sparse_json_lists_http_response(
|
5829 - | self,
|
5830 - | ) {
|
6622 + | match crate::protocol_serde::shape_malformed_byte::ser_malformed_byte_http_response(self) {
|
5831 6623 | Ok(response) => response,
|
5832 6624 | Err(e) => {
|
5833 6625 | ::tracing::error!(error = %e, "failed to serialize response");
|
5834 6626 | ::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))
|
5835 6627 | }
|
5836 6628 | }
|
5837 6629 | }
|
5838 6630 | }
|
5839 6631 | impl
|
5840 6632 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5841 6633 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5842 - | > for crate::error::SparseJsonListsError
|
6634 + | > for crate::error::MalformedByteError
|
5843 6635 | {
|
5844 6636 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5845 - | match crate::protocol_serde::shape_sparse_json_lists::ser_sparse_json_lists_http_error(
|
5846 - | &self,
|
5847 - | ) {
|
6637 + | match crate::protocol_serde::shape_malformed_byte::ser_malformed_byte_http_error(&self) {
|
5848 6638 | Ok(mut response) => {
|
5849 6639 | response.extensions_mut().insert(
|
5850 6640 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5851 6641 | self.name(),
|
5852 6642 | ),
|
5853 6643 | );
|
5854 6644 | response
|
5855 6645 | }
|
5856 6646 | Err(e) => {
|
5857 6647 | ::tracing::error!(error = %e, "failed to serialize response");
|
5858 6648 | ::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))
|
5859 6649 | }
|
5860 6650 | }
|
5861 6651 | }
|
5862 6652 | }
|
5863 6653 |
|
5864 6654 | ::pin_project_lite::pin_project! {
|
5865 6655 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5866 - | /// [`JsonListsInput`](crate::input::JsonListsInput) using modelled bindings.
|
5867 - | pub struct JsonListsInputFuture {
|
5868 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonListsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6656 + | /// [`MalformedShortInput`](crate::input::MalformedShortInput) using modelled bindings.
|
6657 + | pub struct MalformedShortInputFuture {
|
6658 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedShortInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5869 6659 | }
|
5870 6660 | }
|
5871 6661 |
|
5872 - | impl std::future::Future for JsonListsInputFuture {
|
6662 + | impl std::future::Future for MalformedShortInputFuture {
|
5873 6663 | type Output = Result<
|
5874 - | crate::input::JsonListsInput,
|
6664 + | crate::input::MalformedShortInput,
|
5875 6665 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5876 6666 | >;
|
5877 6667 |
|
5878 6668 | fn poll(
|
5879 6669 | self: std::pin::Pin<&mut Self>,
|
5880 6670 | cx: &mut std::task::Context<'_>,
|
5881 6671 | ) -> std::task::Poll<Self::Output> {
|
5882 6672 | let this = self.project();
|
5883 6673 | this.inner.as_mut().poll(cx)
|
5884 6674 | }
|
5885 6675 | }
|
5886 6676 |
|
5887 6677 | impl<B>
|
5888 6678 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5889 6679 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5890 6680 | B,
|
5891 - | > for crate::input::JsonListsInput
|
6681 + | > for crate::input::MalformedShortInput
|
5892 6682 | where
|
5893 6683 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5894 6684 | B: 'static,
|
5895 6685 |
|
5896 6686 | B::Data: Send,
|
5897 6687 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5898 6688 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5899 6689 | {
|
5900 6690 | type Rejection =
|
5901 6691 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
5902 - | type Future = JsonListsInputFuture;
|
6692 + | type Future = MalformedShortInputFuture;
|
5903 6693 |
|
5904 6694 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
5905 6695 | let fut = async move {
|
5906 6696 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
5907 6697 | request.headers(),
|
5908 6698 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
5909 6699 | ) {
|
5910 6700 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
5911 6701 | }
|
5912 - | crate::protocol_serde::shape_json_lists::de_json_lists_http_request(request).await
|
6702 + | crate::protocol_serde::shape_malformed_short::de_malformed_short_http_request(request)
|
6703 + | .await
|
5913 6704 | };
|
5914 6705 | use ::futures_util::future::TryFutureExt;
|
5915 6706 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
5916 6707 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
5917 6708 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
5918 6709 | });
|
5919 - | JsonListsInputFuture {
|
6710 + | MalformedShortInputFuture {
|
5920 6711 | inner: Box::pin(fut),
|
5921 6712 | }
|
5922 6713 | }
|
5923 6714 | }
|
5924 6715 | impl
|
5925 6716 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5926 6717 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5927 - | > for crate::output::JsonListsOutput
|
6718 + | > for crate::output::MalformedShortOutput
|
5928 6719 | {
|
5929 6720 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5930 - | match crate::protocol_serde::shape_json_lists::ser_json_lists_http_response(self) {
|
6721 + | match crate::protocol_serde::shape_malformed_short::ser_malformed_short_http_response(self)
|
6722 + | {
|
5931 6723 | Ok(response) => response,
|
5932 6724 | Err(e) => {
|
5933 6725 | ::tracing::error!(error = %e, "failed to serialize response");
|
5934 6726 | ::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))
|
5935 6727 | }
|
5936 6728 | }
|
5937 6729 | }
|
5938 6730 | }
|
5939 6731 | impl
|
5940 6732 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
5941 6733 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5942 - | > for crate::error::JsonListsError
|
6734 + | > for crate::error::MalformedShortError
|
5943 6735 | {
|
5944 6736 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
5945 - | match crate::protocol_serde::shape_json_lists::ser_json_lists_http_error(&self) {
|
6737 + | match crate::protocol_serde::shape_malformed_short::ser_malformed_short_http_error(&self) {
|
5946 6738 | Ok(mut response) => {
|
5947 6739 | response.extensions_mut().insert(
|
5948 6740 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
5949 6741 | self.name(),
|
5950 6742 | ),
|
5951 6743 | );
|
5952 6744 | response
|
5953 6745 | }
|
5954 6746 | Err(e) => {
|
5955 6747 | ::tracing::error!(error = %e, "failed to serialize response");
|
5956 6748 | ::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))
|
5957 6749 | }
|
5958 6750 | }
|
5959 6751 | }
|
5960 6752 | }
|
5961 6753 |
|
5962 6754 | ::pin_project_lite::pin_project! {
|
5963 6755 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
5964 - | /// [`RecursiveShapesInput`](crate::input::RecursiveShapesInput) using modelled bindings.
|
5965 - | pub struct RecursiveShapesInputFuture {
|
5966 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::RecursiveShapesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6756 + | /// [`MalformedLongInput`](crate::input::MalformedLongInput) using modelled bindings.
|
6757 + | pub struct MalformedLongInputFuture {
|
6758 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedLongInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
5967 6759 | }
|
5968 6760 | }
|
5969 6761 |
|
5970 - | impl std::future::Future for RecursiveShapesInputFuture {
|
6762 + | impl std::future::Future for MalformedLongInputFuture {
|
5971 6763 | type Output = Result<
|
5972 - | crate::input::RecursiveShapesInput,
|
6764 + | crate::input::MalformedLongInput,
|
5973 6765 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
5974 6766 | >;
|
5975 6767 |
|
5976 6768 | fn poll(
|
5977 6769 | self: std::pin::Pin<&mut Self>,
|
5978 6770 | cx: &mut std::task::Context<'_>,
|
5979 6771 | ) -> std::task::Poll<Self::Output> {
|
5980 6772 | let this = self.project();
|
5981 6773 | this.inner.as_mut().poll(cx)
|
5982 6774 | }
|
5983 6775 | }
|
5984 6776 |
|
5985 6777 | impl<B>
|
5986 6778 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
5987 6779 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
5988 6780 | B,
|
5989 - | > for crate::input::RecursiveShapesInput
|
6781 + | > for crate::input::MalformedLongInput
|
5990 6782 | where
|
5991 6783 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
5992 6784 | B: 'static,
|
5993 6785 |
|
5994 6786 | B::Data: Send,
|
5995 6787 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
5996 6788 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
5997 6789 | {
|
5998 6790 | type Rejection =
|
5999 6791 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6000 - | type Future = RecursiveShapesInputFuture;
|
6792 + | type Future = MalformedLongInputFuture;
|
6001 6793 |
|
6002 6794 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6003 6795 | let fut = async move {
|
6004 6796 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6005 6797 | request.headers(),
|
6006 6798 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6007 6799 | ) {
|
6008 6800 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6009 6801 | }
|
6010 - | crate::protocol_serde::shape_recursive_shapes::de_recursive_shapes_http_request(request)
|
6802 + | crate::protocol_serde::shape_malformed_long::de_malformed_long_http_request(request)
|
6011 6803 | .await
|
6012 6804 | };
|
6013 6805 | use ::futures_util::future::TryFutureExt;
|
6014 6806 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6015 6807 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6016 6808 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6017 6809 | });
|
6018 - | RecursiveShapesInputFuture {
|
6810 + | MalformedLongInputFuture {
|
6019 6811 | inner: Box::pin(fut),
|
6020 6812 | }
|
6021 6813 | }
|
6022 6814 | }
|
6023 6815 | impl
|
6024 6816 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6025 6817 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6026 - | > for crate::output::RecursiveShapesOutput
|
6818 + | > for crate::output::MalformedLongOutput
|
6027 6819 | {
|
6028 6820 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6029 - | match crate::protocol_serde::shape_recursive_shapes::ser_recursive_shapes_http_response(
|
6030 - | self,
|
6031 - | ) {
|
6821 + | match crate::protocol_serde::shape_malformed_long::ser_malformed_long_http_response(self) {
|
6032 6822 | Ok(response) => response,
|
6033 6823 | Err(e) => {
|
6034 6824 | ::tracing::error!(error = %e, "failed to serialize response");
|
6035 6825 | ::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))
|
6036 6826 | }
|
6037 6827 | }
|
6038 6828 | }
|
6039 6829 | }
|
6040 6830 | impl
|
6041 6831 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6042 6832 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6043 - | > for crate::error::RecursiveShapesError
|
6833 + | > for crate::error::MalformedLongError
|
6044 6834 | {
|
6045 6835 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6046 - | match crate::protocol_serde::shape_recursive_shapes::ser_recursive_shapes_http_error(&self)
|
6047 - | {
|
6836 + | match crate::protocol_serde::shape_malformed_long::ser_malformed_long_http_error(&self) {
|
6048 6837 | Ok(mut response) => {
|
6049 6838 | response.extensions_mut().insert(
|
6050 6839 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6051 6840 | self.name(),
|
6052 6841 | ),
|
6053 6842 | );
|
6054 6843 | response
|
6055 6844 | }
|
6056 6845 | Err(e) => {
|
6057 6846 | ::tracing::error!(error = %e, "failed to serialize response");
|
6058 6847 | ::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))
|
6059 6848 | }
|
6060 6849 | }
|
6061 6850 | }
|
6062 6851 | }
|
6063 6852 |
|
6064 6853 | ::pin_project_lite::pin_project! {
|
6065 6854 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6066 - | /// [`JsonIntEnumsInput`](crate::input::JsonIntEnumsInput) using modelled bindings.
|
6067 - | pub struct JsonIntEnumsInputFuture {
|
6068 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonIntEnumsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6855 + | /// [`MalformedFloatInput`](crate::input::MalformedFloatInput) using modelled bindings.
|
6856 + | pub struct MalformedFloatInputFuture {
|
6857 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedFloatInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6069 6858 | }
|
6070 6859 | }
|
6071 6860 |
|
6072 - | impl std::future::Future for JsonIntEnumsInputFuture {
|
6861 + | impl std::future::Future for MalformedFloatInputFuture {
|
6073 6862 | type Output = Result<
|
6074 - | crate::input::JsonIntEnumsInput,
|
6863 + | crate::input::MalformedFloatInput,
|
6075 6864 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6076 6865 | >;
|
6077 6866 |
|
6078 6867 | fn poll(
|
6079 6868 | self: std::pin::Pin<&mut Self>,
|
6080 6869 | cx: &mut std::task::Context<'_>,
|
6081 6870 | ) -> std::task::Poll<Self::Output> {
|
6082 6871 | let this = self.project();
|
6083 6872 | this.inner.as_mut().poll(cx)
|
6084 6873 | }
|
6085 6874 | }
|
6086 6875 |
|
6087 6876 | impl<B>
|
6088 6877 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6089 6878 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6090 6879 | B,
|
6091 - | > for crate::input::JsonIntEnumsInput
|
6880 + | > for crate::input::MalformedFloatInput
|
6092 6881 | where
|
6093 6882 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6094 6883 | B: 'static,
|
6095 6884 |
|
6096 6885 | B::Data: Send,
|
6097 6886 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6098 6887 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6099 6888 | {
|
6100 6889 | type Rejection =
|
6101 6890 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6102 - | type Future = JsonIntEnumsInputFuture;
|
6891 + | type Future = MalformedFloatInputFuture;
|
6103 6892 |
|
6104 6893 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6105 6894 | let fut = async move {
|
6106 6895 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6107 6896 | request.headers(),
|
6108 6897 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6109 6898 | ) {
|
6110 6899 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6111 6900 | }
|
6112 - | crate::protocol_serde::shape_json_int_enums::de_json_int_enums_http_request(request)
|
6901 + | crate::protocol_serde::shape_malformed_float::de_malformed_float_http_request(request)
|
6113 6902 | .await
|
6114 6903 | };
|
6115 6904 | use ::futures_util::future::TryFutureExt;
|
6116 6905 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6117 6906 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6118 6907 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6119 6908 | });
|
6120 - | JsonIntEnumsInputFuture {
|
6909 + | MalformedFloatInputFuture {
|
6121 6910 | inner: Box::pin(fut),
|
6122 6911 | }
|
6123 6912 | }
|
6124 6913 | }
|
6125 6914 | impl
|
6126 6915 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6127 6916 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6128 - | > for crate::output::JsonIntEnumsOutput
|
6917 + | > for crate::output::MalformedFloatOutput
|
6129 6918 | {
|
6130 6919 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6131 - | match crate::protocol_serde::shape_json_int_enums::ser_json_int_enums_http_response(self) {
|
6920 + | match crate::protocol_serde::shape_malformed_float::ser_malformed_float_http_response(self)
|
6921 + | {
|
6132 6922 | Ok(response) => response,
|
6133 6923 | Err(e) => {
|
6134 6924 | ::tracing::error!(error = %e, "failed to serialize response");
|
6135 6925 | ::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))
|
6136 6926 | }
|
6137 6927 | }
|
6138 6928 | }
|
6139 6929 | }
|
6140 6930 | impl
|
6141 6931 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6142 6932 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6143 - | > for crate::error::JsonIntEnumsError
|
6933 + | > for crate::error::MalformedFloatError
|
6144 6934 | {
|
6145 6935 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6146 - | match crate::protocol_serde::shape_json_int_enums::ser_json_int_enums_http_error(&self) {
|
6936 + | match crate::protocol_serde::shape_malformed_float::ser_malformed_float_http_error(&self) {
|
6147 6937 | Ok(mut response) => {
|
6148 6938 | response.extensions_mut().insert(
|
6149 6939 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6150 6940 | self.name(),
|
6151 6941 | ),
|
6152 6942 | );
|
6153 6943 | response
|
6154 6944 | }
|
6155 6945 | Err(e) => {
|
6156 6946 | ::tracing::error!(error = %e, "failed to serialize response");
|
6157 6947 | ::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))
|
6158 6948 | }
|
6159 6949 | }
|
6160 6950 | }
|
6161 6951 | }
|
6162 6952 |
|
6163 6953 | ::pin_project_lite::pin_project! {
|
6164 6954 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6165 - | /// [`JsonEnumsInput`](crate::input::JsonEnumsInput) using modelled bindings.
|
6166 - | pub struct JsonEnumsInputFuture {
|
6167 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonEnumsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6955 + | /// [`MalformedDoubleInput`](crate::input::MalformedDoubleInput) using modelled bindings.
|
6956 + | pub struct MalformedDoubleInputFuture {
|
6957 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedDoubleInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6168 6958 | }
|
6169 6959 | }
|
6170 6960 |
|
6171 - | impl std::future::Future for JsonEnumsInputFuture {
|
6961 + | impl std::future::Future for MalformedDoubleInputFuture {
|
6172 6962 | type Output = Result<
|
6173 - | crate::input::JsonEnumsInput,
|
6963 + | crate::input::MalformedDoubleInput,
|
6174 6964 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6175 6965 | >;
|
6176 6966 |
|
6177 6967 | fn poll(
|
6178 6968 | self: std::pin::Pin<&mut Self>,
|
6179 6969 | cx: &mut std::task::Context<'_>,
|
6180 6970 | ) -> std::task::Poll<Self::Output> {
|
6181 6971 | let this = self.project();
|
6182 6972 | this.inner.as_mut().poll(cx)
|
6183 6973 | }
|
6184 6974 | }
|
6185 6975 |
|
6186 6976 | impl<B>
|
6187 6977 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6188 6978 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6189 6979 | B,
|
6190 - | > for crate::input::JsonEnumsInput
|
6980 + | > for crate::input::MalformedDoubleInput
|
6191 6981 | where
|
6192 6982 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6193 6983 | B: 'static,
|
6194 6984 |
|
6195 6985 | B::Data: Send,
|
6196 6986 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6197 6987 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6198 6988 | {
|
6199 6989 | type Rejection =
|
6200 6990 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6201 - | type Future = JsonEnumsInputFuture;
|
6991 + | type Future = MalformedDoubleInputFuture;
|
6202 6992 |
|
6203 6993 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6204 6994 | let fut = async move {
|
6205 6995 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6206 6996 | request.headers(),
|
6207 6997 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6208 6998 | ) {
|
6209 6999 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6210 7000 | }
|
6211 - | crate::protocol_serde::shape_json_enums::de_json_enums_http_request(request).await
|
7001 + | crate::protocol_serde::shape_malformed_double::de_malformed_double_http_request(request)
|
7002 + | .await
|
6212 7003 | };
|
6213 7004 | use ::futures_util::future::TryFutureExt;
|
6214 7005 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6215 7006 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6216 7007 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6217 7008 | });
|
6218 - | JsonEnumsInputFuture {
|
7009 + | MalformedDoubleInputFuture {
|
6219 7010 | inner: Box::pin(fut),
|
6220 7011 | }
|
6221 7012 | }
|
6222 7013 | }
|
6223 7014 | impl
|
6224 7015 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6225 7016 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6226 - | > for crate::output::JsonEnumsOutput
|
7017 + | > for crate::output::MalformedDoubleOutput
|
6227 7018 | {
|
6228 7019 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6229 - | match crate::protocol_serde::shape_json_enums::ser_json_enums_http_response(self) {
|
7020 + | match crate::protocol_serde::shape_malformed_double::ser_malformed_double_http_response(
|
7021 + | self,
|
7022 + | ) {
|
6230 7023 | Ok(response) => response,
|
6231 7024 | Err(e) => {
|
6232 7025 | ::tracing::error!(error = %e, "failed to serialize response");
|
6233 7026 | ::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))
|
6234 7027 | }
|
6235 7028 | }
|
6236 7029 | }
|
6237 7030 | }
|
6238 7031 | impl
|
6239 7032 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6240 7033 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6241 - | > for crate::error::JsonEnumsError
|
7034 + | > for crate::error::MalformedDoubleError
|
6242 7035 | {
|
6243 7036 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6244 - | match crate::protocol_serde::shape_json_enums::ser_json_enums_http_error(&self) {
|
7037 + | match crate::protocol_serde::shape_malformed_double::ser_malformed_double_http_error(&self)
|
7038 + | {
|
6245 7039 | Ok(mut response) => {
|
6246 7040 | response.extensions_mut().insert(
|
6247 7041 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6248 7042 | self.name(),
|
6249 7043 | ),
|
6250 7044 | );
|
6251 7045 | response
|
6252 7046 | }
|
6253 7047 | Err(e) => {
|
6254 7048 | ::tracing::error!(error = %e, "failed to serialize response");
|
6255 7049 | ::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))
|
6256 7050 | }
|
6257 7051 | }
|
6258 7052 | }
|
6259 7053 | }
|
6260 7054 |
|
6261 7055 | ::pin_project_lite::pin_project! {
|
6262 7056 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6263 - | /// [`JsonTimestampsInput`](crate::input::JsonTimestampsInput) using modelled bindings.
|
6264 - | pub struct JsonTimestampsInputFuture {
|
6265 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::JsonTimestampsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7057 + | /// [`MalformedStringInput`](crate::input::MalformedStringInput) using modelled bindings.
|
7058 + | pub struct MalformedStringInputFuture {
|
7059 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6266 7060 | }
|
6267 7061 | }
|
6268 7062 |
|
6269 - | impl std::future::Future for JsonTimestampsInputFuture {
|
7063 + | impl std::future::Future for MalformedStringInputFuture {
|
6270 7064 | type Output = Result<
|
6271 - | crate::input::JsonTimestampsInput,
|
7065 + | crate::input::MalformedStringInput,
|
6272 7066 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6273 7067 | >;
|
6274 7068 |
|
6275 7069 | fn poll(
|
6276 7070 | self: std::pin::Pin<&mut Self>,
|
6277 7071 | cx: &mut std::task::Context<'_>,
|
6278 7072 | ) -> std::task::Poll<Self::Output> {
|
6279 7073 | let this = self.project();
|
6280 7074 | this.inner.as_mut().poll(cx)
|
6281 7075 | }
|
6282 7076 | }
|
6283 7077 |
|
6284 7078 | impl<B>
|
6285 7079 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6286 7080 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6287 7081 | B,
|
6288 - | > for crate::input::JsonTimestampsInput
|
7082 + | > for crate::input::MalformedStringInput
|
6289 7083 | where
|
6290 7084 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6291 7085 | B: 'static,
|
6292 7086 |
|
6293 7087 | B::Data: Send,
|
6294 7088 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6295 7089 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6296 7090 | {
|
6297 7091 | type Rejection =
|
6298 7092 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6299 - | type Future = JsonTimestampsInputFuture;
|
7093 + | type Future = MalformedStringInputFuture;
|
6300 7094 |
|
6301 7095 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6302 7096 | let fut = async move {
|
6303 7097 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6304 7098 | request.headers(),
|
6305 7099 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6306 7100 | ) {
|
6307 7101 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6308 7102 | }
|
6309 - | crate::protocol_serde::shape_json_timestamps::de_json_timestamps_http_request(request)
|
7103 + | crate::protocol_serde::shape_malformed_string::de_malformed_string_http_request(request)
|
6310 7104 | .await
|
6311 7105 | };
|
6312 7106 | use ::futures_util::future::TryFutureExt;
|
6313 7107 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6314 7108 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6315 7109 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6316 7110 | });
|
6317 - | JsonTimestampsInputFuture {
|
7111 + | MalformedStringInputFuture {
|
6318 7112 | inner: Box::pin(fut),
|
6319 7113 | }
|
6320 7114 | }
|
6321 7115 | }
|
6322 7116 | impl
|
6323 7117 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6324 7118 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6325 - | > for crate::output::JsonTimestampsOutput
|
7119 + | > for crate::output::MalformedStringOutput
|
6326 7120 | {
|
6327 7121 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6328 - | match crate::protocol_serde::shape_json_timestamps::ser_json_timestamps_http_response(self)
|
6329 - | {
|
7122 + | match crate::protocol_serde::shape_malformed_string::ser_malformed_string_http_response(
|
7123 + | self,
|
7124 + | ) {
|
6330 7125 | Ok(response) => response,
|
6331 7126 | Err(e) => {
|
6332 7127 | ::tracing::error!(error = %e, "failed to serialize response");
|
6333 7128 | ::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))
|
6334 7129 | }
|
6335 7130 | }
|
6336 7131 | }
|
6337 7132 | }
|
6338 7133 | impl
|
6339 7134 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6340 7135 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6341 - | > for crate::error::JsonTimestampsError
|
7136 + | > for crate::error::MalformedStringError
|
6342 7137 | {
|
6343 7138 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6344 - | match crate::protocol_serde::shape_json_timestamps::ser_json_timestamps_http_error(&self) {
|
7139 + | match crate::protocol_serde::shape_malformed_string::ser_malformed_string_http_error(&self)
|
7140 + | {
|
6345 7141 | Ok(mut response) => {
|
6346 7142 | response.extensions_mut().insert(
|
6347 7143 | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6348 7144 | self.name(),
|
6349 7145 | ),
|
6350 7146 | );
|
6351 7147 | response
|
6352 7148 | }
|
6353 7149 | Err(e) => {
|
6354 7150 | ::tracing::error!(error = %e, "failed to serialize response");
|
6355 7151 | ::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))
|
6356 7152 | }
|
6357 7153 | }
|
6358 7154 | }
|
6359 7155 | }
|
6360 7156 |
|
6361 7157 | ::pin_project_lite::pin_project! {
|
6362 7158 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6363 - | /// [`SimpleScalarPropertiesInput`](crate::input::SimpleScalarPropertiesInput) using modelled bindings.
|
6364 - | pub struct SimpleScalarPropertiesInputFuture {
|
6365 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::SimpleScalarPropertiesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7159 + | /// [`MalformedTimestampPathDefaultInput`](crate::input::MalformedTimestampPathDefaultInput) using modelled bindings.
|
7160 + | pub struct MalformedTimestampPathDefaultInputFuture {
|
7161 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampPathDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6366 7162 | }
|
6367 7163 | }
|
6368 7164 |
|
6369 - | impl std::future::Future for SimpleScalarPropertiesInputFuture {
|
7165 + | impl std::future::Future for MalformedTimestampPathDefaultInputFuture {
|
6370 7166 | type Output = Result<
|
6371 - | crate::input::SimpleScalarPropertiesInput,
|
7167 + | crate::input::MalformedTimestampPathDefaultInput,
|
6372 7168 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6373 7169 | >;
|
6374 7170 |
|
6375 7171 | fn poll(
|
6376 7172 | self: std::pin::Pin<&mut Self>,
|
6377 7173 | cx: &mut std::task::Context<'_>,
|
6378 7174 | ) -> std::task::Poll<Self::Output> {
|
6379 7175 | let this = self.project();
|
6380 7176 | this.inner.as_mut().poll(cx)
|
6381 7177 | }
|
6382 7178 | }
|
6383 7179 |
|
6384 7180 | impl<B>
|
6385 7181 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6386 7182 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6387 7183 | B,
|
6388 - | > for crate::input::SimpleScalarPropertiesInput
|
7184 + | > for crate::input::MalformedTimestampPathDefaultInput
|
6389 7185 | where
|
6390 7186 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6391 7187 | B: 'static,
|
6392 7188 |
|
6393 7189 | B::Data: Send,
|
6394 7190 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6395 7191 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6396 7192 | {
|
6397 7193 | type Rejection =
|
6398 7194 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6399 - | type Future = SimpleScalarPropertiesInputFuture;
|
7195 + | type Future = MalformedTimestampPathDefaultInputFuture;
|
6400 7196 |
|
6401 7197 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6402 7198 | let fut = async move {
|
6403 7199 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6404 7200 | request.headers(),
|
6405 7201 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6406 7202 | ) {
|
6407 7203 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6408 7204 | }
|
6409 - | crate::protocol_serde::shape_simple_scalar_properties::de_simple_scalar_properties_http_request(request)
|
7205 + | crate::protocol_serde::shape_malformed_timestamp_path_default::de_malformed_timestamp_path_default_http_request(request)
|
6410 7206 | .await
|
6411 7207 | };
|
6412 7208 | use ::futures_util::future::TryFutureExt;
|
6413 7209 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6414 7210 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6415 7211 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6416 7212 | });
|
6417 - | SimpleScalarPropertiesInputFuture {
|
7213 + | MalformedTimestampPathDefaultInputFuture {
|
6418 7214 | inner: Box::pin(fut),
|
6419 7215 | }
|
6420 7216 | }
|
6421 7217 | }
|
6422 7218 | impl
|
6423 7219 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6424 7220 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6425 - | > for crate::output::SimpleScalarPropertiesOutput
|
7221 + | > for crate::output::MalformedTimestampPathDefaultOutput
|
6426 7222 | {
|
6427 7223 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6428 - | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_response(self) {
|
7224 + | match crate::protocol_serde::shape_malformed_timestamp_path_default::ser_malformed_timestamp_path_default_http_response(self) {
|
6429 7225 | Ok(response) => response,
|
6430 7226 | Err(e) => {
|
6431 7227 | ::tracing::error!(error = %e, "failed to serialize response");
|
6432 7228 | ::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))
|
6433 7229 | }
|
6434 7230 | }
|
6435 7231 | }
|
6436 7232 | }
|
6437 7233 | impl
|
6438 7234 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6439 7235 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6440 - | > for crate::error::SimpleScalarPropertiesError
|
7236 + | > for crate::error::MalformedTimestampPathDefaultError
|
6441 7237 | {
|
6442 7238 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6443 - | match crate::protocol_serde::shape_simple_scalar_properties::ser_simple_scalar_properties_http_error(&self) {
|
7239 + | match crate::protocol_serde::shape_malformed_timestamp_path_default::ser_malformed_timestamp_path_default_http_error(&self) {
|
6444 7240 | Ok(mut response) => {
|
6445 7241 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6446 7242 | response
|
6447 7243 | },
|
6448 7244 | Err(e) => {
|
6449 7245 | ::tracing::error!(error = %e, "failed to serialize response");
|
6450 7246 | ::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))
|
6451 7247 | }
|
6452 7248 | }
|
6453 7249 | }
|
6454 7250 | }
|
6455 7251 |
|
6456 7252 | ::pin_project_lite::pin_project! {
|
6457 7253 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6458 - | /// [`GreetingWithErrorsInput`](crate::input::GreetingWithErrorsInput) using modelled bindings.
|
6459 - | pub struct GreetingWithErrorsInputFuture {
|
6460 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GreetingWithErrorsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7254 + | /// [`MalformedTimestampPathHttpDateInput`](crate::input::MalformedTimestampPathHttpDateInput) using modelled bindings.
|
7255 + | pub struct MalformedTimestampPathHttpDateInputFuture {
|
7256 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampPathHttpDateInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6461 7257 | }
|
6462 7258 | }
|
6463 7259 |
|
6464 - | impl std::future::Future for GreetingWithErrorsInputFuture {
|
7260 + | impl std::future::Future for MalformedTimestampPathHttpDateInputFuture {
|
6465 7261 | type Output = Result<
|
6466 - | crate::input::GreetingWithErrorsInput,
|
7262 + | crate::input::MalformedTimestampPathHttpDateInput,
|
6467 7263 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6468 7264 | >;
|
6469 7265 |
|
6470 7266 | fn poll(
|
6471 7267 | self: std::pin::Pin<&mut Self>,
|
6472 7268 | cx: &mut std::task::Context<'_>,
|
6473 7269 | ) -> std::task::Poll<Self::Output> {
|
6474 7270 | let this = self.project();
|
6475 7271 | this.inner.as_mut().poll(cx)
|
6476 7272 | }
|
6477 7273 | }
|
6478 7274 |
|
6479 7275 | impl<B>
|
6480 7276 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6481 7277 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6482 7278 | B,
|
6483 - | > for crate::input::GreetingWithErrorsInput
|
7279 + | > for crate::input::MalformedTimestampPathHttpDateInput
|
6484 7280 | where
|
6485 7281 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6486 7282 | B: 'static,
|
6487 7283 |
|
6488 7284 | B::Data: Send,
|
6489 7285 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6490 7286 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6491 7287 | {
|
6492 7288 | type Rejection =
|
6493 7289 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6494 - | type Future = GreetingWithErrorsInputFuture;
|
7290 + | type Future = MalformedTimestampPathHttpDateInputFuture;
|
6495 7291 |
|
6496 7292 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6497 7293 | let fut = async move {
|
6498 7294 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6499 7295 | request.headers(),
|
6500 7296 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6501 7297 | ) {
|
6502 7298 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6503 7299 | }
|
6504 - | crate::protocol_serde::shape_greeting_with_errors::de_greeting_with_errors_http_request(
|
6505 - | request,
|
6506 - | )
|
6507 - | .await
|
7300 + | crate::protocol_serde::shape_malformed_timestamp_path_http_date::de_malformed_timestamp_path_http_date_http_request(request)
|
7301 + | .await
|
6508 7302 | };
|
6509 7303 | use ::futures_util::future::TryFutureExt;
|
6510 7304 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6511 7305 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6512 7306 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6513 7307 | });
|
6514 - | GreetingWithErrorsInputFuture {
|
7308 + | MalformedTimestampPathHttpDateInputFuture {
|
6515 7309 | inner: Box::pin(fut),
|
6516 7310 | }
|
6517 7311 | }
|
6518 7312 | }
|
6519 7313 | impl
|
6520 7314 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6521 7315 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6522 - | > for crate::output::GreetingWithErrorsOutput
|
7316 + | > for crate::output::MalformedTimestampPathHttpDateOutput
|
6523 7317 | {
|
6524 7318 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6525 - | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_response(self) {
|
7319 + | match crate::protocol_serde::shape_malformed_timestamp_path_http_date::ser_malformed_timestamp_path_http_date_http_response(self) {
|
6526 7320 | Ok(response) => response,
|
6527 7321 | Err(e) => {
|
6528 7322 | ::tracing::error!(error = %e, "failed to serialize response");
|
6529 7323 | ::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))
|
6530 7324 | }
|
6531 7325 | }
|
6532 7326 | }
|
6533 7327 | }
|
6534 7328 | impl
|
6535 7329 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6536 7330 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6537 - | > for crate::error::GreetingWithErrorsError
|
7331 + | > for crate::error::MalformedTimestampPathHttpDateError
|
6538 7332 | {
|
6539 7333 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6540 - | match crate::protocol_serde::shape_greeting_with_errors::ser_greeting_with_errors_http_error(
|
6541 - | &self,
|
6542 - | ) {
|
7334 + | match crate::protocol_serde::shape_malformed_timestamp_path_http_date::ser_malformed_timestamp_path_http_date_http_error(&self) {
|
6543 7335 | Ok(mut response) => {
|
6544 - | response.extensions_mut().insert(
|
6545 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6546 - | self.name(),
|
6547 - | ),
|
6548 - | );
|
7336 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6549 7337 | response
|
6550 - | }
|
7338 + | },
|
6551 7339 | Err(e) => {
|
6552 7340 | ::tracing::error!(error = %e, "failed to serialize response");
|
6553 7341 | ::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))
|
6554 7342 | }
|
6555 7343 | }
|
6556 7344 | }
|
6557 7345 | }
|
6558 7346 |
|
6559 7347 | ::pin_project_lite::pin_project! {
|
6560 7348 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6561 - | /// [`StreamingTraitsWithMediaTypeInput`](crate::input::StreamingTraitsWithMediaTypeInput) using modelled bindings.
|
6562 - | pub struct StreamingTraitsWithMediaTypeInputFuture {
|
6563 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingTraitsWithMediaTypeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7349 + | /// [`MalformedTimestampPathEpochInput`](crate::input::MalformedTimestampPathEpochInput) using modelled bindings.
|
7350 + | pub struct MalformedTimestampPathEpochInputFuture {
|
7351 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampPathEpochInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6564 7352 | }
|
6565 7353 | }
|
6566 7354 |
|
6567 - | impl std::future::Future for StreamingTraitsWithMediaTypeInputFuture {
|
7355 + | impl std::future::Future for MalformedTimestampPathEpochInputFuture {
|
6568 7356 | type Output = Result<
|
6569 - | crate::input::StreamingTraitsWithMediaTypeInput,
|
7357 + | crate::input::MalformedTimestampPathEpochInput,
|
6570 7358 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6571 7359 | >;
|
6572 7360 |
|
6573 7361 | fn poll(
|
6574 7362 | self: std::pin::Pin<&mut Self>,
|
6575 7363 | cx: &mut std::task::Context<'_>,
|
6576 7364 | ) -> std::task::Poll<Self::Output> {
|
6577 7365 | let this = self.project();
|
6578 7366 | this.inner.as_mut().poll(cx)
|
6579 7367 | }
|
6580 7368 | }
|
6581 7369 |
|
6582 7370 | impl<B>
|
6583 7371 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6584 7372 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6585 7373 | B,
|
6586 - | > for crate::input::StreamingTraitsWithMediaTypeInput
|
7374 + | > for crate::input::MalformedTimestampPathEpochInput
|
6587 7375 | where
|
6588 7376 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6589 7377 | B: 'static,
|
6590 7378 |
|
6591 - | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
6592 7379 | B::Data: Send,
|
6593 7380 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6594 7381 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6595 7382 | {
|
6596 7383 | type Rejection =
|
6597 7384 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6598 - | type Future = StreamingTraitsWithMediaTypeInputFuture;
|
7385 + | type Future = MalformedTimestampPathEpochInputFuture;
|
6599 7386 |
|
6600 7387 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6601 7388 | let fut = async move {
|
6602 7389 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6603 7390 | request.headers(),
|
6604 - | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
7391 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6605 7392 | ) {
|
6606 7393 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6607 7394 | }
|
6608 - | crate::protocol_serde::shape_streaming_traits_with_media_type::de_streaming_traits_with_media_type_http_request(request)
|
7395 + | crate::protocol_serde::shape_malformed_timestamp_path_epoch::de_malformed_timestamp_path_epoch_http_request(request)
|
6609 7396 | .await
|
6610 7397 | };
|
6611 7398 | use ::futures_util::future::TryFutureExt;
|
6612 7399 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6613 7400 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6614 7401 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6615 7402 | });
|
6616 - | StreamingTraitsWithMediaTypeInputFuture {
|
7403 + | MalformedTimestampPathEpochInputFuture {
|
6617 7404 | inner: Box::pin(fut),
|
6618 7405 | }
|
6619 7406 | }
|
6620 7407 | }
|
6621 7408 | impl
|
6622 7409 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6623 7410 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6624 - | > for crate::output::StreamingTraitsWithMediaTypeOutput
|
7411 + | > for crate::output::MalformedTimestampPathEpochOutput
|
6625 7412 | {
|
6626 7413 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6627 - | match crate::protocol_serde::shape_streaming_traits_with_media_type::ser_streaming_traits_with_media_type_http_response(self) {
|
7414 + | match crate::protocol_serde::shape_malformed_timestamp_path_epoch::ser_malformed_timestamp_path_epoch_http_response(self) {
|
6628 7415 | Ok(response) => response,
|
6629 7416 | Err(e) => {
|
6630 7417 | ::tracing::error!(error = %e, "failed to serialize response");
|
6631 7418 | ::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))
|
6632 7419 | }
|
6633 7420 | }
|
6634 7421 | }
|
6635 7422 | }
|
6636 7423 | impl
|
6637 7424 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6638 7425 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6639 - | > for crate::error::StreamingTraitsWithMediaTypeError
|
7426 + | > for crate::error::MalformedTimestampPathEpochError
|
6640 7427 | {
|
6641 7428 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6642 - | match crate::protocol_serde::shape_streaming_traits_with_media_type::ser_streaming_traits_with_media_type_http_error(&self) {
|
7429 + | match crate::protocol_serde::shape_malformed_timestamp_path_epoch::ser_malformed_timestamp_path_epoch_http_error(&self) {
|
6643 7430 | Ok(mut response) => {
|
6644 7431 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6645 7432 | response
|
6646 7433 | },
|
6647 7434 | Err(e) => {
|
6648 7435 | ::tracing::error!(error = %e, "failed to serialize response");
|
6649 7436 | ::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))
|
6650 7437 | }
|
6651 7438 | }
|
6652 7439 | }
|
6653 7440 | }
|
6654 7441 |
|
6655 7442 | ::pin_project_lite::pin_project! {
|
6656 7443 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6657 - | /// [`StreamingTraitsRequireLengthInput`](crate::input::StreamingTraitsRequireLengthInput) using modelled bindings.
|
6658 - | pub struct StreamingTraitsRequireLengthInputFuture {
|
6659 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingTraitsRequireLengthInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7444 + | /// [`MalformedTimestampQueryDefaultInput`](crate::input::MalformedTimestampQueryDefaultInput) using modelled bindings.
|
7445 + | pub struct MalformedTimestampQueryDefaultInputFuture {
|
7446 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampQueryDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6660 7447 | }
|
6661 7448 | }
|
6662 7449 |
|
6663 - | impl std::future::Future for StreamingTraitsRequireLengthInputFuture {
|
7450 + | impl std::future::Future for MalformedTimestampQueryDefaultInputFuture {
|
6664 7451 | type Output = Result<
|
6665 - | crate::input::StreamingTraitsRequireLengthInput,
|
7452 + | crate::input::MalformedTimestampQueryDefaultInput,
|
6666 7453 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6667 7454 | >;
|
6668 7455 |
|
6669 7456 | fn poll(
|
6670 7457 | self: std::pin::Pin<&mut Self>,
|
6671 7458 | cx: &mut std::task::Context<'_>,
|
6672 7459 | ) -> std::task::Poll<Self::Output> {
|
6673 7460 | let this = self.project();
|
6674 7461 | this.inner.as_mut().poll(cx)
|
6675 7462 | }
|
6676 7463 | }
|
6677 7464 |
|
6678 7465 | impl<B>
|
6679 7466 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6680 7467 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6681 7468 | B,
|
6682 - | > for crate::input::StreamingTraitsRequireLengthInput
|
7469 + | > for crate::input::MalformedTimestampQueryDefaultInput
|
6683 7470 | where
|
6684 7471 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6685 7472 | B: 'static,
|
6686 7473 |
|
6687 - | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
6688 7474 | B::Data: Send,
|
6689 7475 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6690 7476 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6691 7477 | {
|
6692 7478 | type Rejection =
|
6693 7479 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6694 - | type Future = StreamingTraitsRequireLengthInputFuture;
|
7480 + | type Future = MalformedTimestampQueryDefaultInputFuture;
|
6695 7481 |
|
6696 7482 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6697 7483 | let fut = async move {
|
6698 7484 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6699 7485 | request.headers(),
|
6700 7486 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6701 7487 | ) {
|
6702 7488 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6703 7489 | }
|
6704 - | crate::protocol_serde::shape_streaming_traits_require_length::de_streaming_traits_require_length_http_request(request)
|
7490 + | crate::protocol_serde::shape_malformed_timestamp_query_default::de_malformed_timestamp_query_default_http_request(request)
|
6705 7491 | .await
|
6706 7492 | };
|
6707 7493 | use ::futures_util::future::TryFutureExt;
|
6708 7494 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6709 7495 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6710 7496 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6711 7497 | });
|
6712 - | StreamingTraitsRequireLengthInputFuture {
|
7498 + | MalformedTimestampQueryDefaultInputFuture {
|
6713 7499 | inner: Box::pin(fut),
|
6714 7500 | }
|
6715 7501 | }
|
6716 7502 | }
|
6717 7503 | impl
|
6718 7504 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6719 7505 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6720 - | > for crate::output::StreamingTraitsRequireLengthOutput
|
7506 + | > for crate::output::MalformedTimestampQueryDefaultOutput
|
6721 7507 | {
|
6722 7508 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6723 - | match crate::protocol_serde::shape_streaming_traits_require_length::ser_streaming_traits_require_length_http_response(self) {
|
7509 + | match crate::protocol_serde::shape_malformed_timestamp_query_default::ser_malformed_timestamp_query_default_http_response(self) {
|
6724 7510 | Ok(response) => response,
|
6725 7511 | Err(e) => {
|
6726 7512 | ::tracing::error!(error = %e, "failed to serialize response");
|
6727 7513 | ::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))
|
6728 7514 | }
|
6729 7515 | }
|
6730 7516 | }
|
6731 7517 | }
|
6732 7518 | impl
|
6733 7519 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6734 7520 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6735 - | > for crate::error::StreamingTraitsRequireLengthError
|
7521 + | > for crate::error::MalformedTimestampQueryDefaultError
|
6736 7522 | {
|
6737 7523 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6738 - | match crate::protocol_serde::shape_streaming_traits_require_length::ser_streaming_traits_require_length_http_error(&self) {
|
7524 + | match crate::protocol_serde::shape_malformed_timestamp_query_default::ser_malformed_timestamp_query_default_http_error(&self) {
|
6739 7525 | Ok(mut response) => {
|
6740 7526 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6741 7527 | response
|
6742 7528 | },
|
6743 7529 | Err(e) => {
|
6744 7530 | ::tracing::error!(error = %e, "failed to serialize response");
|
6745 7531 | ::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))
|
6746 7532 | }
|
6747 7533 | }
|
6748 7534 | }
|
6749 7535 | }
|
6750 7536 |
|
6751 7537 | ::pin_project_lite::pin_project! {
|
6752 7538 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6753 - | /// [`StreamingTraitsInput`](crate::input::StreamingTraitsInput) using modelled bindings.
|
6754 - | pub struct StreamingTraitsInputFuture {
|
6755 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StreamingTraitsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7539 + | /// [`MalformedTimestampQueryHttpDateInput`](crate::input::MalformedTimestampQueryHttpDateInput) using modelled bindings.
|
7540 + | pub struct MalformedTimestampQueryHttpDateInputFuture {
|
7541 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampQueryHttpDateInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6756 7542 | }
|
6757 7543 | }
|
6758 7544 |
|
6759 - | impl std::future::Future for StreamingTraitsInputFuture {
|
7545 + | impl std::future::Future for MalformedTimestampQueryHttpDateInputFuture {
|
6760 7546 | type Output = Result<
|
6761 - | crate::input::StreamingTraitsInput,
|
7547 + | crate::input::MalformedTimestampQueryHttpDateInput,
|
6762 7548 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6763 7549 | >;
|
6764 7550 |
|
6765 7551 | fn poll(
|
6766 7552 | self: std::pin::Pin<&mut Self>,
|
6767 7553 | cx: &mut std::task::Context<'_>,
|
6768 7554 | ) -> std::task::Poll<Self::Output> {
|
6769 7555 | let this = self.project();
|
6770 7556 | this.inner.as_mut().poll(cx)
|
6771 7557 | }
|
6772 7558 | }
|
6773 7559 |
|
6774 7560 | impl<B>
|
6775 7561 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6776 7562 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6777 7563 | B,
|
6778 - | > for crate::input::StreamingTraitsInput
|
7564 + | > for crate::input::MalformedTimestampQueryHttpDateInput
|
6779 7565 | where
|
6780 7566 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6781 7567 | B: 'static,
|
6782 7568 |
|
6783 - | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
6784 7569 | B::Data: Send,
|
6785 7570 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6786 7571 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6787 7572 | {
|
6788 7573 | type Rejection =
|
6789 7574 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6790 - | type Future = StreamingTraitsInputFuture;
|
7575 + | type Future = MalformedTimestampQueryHttpDateInputFuture;
|
6791 7576 |
|
6792 7577 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6793 7578 | let fut = async move {
|
6794 7579 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6795 7580 | request.headers(),
|
6796 - | &crate::mimes::CONTENT_TYPE_APPLICATION_OCTET_STREAM,
|
7581 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6797 7582 | ) {
|
6798 7583 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6799 7584 | }
|
6800 - | crate::protocol_serde::shape_streaming_traits::de_streaming_traits_http_request(request)
|
6801 - | .await
|
7585 + | crate::protocol_serde::shape_malformed_timestamp_query_http_date::de_malformed_timestamp_query_http_date_http_request(request)
|
7586 + | .await
|
6802 7587 | };
|
6803 7588 | use ::futures_util::future::TryFutureExt;
|
6804 7589 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6805 7590 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6806 7591 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6807 7592 | });
|
6808 - | StreamingTraitsInputFuture {
|
7593 + | MalformedTimestampQueryHttpDateInputFuture {
|
6809 7594 | inner: Box::pin(fut),
|
6810 7595 | }
|
6811 7596 | }
|
6812 7597 | }
|
6813 7598 | impl
|
6814 7599 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6815 7600 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6816 - | > for crate::output::StreamingTraitsOutput
|
7601 + | > for crate::output::MalformedTimestampQueryHttpDateOutput
|
6817 7602 | {
|
6818 7603 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6819 - | match crate::protocol_serde::shape_streaming_traits::ser_streaming_traits_http_response(
|
6820 - | self,
|
6821 - | ) {
|
6822 - | Ok(response) => response,
|
6823 - | Err(e) => {
|
6824 - | ::tracing::error!(error = %e, "failed to serialize response");
|
6825 - | ::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))
|
6826 - | }
|
6827 - | }
|
7604 + | match crate::protocol_serde::shape_malformed_timestamp_query_http_date::ser_malformed_timestamp_query_http_date_http_response(self) {
|
7605 + | Ok(response) => response,
|
7606 + | Err(e) => {
|
7607 + | ::tracing::error!(error = %e, "failed to serialize response");
|
7608 + | ::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))
|
7609 + | }
|
7610 + | }
|
6828 7611 | }
|
6829 7612 | }
|
6830 7613 | impl
|
6831 7614 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6832 7615 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6833 - | > for crate::error::StreamingTraitsError
|
7616 + | > for crate::error::MalformedTimestampQueryHttpDateError
|
6834 7617 | {
|
6835 7618 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6836 - | match crate::protocol_serde::shape_streaming_traits::ser_streaming_traits_http_error(&self)
|
6837 - | {
|
7619 + | match crate::protocol_serde::shape_malformed_timestamp_query_http_date::ser_malformed_timestamp_query_http_date_http_error(&self) {
|
6838 7620 | Ok(mut response) => {
|
6839 - | response.extensions_mut().insert(
|
6840 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
6841 - | self.name(),
|
6842 - | ),
|
6843 - | );
|
7621 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6844 7622 | response
|
6845 - | }
|
7623 + | },
|
6846 7624 | Err(e) => {
|
6847 7625 | ::tracing::error!(error = %e, "failed to serialize response");
|
6848 7626 | ::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))
|
6849 7627 | }
|
6850 7628 | }
|
6851 7629 | }
|
6852 7630 | }
|
6853 7631 |
|
6854 7632 | ::pin_project_lite::pin_project! {
|
6855 7633 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6856 - | /// [`ResponseCodeHttpFallbackInput`](crate::input::ResponseCodeHttpFallbackInput) using modelled bindings.
|
6857 - | pub struct ResponseCodeHttpFallbackInputFuture {
|
6858 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ResponseCodeHttpFallbackInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7634 + | /// [`MalformedTimestampQueryEpochInput`](crate::input::MalformedTimestampQueryEpochInput) using modelled bindings.
|
7635 + | pub struct MalformedTimestampQueryEpochInputFuture {
|
7636 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampQueryEpochInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6859 7637 | }
|
6860 7638 | }
|
6861 7639 |
|
6862 - | impl std::future::Future for ResponseCodeHttpFallbackInputFuture {
|
7640 + | impl std::future::Future for MalformedTimestampQueryEpochInputFuture {
|
6863 7641 | type Output = Result<
|
6864 - | crate::input::ResponseCodeHttpFallbackInput,
|
7642 + | crate::input::MalformedTimestampQueryEpochInput,
|
6865 7643 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6866 7644 | >;
|
6867 7645 |
|
6868 7646 | fn poll(
|
6869 7647 | self: std::pin::Pin<&mut Self>,
|
6870 7648 | cx: &mut std::task::Context<'_>,
|
6871 7649 | ) -> std::task::Poll<Self::Output> {
|
6872 7650 | let this = self.project();
|
6873 7651 | this.inner.as_mut().poll(cx)
|
6874 7652 | }
|
6875 7653 | }
|
6876 7654 |
|
6877 7655 | impl<B>
|
6878 7656 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6879 7657 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6880 7658 | B,
|
6881 - | > for crate::input::ResponseCodeHttpFallbackInput
|
7659 + | > for crate::input::MalformedTimestampQueryEpochInput
|
6882 7660 | where
|
6883 7661 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6884 7662 | B: 'static,
|
6885 7663 |
|
6886 7664 | B::Data: Send,
|
6887 7665 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6888 7666 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6889 7667 | {
|
6890 7668 | type Rejection =
|
6891 7669 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6892 - | type Future = ResponseCodeHttpFallbackInputFuture;
|
7670 + | type Future = MalformedTimestampQueryEpochInputFuture;
|
6893 7671 |
|
6894 7672 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6895 7673 | let fut = async move {
|
6896 7674 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6897 7675 | request.headers(),
|
6898 7676 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6899 7677 | ) {
|
6900 7678 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6901 7679 | }
|
6902 - | crate::protocol_serde::shape_response_code_http_fallback::de_response_code_http_fallback_http_request(request)
|
7680 + | crate::protocol_serde::shape_malformed_timestamp_query_epoch::de_malformed_timestamp_query_epoch_http_request(request)
|
6903 7681 | .await
|
6904 7682 | };
|
6905 7683 | use ::futures_util::future::TryFutureExt;
|
6906 7684 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
6907 7685 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
6908 7686 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
6909 7687 | });
|
6910 - | ResponseCodeHttpFallbackInputFuture {
|
7688 + | MalformedTimestampQueryEpochInputFuture {
|
6911 7689 | inner: Box::pin(fut),
|
6912 7690 | }
|
6913 7691 | }
|
6914 7692 | }
|
6915 7693 | impl
|
6916 7694 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6917 7695 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6918 - | > for crate::output::ResponseCodeHttpFallbackOutput
|
7696 + | > for crate::output::MalformedTimestampQueryEpochOutput
|
6919 7697 | {
|
6920 7698 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6921 - | match crate::protocol_serde::shape_response_code_http_fallback::ser_response_code_http_fallback_http_response(self) {
|
7699 + | match crate::protocol_serde::shape_malformed_timestamp_query_epoch::ser_malformed_timestamp_query_epoch_http_response(self) {
|
6922 7700 | Ok(response) => response,
|
6923 7701 | Err(e) => {
|
6924 7702 | ::tracing::error!(error = %e, "failed to serialize response");
|
6925 7703 | ::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))
|
6926 7704 | }
|
6927 7705 | }
|
6928 7706 | }
|
6929 7707 | }
|
6930 7708 | impl
|
6931 7709 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
6932 7710 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6933 - | > for crate::error::ResponseCodeHttpFallbackError
|
7711 + | > for crate::error::MalformedTimestampQueryEpochError
|
6934 7712 | {
|
6935 7713 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
6936 - | match crate::protocol_serde::shape_response_code_http_fallback::ser_response_code_http_fallback_http_error(&self) {
|
7714 + | match crate::protocol_serde::shape_malformed_timestamp_query_epoch::ser_malformed_timestamp_query_epoch_http_error(&self) {
|
6937 7715 | Ok(mut response) => {
|
6938 7716 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
6939 7717 | response
|
6940 7718 | },
|
6941 7719 | Err(e) => {
|
6942 7720 | ::tracing::error!(error = %e, "failed to serialize response");
|
6943 7721 | ::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))
|
6944 7722 | }
|
6945 7723 | }
|
6946 7724 | }
|
6947 7725 | }
|
6948 7726 |
|
6949 7727 | ::pin_project_lite::pin_project! {
|
6950 7728 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6951 - | /// [`ResponseCodeRequiredInput`](crate::input::ResponseCodeRequiredInput) using modelled bindings.
|
6952 - | pub struct ResponseCodeRequiredInputFuture {
|
6953 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ResponseCodeRequiredInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7729 + | /// [`MalformedTimestampHeaderDefaultInput`](crate::input::MalformedTimestampHeaderDefaultInput) using modelled bindings.
|
7730 + | pub struct MalformedTimestampHeaderDefaultInputFuture {
|
7731 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampHeaderDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6954 7732 | }
|
6955 7733 | }
|
6956 7734 |
|
6957 - | impl std::future::Future for ResponseCodeRequiredInputFuture {
|
7735 + | impl std::future::Future for MalformedTimestampHeaderDefaultInputFuture {
|
6958 7736 | type Output = Result<
|
6959 - | crate::input::ResponseCodeRequiredInput,
|
7737 + | crate::input::MalformedTimestampHeaderDefaultInput,
|
6960 7738 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
6961 7739 | >;
|
6962 7740 |
|
6963 7741 | fn poll(
|
6964 7742 | self: std::pin::Pin<&mut Self>,
|
6965 7743 | cx: &mut std::task::Context<'_>,
|
6966 7744 | ) -> std::task::Poll<Self::Output> {
|
6967 7745 | let this = self.project();
|
6968 7746 | this.inner.as_mut().poll(cx)
|
6969 7747 | }
|
6970 7748 | }
|
6971 7749 |
|
6972 7750 | impl<B>
|
6973 7751 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
6974 7752 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
6975 7753 | B,
|
6976 - | > for crate::input::ResponseCodeRequiredInput
|
7754 + | > for crate::input::MalformedTimestampHeaderDefaultInput
|
6977 7755 | where
|
6978 7756 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
6979 7757 | B: 'static,
|
6980 7758 |
|
6981 7759 | B::Data: Send,
|
6982 7760 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
6983 7761 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
6984 7762 | {
|
6985 7763 | type Rejection =
|
6986 7764 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
6987 - | type Future = ResponseCodeRequiredInputFuture;
|
7765 + | type Future = MalformedTimestampHeaderDefaultInputFuture;
|
6988 7766 |
|
6989 7767 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
6990 7768 | let fut = async move {
|
6991 7769 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
6992 7770 | request.headers(),
|
6993 7771 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
6994 7772 | ) {
|
6995 7773 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
6996 7774 | }
|
6997 - | crate::protocol_serde::shape_response_code_required::de_response_code_required_http_request(request)
|
7775 + | crate::protocol_serde::shape_malformed_timestamp_header_default::de_malformed_timestamp_header_default_http_request(request)
|
6998 7776 | .await
|
6999 7777 | };
|
7000 7778 | use ::futures_util::future::TryFutureExt;
|
7001 7779 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7002 7780 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7003 7781 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7004 7782 | });
|
7005 - | ResponseCodeRequiredInputFuture {
|
7783 + | MalformedTimestampHeaderDefaultInputFuture {
|
7006 7784 | inner: Box::pin(fut),
|
7007 7785 | }
|
7008 7786 | }
|
7009 7787 | }
|
7010 7788 | impl
|
7011 7789 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7012 7790 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7013 - | > for crate::output::ResponseCodeRequiredOutput
|
7791 + | > for crate::output::MalformedTimestampHeaderDefaultOutput
|
7014 7792 | {
|
7015 7793 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7016 - | match crate::protocol_serde::shape_response_code_required::ser_response_code_required_http_response(self) {
|
7794 + | match crate::protocol_serde::shape_malformed_timestamp_header_default::ser_malformed_timestamp_header_default_http_response(self) {
|
7017 7795 | Ok(response) => response,
|
7018 7796 | Err(e) => {
|
7019 7797 | ::tracing::error!(error = %e, "failed to serialize response");
|
7020 7798 | ::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))
|
7021 7799 | }
|
7022 7800 | }
|
7023 7801 | }
|
7024 7802 | }
|
7025 7803 | impl
|
7026 7804 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7027 7805 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7028 - | > for crate::error::ResponseCodeRequiredError
|
7806 + | > for crate::error::MalformedTimestampHeaderDefaultError
|
7029 7807 | {
|
7030 7808 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7031 - | match crate::protocol_serde::shape_response_code_required::ser_response_code_required_http_error(&self) {
|
7809 + | match crate::protocol_serde::shape_malformed_timestamp_header_default::ser_malformed_timestamp_header_default_http_error(&self) {
|
7032 7810 | Ok(mut response) => {
|
7033 7811 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7034 7812 | response
|
7035 7813 | },
|
7036 7814 | Err(e) => {
|
7037 7815 | ::tracing::error!(error = %e, "failed to serialize response");
|
7038 7816 | ::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))
|
7039 7817 | }
|
7040 7818 | }
|
7041 7819 | }
|
7042 7820 | }
|
7043 7821 |
|
7044 7822 | ::pin_project_lite::pin_project! {
|
7045 7823 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7046 - | /// [`HttpResponseCodeInput`](crate::input::HttpResponseCodeInput) using modelled bindings.
|
7047 - | pub struct HttpResponseCodeInputFuture {
|
7048 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpResponseCodeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7824 + | /// [`MalformedTimestampHeaderDateTimeInput`](crate::input::MalformedTimestampHeaderDateTimeInput) using modelled bindings.
|
7825 + | pub struct MalformedTimestampHeaderDateTimeInputFuture {
|
7826 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampHeaderDateTimeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7049 7827 | }
|
7050 7828 | }
|
7051 7829 |
|
7052 - | impl std::future::Future for HttpResponseCodeInputFuture {
|
7830 + | impl std::future::Future for MalformedTimestampHeaderDateTimeInputFuture {
|
7053 7831 | type Output = Result<
|
7054 - | crate::input::HttpResponseCodeInput,
|
7832 + | crate::input::MalformedTimestampHeaderDateTimeInput,
|
7055 7833 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7056 7834 | >;
|
7057 7835 |
|
7058 7836 | fn poll(
|
7059 7837 | self: std::pin::Pin<&mut Self>,
|
7060 7838 | cx: &mut std::task::Context<'_>,
|
7061 7839 | ) -> std::task::Poll<Self::Output> {
|
7062 7840 | let this = self.project();
|
7063 7841 | this.inner.as_mut().poll(cx)
|
7064 7842 | }
|
7065 7843 | }
|
7066 7844 |
|
7067 7845 | impl<B>
|
7068 7846 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7069 7847 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7070 7848 | B,
|
7071 - | > for crate::input::HttpResponseCodeInput
|
7849 + | > for crate::input::MalformedTimestampHeaderDateTimeInput
|
7072 7850 | where
|
7073 7851 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7074 7852 | B: 'static,
|
7075 7853 |
|
7076 7854 | B::Data: Send,
|
7077 7855 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7078 7856 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7079 7857 | {
|
7080 7858 | type Rejection =
|
7081 7859 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7082 - | type Future = HttpResponseCodeInputFuture;
|
7860 + | type Future = MalformedTimestampHeaderDateTimeInputFuture;
|
7083 7861 |
|
7084 7862 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7085 7863 | let fut = async move {
|
7086 7864 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7087 7865 | request.headers(),
|
7088 7866 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7089 7867 | ) {
|
7090 7868 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7091 7869 | }
|
7092 - | crate::protocol_serde::shape_http_response_code::de_http_response_code_http_request(
|
7093 - | request,
|
7094 - | )
|
7095 - | .await
|
7870 + | crate::protocol_serde::shape_malformed_timestamp_header_date_time::de_malformed_timestamp_header_date_time_http_request(request)
|
7871 + | .await
|
7096 7872 | };
|
7097 7873 | use ::futures_util::future::TryFutureExt;
|
7098 7874 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7099 7875 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7100 7876 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7101 7877 | });
|
7102 - | HttpResponseCodeInputFuture {
|
7878 + | MalformedTimestampHeaderDateTimeInputFuture {
|
7103 7879 | inner: Box::pin(fut),
|
7104 7880 | }
|
7105 7881 | }
|
7106 7882 | }
|
7107 7883 | impl
|
7108 7884 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7109 7885 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7110 - | > for crate::output::HttpResponseCodeOutput
|
7886 + | > for crate::output::MalformedTimestampHeaderDateTimeOutput
|
7111 7887 | {
|
7112 7888 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7113 - | match crate::protocol_serde::shape_http_response_code::ser_http_response_code_http_response(
|
7114 - | self,
|
7115 - | ) {
|
7116 - | Ok(response) => response,
|
7117 - | Err(e) => {
|
7118 - | ::tracing::error!(error = %e, "failed to serialize response");
|
7119 - | ::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))
|
7120 - | }
|
7121 - | }
|
7889 + | match crate::protocol_serde::shape_malformed_timestamp_header_date_time::ser_malformed_timestamp_header_date_time_http_response(self) {
|
7890 + | Ok(response) => response,
|
7891 + | Err(e) => {
|
7892 + | ::tracing::error!(error = %e, "failed to serialize response");
|
7893 + | ::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))
|
7894 + | }
|
7895 + | }
|
7122 7896 | }
|
7123 7897 | }
|
7124 7898 | impl
|
7125 7899 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7126 7900 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7127 - | > for crate::error::HttpResponseCodeError
|
7901 + | > for crate::error::MalformedTimestampHeaderDateTimeError
|
7128 7902 | {
|
7129 7903 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7130 - | match crate::protocol_serde::shape_http_response_code::ser_http_response_code_http_error(
|
7131 - | &self,
|
7132 - | ) {
|
7904 + | match crate::protocol_serde::shape_malformed_timestamp_header_date_time::ser_malformed_timestamp_header_date_time_http_error(&self) {
|
7133 7905 | Ok(mut response) => {
|
7134 - | response.extensions_mut().insert(
|
7135 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
7136 - | self.name(),
|
7137 - | ),
|
7138 - | );
|
7906 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7139 7907 | response
|
7140 - | }
|
7908 + | },
|
7141 7909 | Err(e) => {
|
7142 7910 | ::tracing::error!(error = %e, "failed to serialize response");
|
7143 7911 | ::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))
|
7144 7912 | }
|
7145 7913 | }
|
7146 7914 | }
|
7147 7915 | }
|
7148 7916 |
|
7149 7917 | ::pin_project_lite::pin_project! {
|
7150 7918 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7151 - | /// [`HttpPayloadWithUnionInput`](crate::input::HttpPayloadWithUnionInput) using modelled bindings.
|
7152 - | pub struct HttpPayloadWithUnionInputFuture {
|
7153 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadWithUnionInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7919 + | /// [`MalformedTimestampHeaderEpochInput`](crate::input::MalformedTimestampHeaderEpochInput) using modelled bindings.
|
7920 + | pub struct MalformedTimestampHeaderEpochInputFuture {
|
7921 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampHeaderEpochInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7154 7922 | }
|
7155 7923 | }
|
7156 7924 |
|
7157 - | impl std::future::Future for HttpPayloadWithUnionInputFuture {
|
7925 + | impl std::future::Future for MalformedTimestampHeaderEpochInputFuture {
|
7158 7926 | type Output = Result<
|
7159 - | crate::input::HttpPayloadWithUnionInput,
|
7927 + | crate::input::MalformedTimestampHeaderEpochInput,
|
7160 7928 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7161 7929 | >;
|
7162 7930 |
|
7163 7931 | fn poll(
|
7164 7932 | self: std::pin::Pin<&mut Self>,
|
7165 7933 | cx: &mut std::task::Context<'_>,
|
7166 7934 | ) -> std::task::Poll<Self::Output> {
|
7167 7935 | let this = self.project();
|
7168 7936 | this.inner.as_mut().poll(cx)
|
7169 7937 | }
|
7170 7938 | }
|
7171 7939 |
|
7172 7940 | impl<B>
|
7173 7941 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7174 7942 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7175 7943 | B,
|
7176 - | > for crate::input::HttpPayloadWithUnionInput
|
7944 + | > for crate::input::MalformedTimestampHeaderEpochInput
|
7177 7945 | where
|
7178 7946 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7179 7947 | B: 'static,
|
7180 7948 |
|
7181 7949 | B::Data: Send,
|
7182 7950 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7183 7951 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7184 7952 | {
|
7185 7953 | type Rejection =
|
7186 7954 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7187 - | type Future = HttpPayloadWithUnionInputFuture;
|
7955 + | type Future = MalformedTimestampHeaderEpochInputFuture;
|
7188 7956 |
|
7189 7957 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7190 7958 | let fut = async move {
|
7191 7959 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7192 7960 | request.headers(),
|
7193 7961 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7194 7962 | ) {
|
7195 7963 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7196 7964 | }
|
7197 - | crate::protocol_serde::shape_http_payload_with_union::de_http_payload_with_union_http_request(request)
|
7965 + | crate::protocol_serde::shape_malformed_timestamp_header_epoch::de_malformed_timestamp_header_epoch_http_request(request)
|
7198 7966 | .await
|
7199 7967 | };
|
7200 7968 | use ::futures_util::future::TryFutureExt;
|
7201 7969 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7202 7970 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7203 7971 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7204 7972 | });
|
7205 - | HttpPayloadWithUnionInputFuture {
|
7973 + | MalformedTimestampHeaderEpochInputFuture {
|
7206 7974 | inner: Box::pin(fut),
|
7207 7975 | }
|
7208 7976 | }
|
7209 7977 | }
|
7210 7978 | impl
|
7211 7979 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7212 7980 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7213 - | > for crate::output::HttpPayloadWithUnionOutput
|
7981 + | > for crate::output::MalformedTimestampHeaderEpochOutput
|
7214 7982 | {
|
7215 7983 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7216 - | match crate::protocol_serde::shape_http_payload_with_union::ser_http_payload_with_union_http_response(self) {
|
7984 + | match crate::protocol_serde::shape_malformed_timestamp_header_epoch::ser_malformed_timestamp_header_epoch_http_response(self) {
|
7217 7985 | Ok(response) => response,
|
7218 7986 | Err(e) => {
|
7219 7987 | ::tracing::error!(error = %e, "failed to serialize response");
|
7220 7988 | ::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))
|
7221 7989 | }
|
7222 7990 | }
|
7223 7991 | }
|
7224 7992 | }
|
7225 7993 | impl
|
7226 7994 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7227 7995 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7228 - | > for crate::error::HttpPayloadWithUnionError
|
7996 + | > for crate::error::MalformedTimestampHeaderEpochError
|
7229 7997 | {
|
7230 7998 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7231 - | match crate::protocol_serde::shape_http_payload_with_union::ser_http_payload_with_union_http_error(&self) {
|
7999 + | match crate::protocol_serde::shape_malformed_timestamp_header_epoch::ser_malformed_timestamp_header_epoch_http_error(&self) {
|
7232 8000 | Ok(mut response) => {
|
7233 8001 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7234 8002 | response
|
7235 8003 | },
|
7236 8004 | Err(e) => {
|
7237 8005 | ::tracing::error!(error = %e, "failed to serialize response");
|
7238 8006 | ::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))
|
7239 8007 | }
|
7240 8008 | }
|
7241 8009 | }
|
7242 8010 | }
|
7243 8011 |
|
7244 8012 | ::pin_project_lite::pin_project! {
|
7245 8013 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7246 - | /// [`HttpStringPayloadInput`](crate::input::HttpStringPayloadInput) using modelled bindings.
|
7247 - | pub struct HttpStringPayloadInputFuture {
|
7248 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpStringPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8014 + | /// [`MalformedTimestampBodyDefaultInput`](crate::input::MalformedTimestampBodyDefaultInput) using modelled bindings.
|
8015 + | pub struct MalformedTimestampBodyDefaultInputFuture {
|
8016 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampBodyDefaultInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7249 8017 | }
|
7250 8018 | }
|
7251 8019 |
|
7252 - | impl std::future::Future for HttpStringPayloadInputFuture {
|
8020 + | impl std::future::Future for MalformedTimestampBodyDefaultInputFuture {
|
7253 8021 | type Output = Result<
|
7254 - | crate::input::HttpStringPayloadInput,
|
8022 + | crate::input::MalformedTimestampBodyDefaultInput,
|
7255 8023 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7256 8024 | >;
|
7257 8025 |
|
7258 8026 | fn poll(
|
7259 8027 | self: std::pin::Pin<&mut Self>,
|
7260 8028 | cx: &mut std::task::Context<'_>,
|
7261 8029 | ) -> std::task::Poll<Self::Output> {
|
7262 8030 | let this = self.project();
|
7263 8031 | this.inner.as_mut().poll(cx)
|
7264 8032 | }
|
7265 8033 | }
|
7266 8034 |
|
7267 8035 | impl<B>
|
7268 8036 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7269 8037 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7270 8038 | B,
|
7271 - | > for crate::input::HttpStringPayloadInput
|
8039 + | > for crate::input::MalformedTimestampBodyDefaultInput
|
7272 8040 | where
|
7273 8041 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7274 8042 | B: 'static,
|
7275 8043 |
|
7276 8044 | B::Data: Send,
|
7277 8045 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7278 8046 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7279 8047 | {
|
7280 8048 | type Rejection =
|
7281 8049 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7282 - | type Future = HttpStringPayloadInputFuture;
|
8050 + | type Future = MalformedTimestampBodyDefaultInputFuture;
|
7283 8051 |
|
7284 8052 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7285 8053 | let fut = async move {
|
7286 8054 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7287 8055 | request.headers(),
|
7288 - | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
8056 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7289 8057 | ) {
|
7290 8058 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7291 8059 | }
|
7292 - | crate::protocol_serde::shape_http_string_payload::de_http_string_payload_http_request(
|
7293 - | request,
|
7294 - | )
|
7295 - | .await
|
8060 + | crate::protocol_serde::shape_malformed_timestamp_body_default::de_malformed_timestamp_body_default_http_request(request)
|
8061 + | .await
|
7296 8062 | };
|
7297 8063 | use ::futures_util::future::TryFutureExt;
|
7298 8064 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7299 8065 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7300 8066 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7301 8067 | });
|
7302 - | HttpStringPayloadInputFuture {
|
8068 + | MalformedTimestampBodyDefaultInputFuture {
|
7303 8069 | inner: Box::pin(fut),
|
7304 8070 | }
|
7305 8071 | }
|
7306 8072 | }
|
7307 8073 | impl
|
7308 8074 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7309 8075 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7310 - | > for crate::output::HttpStringPayloadOutput
|
8076 + | > for crate::output::MalformedTimestampBodyDefaultOutput
|
7311 8077 | {
|
7312 8078 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7313 - | match crate::protocol_serde::shape_http_string_payload::ser_http_string_payload_http_response(self) {
|
8079 + | match crate::protocol_serde::shape_malformed_timestamp_body_default::ser_malformed_timestamp_body_default_http_response(self) {
|
7314 8080 | Ok(response) => response,
|
7315 8081 | Err(e) => {
|
7316 8082 | ::tracing::error!(error = %e, "failed to serialize response");
|
7317 8083 | ::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))
|
7318 8084 | }
|
7319 8085 | }
|
7320 8086 | }
|
7321 8087 | }
|
7322 8088 | impl
|
7323 8089 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7324 8090 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7325 - | > for crate::error::HttpStringPayloadError
|
8091 + | > for crate::error::MalformedTimestampBodyDefaultError
|
7326 8092 | {
|
7327 8093 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7328 - | match crate::protocol_serde::shape_http_string_payload::ser_http_string_payload_http_error(
|
7329 - | &self,
|
7330 - | ) {
|
8094 + | match crate::protocol_serde::shape_malformed_timestamp_body_default::ser_malformed_timestamp_body_default_http_error(&self) {
|
7331 8095 | Ok(mut response) => {
|
7332 - | response.extensions_mut().insert(
|
7333 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
7334 - | self.name(),
|
7335 - | ),
|
7336 - | );
|
8096 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7337 8097 | response
|
7338 - | }
|
8098 + | },
|
7339 8099 | Err(e) => {
|
7340 8100 | ::tracing::error!(error = %e, "failed to serialize response");
|
7341 8101 | ::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))
|
7342 8102 | }
|
7343 8103 | }
|
7344 8104 | }
|
7345 8105 | }
|
7346 8106 |
|
7347 8107 | ::pin_project_lite::pin_project! {
|
7348 8108 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7349 - | /// [`HttpEnumPayloadInput`](crate::input::HttpEnumPayloadInput) using modelled bindings.
|
7350 - | pub struct HttpEnumPayloadInputFuture {
|
7351 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpEnumPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8109 + | /// [`MalformedTimestampBodyDateTimeInput`](crate::input::MalformedTimestampBodyDateTimeInput) using modelled bindings.
|
8110 + | pub struct MalformedTimestampBodyDateTimeInputFuture {
|
8111 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampBodyDateTimeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7352 8112 | }
|
7353 8113 | }
|
7354 8114 |
|
7355 - | impl std::future::Future for HttpEnumPayloadInputFuture {
|
8115 + | impl std::future::Future for MalformedTimestampBodyDateTimeInputFuture {
|
7356 8116 | type Output = Result<
|
7357 - | crate::input::HttpEnumPayloadInput,
|
8117 + | crate::input::MalformedTimestampBodyDateTimeInput,
|
7358 8118 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7359 8119 | >;
|
7360 8120 |
|
7361 8121 | fn poll(
|
7362 8122 | self: std::pin::Pin<&mut Self>,
|
7363 8123 | cx: &mut std::task::Context<'_>,
|
7364 8124 | ) -> std::task::Poll<Self::Output> {
|
7365 8125 | let this = self.project();
|
7366 8126 | this.inner.as_mut().poll(cx)
|
7367 8127 | }
|
7368 8128 | }
|
7369 8129 |
|
7370 8130 | impl<B>
|
7371 8131 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7372 8132 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7373 8133 | B,
|
7374 - | > for crate::input::HttpEnumPayloadInput
|
8134 + | > for crate::input::MalformedTimestampBodyDateTimeInput
|
7375 8135 | where
|
7376 8136 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7377 8137 | B: 'static,
|
7378 8138 |
|
7379 8139 | B::Data: Send,
|
7380 8140 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7381 8141 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7382 8142 | {
|
7383 8143 | type Rejection =
|
7384 8144 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7385 - | type Future = HttpEnumPayloadInputFuture;
|
8145 + | type Future = MalformedTimestampBodyDateTimeInputFuture;
|
7386 8146 |
|
7387 8147 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7388 8148 | let fut = async move {
|
7389 8149 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7390 8150 | request.headers(),
|
7391 - | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
8151 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7392 8152 | ) {
|
7393 8153 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7394 8154 | }
|
7395 - | crate::protocol_serde::shape_http_enum_payload::de_http_enum_payload_http_request(
|
7396 - | request,
|
7397 - | )
|
7398 - | .await
|
8155 + | crate::protocol_serde::shape_malformed_timestamp_body_date_time::de_malformed_timestamp_body_date_time_http_request(request)
|
8156 + | .await
|
7399 8157 | };
|
7400 8158 | use ::futures_util::future::TryFutureExt;
|
7401 8159 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7402 8160 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7403 8161 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7404 8162 | });
|
7405 - | HttpEnumPayloadInputFuture {
|
8163 + | MalformedTimestampBodyDateTimeInputFuture {
|
7406 8164 | inner: Box::pin(fut),
|
7407 8165 | }
|
7408 8166 | }
|
7409 8167 | }
|
7410 8168 | impl
|
7411 8169 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7412 8170 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7413 - | > for crate::output::HttpEnumPayloadOutput
|
8171 + | > for crate::output::MalformedTimestampBodyDateTimeOutput
|
7414 8172 | {
|
7415 8173 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7416 - | match crate::protocol_serde::shape_http_enum_payload::ser_http_enum_payload_http_response(
|
7417 - | self,
|
7418 - | ) {
|
7419 - | Ok(response) => response,
|
7420 - | Err(e) => {
|
7421 - | ::tracing::error!(error = %e, "failed to serialize response");
|
7422 - | ::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))
|
7423 - | }
|
7424 - | }
|
8174 + | match crate::protocol_serde::shape_malformed_timestamp_body_date_time::ser_malformed_timestamp_body_date_time_http_response(self) {
|
8175 + | Ok(response) => response,
|
8176 + | Err(e) => {
|
8177 + | ::tracing::error!(error = %e, "failed to serialize response");
|
8178 + | ::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))
|
8179 + | }
|
8180 + | }
|
7425 8181 | }
|
7426 8182 | }
|
7427 8183 | impl
|
7428 8184 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7429 8185 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7430 - | > for crate::error::HttpEnumPayloadError
|
8186 + | > for crate::error::MalformedTimestampBodyDateTimeError
|
7431 8187 | {
|
7432 8188 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7433 - | match crate::protocol_serde::shape_http_enum_payload::ser_http_enum_payload_http_error(
|
7434 - | &self,
|
7435 - | ) {
|
8189 + | match crate::protocol_serde::shape_malformed_timestamp_body_date_time::ser_malformed_timestamp_body_date_time_http_error(&self) {
|
7436 8190 | Ok(mut response) => {
|
7437 - | response.extensions_mut().insert(
|
7438 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
7439 - | self.name(),
|
7440 - | ),
|
7441 - | );
|
8191 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7442 8192 | response
|
7443 - | }
|
8193 + | },
|
7444 8194 | Err(e) => {
|
7445 8195 | ::tracing::error!(error = %e, "failed to serialize response");
|
7446 8196 | ::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))
|
7447 8197 | }
|
7448 8198 | }
|
7449 8199 | }
|
7450 8200 | }
|
7451 8201 |
|
7452 8202 | ::pin_project_lite::pin_project! {
|
7453 8203 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7454 - | /// [`HttpPayloadWithStructureInput`](crate::input::HttpPayloadWithStructureInput) using modelled bindings.
|
7455 - | pub struct HttpPayloadWithStructureInputFuture {
|
7456 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadWithStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8204 + | /// [`MalformedTimestampBodyHttpDateInput`](crate::input::MalformedTimestampBodyHttpDateInput) using modelled bindings.
|
8205 + | pub struct MalformedTimestampBodyHttpDateInputFuture {
|
8206 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedTimestampBodyHttpDateInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7457 8207 | }
|
7458 8208 | }
|
7459 8209 |
|
7460 - | impl std::future::Future for HttpPayloadWithStructureInputFuture {
|
8210 + | impl std::future::Future for MalformedTimestampBodyHttpDateInputFuture {
|
7461 8211 | type Output = Result<
|
7462 - | crate::input::HttpPayloadWithStructureInput,
|
8212 + | crate::input::MalformedTimestampBodyHttpDateInput,
|
7463 8213 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7464 8214 | >;
|
7465 8215 |
|
7466 8216 | fn poll(
|
7467 8217 | self: std::pin::Pin<&mut Self>,
|
7468 8218 | cx: &mut std::task::Context<'_>,
|
7469 8219 | ) -> std::task::Poll<Self::Output> {
|
7470 8220 | let this = self.project();
|
7471 8221 | this.inner.as_mut().poll(cx)
|
7472 8222 | }
|
7473 8223 | }
|
7474 8224 |
|
7475 8225 | impl<B>
|
7476 8226 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7477 8227 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7478 8228 | B,
|
7479 - | > for crate::input::HttpPayloadWithStructureInput
|
8229 + | > for crate::input::MalformedTimestampBodyHttpDateInput
|
7480 8230 | where
|
7481 8231 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7482 8232 | B: 'static,
|
7483 8233 |
|
7484 8234 | B::Data: Send,
|
7485 8235 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7486 8236 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7487 8237 | {
|
7488 8238 | type Rejection =
|
7489 8239 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7490 - | type Future = HttpPayloadWithStructureInputFuture;
|
8240 + | type Future = MalformedTimestampBodyHttpDateInputFuture;
|
7491 8241 |
|
7492 8242 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7493 8243 | let fut = async move {
|
7494 8244 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7495 8245 | request.headers(),
|
7496 8246 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7497 8247 | ) {
|
7498 8248 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7499 8249 | }
|
7500 - | crate::protocol_serde::shape_http_payload_with_structure::de_http_payload_with_structure_http_request(request)
|
8250 + | crate::protocol_serde::shape_malformed_timestamp_body_http_date::de_malformed_timestamp_body_http_date_http_request(request)
|
7501 8251 | .await
|
7502 8252 | };
|
7503 8253 | use ::futures_util::future::TryFutureExt;
|
7504 8254 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7505 8255 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7506 8256 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7507 8257 | });
|
7508 - | HttpPayloadWithStructureInputFuture {
|
8258 + | MalformedTimestampBodyHttpDateInputFuture {
|
7509 8259 | inner: Box::pin(fut),
|
7510 8260 | }
|
7511 8261 | }
|
7512 8262 | }
|
7513 8263 | impl
|
7514 8264 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7515 8265 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7516 - | > for crate::output::HttpPayloadWithStructureOutput
|
8266 + | > for crate::output::MalformedTimestampBodyHttpDateOutput
|
7517 8267 | {
|
7518 8268 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7519 - | match crate::protocol_serde::shape_http_payload_with_structure::ser_http_payload_with_structure_http_response(self) {
|
8269 + | match crate::protocol_serde::shape_malformed_timestamp_body_http_date::ser_malformed_timestamp_body_http_date_http_response(self) {
|
7520 8270 | Ok(response) => response,
|
7521 8271 | Err(e) => {
|
7522 8272 | ::tracing::error!(error = %e, "failed to serialize response");
|
7523 8273 | ::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))
|
7524 8274 | }
|
7525 8275 | }
|
7526 8276 | }
|
7527 8277 | }
|
7528 8278 | impl
|
7529 8279 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7530 8280 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7531 - | > for crate::error::HttpPayloadWithStructureError
|
8281 + | > for crate::error::MalformedTimestampBodyHttpDateError
|
7532 8282 | {
|
7533 8283 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7534 - | match crate::protocol_serde::shape_http_payload_with_structure::ser_http_payload_with_structure_http_error(&self) {
|
8284 + | match crate::protocol_serde::shape_malformed_timestamp_body_http_date::ser_malformed_timestamp_body_http_date_http_error(&self) {
|
7535 8285 | Ok(mut response) => {
|
7536 8286 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7537 8287 | response
|
7538 8288 | },
|
7539 8289 | Err(e) => {
|
7540 8290 | ::tracing::error!(error = %e, "failed to serialize response");
|
7541 8291 | ::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))
|
7542 8292 | }
|
7543 8293 | }
|
7544 8294 | }
|
7545 8295 | }
|
7546 8296 |
|
7547 8297 | ::pin_project_lite::pin_project! {
|
7548 8298 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7549 - | /// [`HttpPayloadTraitsWithMediaTypeInput`](crate::input::HttpPayloadTraitsWithMediaTypeInput) using modelled bindings.
|
7550 - | pub struct HttpPayloadTraitsWithMediaTypeInputFuture {
|
7551 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadTraitsWithMediaTypeInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8299 + | /// [`MalformedContentTypeWithoutBodyInput`](crate::input::MalformedContentTypeWithoutBodyInput) using modelled bindings.
|
8300 + | pub struct MalformedContentTypeWithoutBodyInputFuture {
|
8301 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithoutBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7552 8302 | }
|
7553 8303 | }
|
7554 8304 |
|
7555 - | impl std::future::Future for HttpPayloadTraitsWithMediaTypeInputFuture {
|
8305 + | impl std::future::Future for MalformedContentTypeWithoutBodyInputFuture {
|
7556 8306 | type Output = Result<
|
7557 - | crate::input::HttpPayloadTraitsWithMediaTypeInput,
|
8307 + | crate::input::MalformedContentTypeWithoutBodyInput,
|
7558 8308 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7559 8309 | >;
|
7560 8310 |
|
7561 8311 | fn poll(
|
7562 8312 | self: std::pin::Pin<&mut Self>,
|
7563 8313 | cx: &mut std::task::Context<'_>,
|
7564 8314 | ) -> std::task::Poll<Self::Output> {
|
7565 8315 | let this = self.project();
|
7566 8316 | this.inner.as_mut().poll(cx)
|
7567 8317 | }
|
7568 8318 | }
|
7569 8319 |
|
7570 8320 | impl<B>
|
7571 8321 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7572 8322 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7573 8323 | B,
|
7574 - | > for crate::input::HttpPayloadTraitsWithMediaTypeInput
|
8324 + | > for crate::input::MalformedContentTypeWithoutBodyInput
|
7575 8325 | where
|
7576 8326 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7577 8327 | B: 'static,
|
7578 8328 |
|
7579 8329 | B::Data: Send,
|
7580 8330 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7581 8331 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7582 8332 | {
|
7583 8333 | type Rejection =
|
7584 8334 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7585 - | type Future = HttpPayloadTraitsWithMediaTypeInputFuture;
|
8335 + | type Future = MalformedContentTypeWithoutBodyInputFuture;
|
7586 8336 |
|
7587 8337 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7588 8338 | let fut = async move {
|
7589 8339 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7590 8340 | request.headers(),
|
7591 - | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
8341 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7592 8342 | ) {
|
7593 8343 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7594 8344 | }
|
7595 - | crate::protocol_serde::shape_http_payload_traits_with_media_type::de_http_payload_traits_with_media_type_http_request(request)
|
8345 + | crate::protocol_serde::shape_malformed_content_type_without_body::de_malformed_content_type_without_body_http_request(request)
|
7596 8346 | .await
|
7597 8347 | };
|
7598 8348 | use ::futures_util::future::TryFutureExt;
|
7599 8349 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7600 8350 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7601 8351 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7602 8352 | });
|
7603 - | HttpPayloadTraitsWithMediaTypeInputFuture {
|
8353 + | MalformedContentTypeWithoutBodyInputFuture {
|
7604 8354 | inner: Box::pin(fut),
|
7605 8355 | }
|
7606 8356 | }
|
7607 8357 | }
|
7608 8358 | impl
|
7609 8359 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7610 8360 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7611 - | > for crate::output::HttpPayloadTraitsWithMediaTypeOutput
|
8361 + | > for crate::output::MalformedContentTypeWithoutBodyOutput
|
7612 8362 | {
|
7613 8363 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7614 - | match crate::protocol_serde::shape_http_payload_traits_with_media_type::ser_http_payload_traits_with_media_type_http_response(self) {
|
8364 + | match crate::protocol_serde::shape_malformed_content_type_without_body::ser_malformed_content_type_without_body_http_response(self) {
|
7615 8365 | Ok(response) => response,
|
7616 8366 | Err(e) => {
|
7617 8367 | ::tracing::error!(error = %e, "failed to serialize response");
|
7618 8368 | ::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))
|
7619 8369 | }
|
7620 8370 | }
|
7621 8371 | }
|
7622 8372 | }
|
7623 8373 | impl
|
7624 8374 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7625 8375 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7626 - | > for crate::error::HttpPayloadTraitsWithMediaTypeError
|
8376 + | > for crate::error::MalformedContentTypeWithoutBodyError
|
7627 8377 | {
|
7628 8378 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7629 - | match crate::protocol_serde::shape_http_payload_traits_with_media_type::ser_http_payload_traits_with_media_type_http_error(&self) {
|
8379 + | match crate::protocol_serde::shape_malformed_content_type_without_body::ser_malformed_content_type_without_body_http_error(&self) {
|
7630 8380 | Ok(mut response) => {
|
7631 8381 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7632 8382 | response
|
7633 8383 | },
|
7634 8384 | Err(e) => {
|
7635 8385 | ::tracing::error!(error = %e, "failed to serialize response");
|
7636 8386 | ::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))
|
7637 8387 | }
|
7638 8388 | }
|
7639 8389 | }
|
7640 8390 | }
|
7641 8391 |
|
7642 8392 | ::pin_project_lite::pin_project! {
|
7643 8393 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7644 - | /// [`HttpPayloadTraitsInput`](crate::input::HttpPayloadTraitsInput) using modelled bindings.
|
7645 - | pub struct HttpPayloadTraitsInputFuture {
|
7646 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPayloadTraitsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8394 + | /// [`MalformedContentTypeWithoutBodyEmptyInputInput`](crate::input::MalformedContentTypeWithoutBodyEmptyInputInput) using modelled bindings.
|
8395 + | pub struct MalformedContentTypeWithoutBodyEmptyInputInputFuture {
|
8396 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithoutBodyEmptyInputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7647 8397 | }
|
7648 8398 | }
|
7649 8399 |
|
7650 - | impl std::future::Future for HttpPayloadTraitsInputFuture {
|
8400 + | impl std::future::Future for MalformedContentTypeWithoutBodyEmptyInputInputFuture {
|
7651 8401 | type Output = Result<
|
7652 - | crate::input::HttpPayloadTraitsInput,
|
8402 + | crate::input::MalformedContentTypeWithoutBodyEmptyInputInput,
|
7653 8403 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7654 8404 | >;
|
7655 8405 |
|
7656 8406 | fn poll(
|
7657 8407 | self: std::pin::Pin<&mut Self>,
|
7658 8408 | cx: &mut std::task::Context<'_>,
|
7659 8409 | ) -> std::task::Poll<Self::Output> {
|
7660 8410 | let this = self.project();
|
7661 8411 | this.inner.as_mut().poll(cx)
|
7662 8412 | }
|
7663 8413 | }
|
7664 8414 |
|
7665 8415 | impl<B>
|
7666 8416 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7667 8417 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7668 8418 | B,
|
7669 - | > for crate::input::HttpPayloadTraitsInput
|
8419 + | > for crate::input::MalformedContentTypeWithoutBodyEmptyInputInput
|
7670 8420 | where
|
7671 8421 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7672 8422 | B: 'static,
|
7673 8423 |
|
7674 8424 | B::Data: Send,
|
7675 8425 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7676 8426 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7677 8427 | {
|
7678 8428 | type Rejection =
|
7679 8429 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7680 - | type Future = HttpPayloadTraitsInputFuture;
|
8430 + | type Future = MalformedContentTypeWithoutBodyEmptyInputInputFuture;
|
7681 8431 |
|
7682 8432 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7683 8433 | let fut = async move {
|
7684 - | crate::protocol_serde::shape_http_payload_traits::de_http_payload_traits_http_request(
|
7685 - | request,
|
7686 - | )
|
7687 - | .await
|
8434 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8435 + | request.headers(),
|
8436 + | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8437 + | ) {
|
8438 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8439 + | }
|
8440 + | crate::protocol_serde::shape_malformed_content_type_without_body_empty_input::de_malformed_content_type_without_body_empty_input_http_request(request)
|
8441 + | .await
|
7688 8442 | };
|
7689 8443 | use ::futures_util::future::TryFutureExt;
|
7690 8444 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7691 8445 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7692 8446 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7693 8447 | });
|
7694 - | HttpPayloadTraitsInputFuture {
|
8448 + | MalformedContentTypeWithoutBodyEmptyInputInputFuture {
|
7695 8449 | inner: Box::pin(fut),
|
7696 8450 | }
|
7697 8451 | }
|
7698 8452 | }
|
7699 8453 | impl
|
7700 8454 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7701 8455 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7702 - | > for crate::output::HttpPayloadTraitsOutput
|
8456 + | > for crate::output::MalformedContentTypeWithoutBodyEmptyInputOutput
|
7703 8457 | {
|
7704 8458 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7705 - | match crate::protocol_serde::shape_http_payload_traits::ser_http_payload_traits_http_response(self) {
|
8459 + | match crate::protocol_serde::shape_malformed_content_type_without_body_empty_input::ser_malformed_content_type_without_body_empty_input_http_response(self) {
|
7706 8460 | Ok(response) => response,
|
7707 8461 | Err(e) => {
|
7708 8462 | ::tracing::error!(error = %e, "failed to serialize response");
|
7709 8463 | ::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))
|
7710 8464 | }
|
7711 8465 | }
|
7712 8466 | }
|
7713 8467 | }
|
7714 8468 | impl
|
7715 8469 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7716 8470 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7717 - | > for crate::error::HttpPayloadTraitsError
|
8471 + | > for crate::error::MalformedContentTypeWithoutBodyEmptyInputError
|
7718 8472 | {
|
7719 8473 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7720 - | match crate::protocol_serde::shape_http_payload_traits::ser_http_payload_traits_http_error(
|
7721 - | &self,
|
7722 - | ) {
|
8474 + | match crate::protocol_serde::shape_malformed_content_type_without_body_empty_input::ser_malformed_content_type_without_body_empty_input_http_error(&self) {
|
7723 8475 | Ok(mut response) => {
|
7724 - | response.extensions_mut().insert(
|
7725 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
7726 - | self.name(),
|
7727 - | ),
|
7728 - | );
|
8476 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7729 8477 | response
|
7730 - | }
|
8478 + | },
|
7731 8479 | Err(e) => {
|
7732 8480 | ::tracing::error!(error = %e, "failed to serialize response");
|
7733 8481 | ::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))
|
7734 8482 | }
|
7735 8483 | }
|
7736 8484 | }
|
7737 8485 | }
|
7738 8486 |
|
7739 8487 | ::pin_project_lite::pin_project! {
|
7740 8488 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7741 - | /// [`HttpEmptyPrefixHeadersInput`](crate::input::HttpEmptyPrefixHeadersInput) using modelled bindings.
|
7742 - | pub struct HttpEmptyPrefixHeadersInputFuture {
|
7743 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpEmptyPrefixHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8489 + | /// [`MalformedContentTypeWithBodyInput`](crate::input::MalformedContentTypeWithBodyInput) using modelled bindings.
|
8490 + | pub struct MalformedContentTypeWithBodyInputFuture {
|
8491 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7744 8492 | }
|
7745 8493 | }
|
7746 8494 |
|
7747 - | impl std::future::Future for HttpEmptyPrefixHeadersInputFuture {
|
8495 + | impl std::future::Future for MalformedContentTypeWithBodyInputFuture {
|
7748 8496 | type Output = Result<
|
7749 - | crate::input::HttpEmptyPrefixHeadersInput,
|
8497 + | crate::input::MalformedContentTypeWithBodyInput,
|
7750 8498 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7751 8499 | >;
|
7752 8500 |
|
7753 8501 | fn poll(
|
7754 8502 | self: std::pin::Pin<&mut Self>,
|
7755 8503 | cx: &mut std::task::Context<'_>,
|
7756 8504 | ) -> std::task::Poll<Self::Output> {
|
7757 8505 | let this = self.project();
|
7758 8506 | this.inner.as_mut().poll(cx)
|
7759 8507 | }
|
7760 8508 | }
|
7761 8509 |
|
7762 8510 | impl<B>
|
7763 8511 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7764 8512 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7765 8513 | B,
|
7766 - | > for crate::input::HttpEmptyPrefixHeadersInput
|
8514 + | > for crate::input::MalformedContentTypeWithBodyInput
|
7767 8515 | where
|
7768 8516 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7769 8517 | B: 'static,
|
7770 8518 |
|
7771 8519 | B::Data: Send,
|
7772 8520 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7773 8521 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7774 8522 | {
|
7775 8523 | type Rejection =
|
7776 8524 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7777 - | type Future = HttpEmptyPrefixHeadersInputFuture;
|
8525 + | type Future = MalformedContentTypeWithBodyInputFuture;
|
7778 8526 |
|
7779 8527 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7780 8528 | let fut = async move {
|
7781 8529 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7782 8530 | request.headers(),
|
7783 8531 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7784 8532 | ) {
|
7785 8533 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7786 8534 | }
|
7787 - | crate::protocol_serde::shape_http_empty_prefix_headers::de_http_empty_prefix_headers_http_request(request)
|
8535 + | crate::protocol_serde::shape_malformed_content_type_with_body::de_malformed_content_type_with_body_http_request(request)
|
7788 8536 | .await
|
7789 8537 | };
|
7790 8538 | use ::futures_util::future::TryFutureExt;
|
7791 8539 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7792 8540 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7793 8541 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7794 8542 | });
|
7795 - | HttpEmptyPrefixHeadersInputFuture {
|
8543 + | MalformedContentTypeWithBodyInputFuture {
|
7796 8544 | inner: Box::pin(fut),
|
7797 8545 | }
|
7798 8546 | }
|
7799 8547 | }
|
7800 8548 | impl
|
7801 8549 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7802 8550 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7803 - | > for crate::output::HttpEmptyPrefixHeadersOutput
|
8551 + | > for crate::output::MalformedContentTypeWithBodyOutput
|
7804 8552 | {
|
7805 8553 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7806 - | match crate::protocol_serde::shape_http_empty_prefix_headers::ser_http_empty_prefix_headers_http_response(self) {
|
8554 + | match crate::protocol_serde::shape_malformed_content_type_with_body::ser_malformed_content_type_with_body_http_response(self) {
|
7807 8555 | Ok(response) => response,
|
7808 8556 | Err(e) => {
|
7809 8557 | ::tracing::error!(error = %e, "failed to serialize response");
|
7810 8558 | ::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))
|
7811 8559 | }
|
7812 8560 | }
|
7813 8561 | }
|
7814 8562 | }
|
7815 8563 | impl
|
7816 8564 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7817 8565 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7818 - | > for crate::error::HttpEmptyPrefixHeadersError
|
8566 + | > for crate::error::MalformedContentTypeWithBodyError
|
7819 8567 | {
|
7820 8568 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7821 - | match crate::protocol_serde::shape_http_empty_prefix_headers::ser_http_empty_prefix_headers_http_error(&self) {
|
8569 + | match crate::protocol_serde::shape_malformed_content_type_with_body::ser_malformed_content_type_with_body_http_error(&self) {
|
7822 8570 | Ok(mut response) => {
|
7823 8571 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7824 8572 | response
|
7825 8573 | },
|
7826 8574 | Err(e) => {
|
7827 8575 | ::tracing::error!(error = %e, "failed to serialize response");
|
7828 8576 | ::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))
|
7829 8577 | }
|
7830 8578 | }
|
7831 8579 | }
|
7832 8580 | }
|
7833 8581 |
|
7834 8582 | ::pin_project_lite::pin_project! {
|
7835 8583 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7836 - | /// [`HttpPrefixHeadersInResponseInput`](crate::input::HttpPrefixHeadersInResponseInput) using modelled bindings.
|
7837 - | pub struct HttpPrefixHeadersInResponseInputFuture {
|
7838 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPrefixHeadersInResponseInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8584 + | /// [`MalformedContentTypeWithPayloadInput`](crate::input::MalformedContentTypeWithPayloadInput) using modelled bindings.
|
8585 + | pub struct MalformedContentTypeWithPayloadInputFuture {
|
8586 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7839 8587 | }
|
7840 8588 | }
|
7841 8589 |
|
7842 - | impl std::future::Future for HttpPrefixHeadersInResponseInputFuture {
|
8590 + | impl std::future::Future for MalformedContentTypeWithPayloadInputFuture {
|
7843 8591 | type Output = Result<
|
7844 - | crate::input::HttpPrefixHeadersInResponseInput,
|
8592 + | crate::input::MalformedContentTypeWithPayloadInput,
|
7845 8593 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7846 8594 | >;
|
7847 8595 |
|
7848 8596 | fn poll(
|
7849 8597 | self: std::pin::Pin<&mut Self>,
|
7850 8598 | cx: &mut std::task::Context<'_>,
|
7851 8599 | ) -> std::task::Poll<Self::Output> {
|
7852 8600 | let this = self.project();
|
7853 8601 | this.inner.as_mut().poll(cx)
|
7854 8602 | }
|
7855 8603 | }
|
7856 8604 |
|
7857 8605 | impl<B>
|
7858 8606 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7859 8607 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7860 8608 | B,
|
7861 - | > for crate::input::HttpPrefixHeadersInResponseInput
|
8609 + | > for crate::input::MalformedContentTypeWithPayloadInput
|
7862 8610 | where
|
7863 8611 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7864 8612 | B: 'static,
|
7865 8613 |
|
7866 8614 | B::Data: Send,
|
7867 8615 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7868 8616 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7869 8617 | {
|
7870 8618 | type Rejection =
|
7871 8619 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7872 - | type Future = HttpPrefixHeadersInResponseInputFuture;
|
8620 + | type Future = MalformedContentTypeWithPayloadInputFuture;
|
7873 8621 |
|
7874 8622 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7875 8623 | let fut = async move {
|
7876 8624 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7877 8625 | request.headers(),
|
7878 8626 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7879 8627 | ) {
|
7880 8628 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7881 8629 | }
|
7882 - | crate::protocol_serde::shape_http_prefix_headers_in_response::de_http_prefix_headers_in_response_http_request(request)
|
8630 + | crate::protocol_serde::shape_malformed_content_type_with_payload::de_malformed_content_type_with_payload_http_request(request)
|
7883 8631 | .await
|
7884 8632 | };
|
7885 8633 | use ::futures_util::future::TryFutureExt;
|
7886 8634 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7887 8635 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7888 8636 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7889 8637 | });
|
7890 - | HttpPrefixHeadersInResponseInputFuture {
|
8638 + | MalformedContentTypeWithPayloadInputFuture {
|
7891 8639 | inner: Box::pin(fut),
|
7892 8640 | }
|
7893 8641 | }
|
7894 8642 | }
|
7895 8643 | impl
|
7896 8644 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7897 8645 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7898 - | > for crate::output::HttpPrefixHeadersInResponseOutput
|
8646 + | > for crate::output::MalformedContentTypeWithPayloadOutput
|
7899 8647 | {
|
7900 8648 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7901 - | match crate::protocol_serde::shape_http_prefix_headers_in_response::ser_http_prefix_headers_in_response_http_response(self) {
|
8649 + | match crate::protocol_serde::shape_malformed_content_type_with_payload::ser_malformed_content_type_with_payload_http_response(self) {
|
7902 8650 | Ok(response) => response,
|
7903 8651 | Err(e) => {
|
7904 8652 | ::tracing::error!(error = %e, "failed to serialize response");
|
7905 8653 | ::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))
|
7906 8654 | }
|
7907 8655 | }
|
7908 8656 | }
|
7909 8657 | }
|
7910 8658 | impl
|
7911 8659 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7912 8660 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7913 - | > for crate::error::HttpPrefixHeadersInResponseError
|
8661 + | > for crate::error::MalformedContentTypeWithPayloadError
|
7914 8662 | {
|
7915 8663 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7916 - | match crate::protocol_serde::shape_http_prefix_headers_in_response::ser_http_prefix_headers_in_response_http_error(&self) {
|
8664 + | match crate::protocol_serde::shape_malformed_content_type_with_payload::ser_malformed_content_type_with_payload_http_error(&self) {
|
7917 8665 | Ok(mut response) => {
|
7918 8666 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
7919 8667 | response
|
7920 8668 | },
|
7921 8669 | Err(e) => {
|
7922 8670 | ::tracing::error!(error = %e, "failed to serialize response");
|
7923 8671 | ::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))
|
7924 8672 | }
|
7925 8673 | }
|
7926 8674 | }
|
7927 8675 | }
|
7928 8676 |
|
7929 8677 | ::pin_project_lite::pin_project! {
|
7930 8678 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
7931 - | /// [`HttpPrefixHeadersInput`](crate::input::HttpPrefixHeadersInput) using modelled bindings.
|
7932 - | pub struct HttpPrefixHeadersInputFuture {
|
7933 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpPrefixHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8679 + | /// [`MalformedContentTypeWithGenericStringInput`](crate::input::MalformedContentTypeWithGenericStringInput) using modelled bindings.
|
8680 + | pub struct MalformedContentTypeWithGenericStringInputFuture {
|
8681 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedContentTypeWithGenericStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7934 8682 | }
|
7935 8683 | }
|
7936 8684 |
|
7937 - | impl std::future::Future for HttpPrefixHeadersInputFuture {
|
8685 + | impl std::future::Future for MalformedContentTypeWithGenericStringInputFuture {
|
7938 8686 | type Output = Result<
|
7939 - | crate::input::HttpPrefixHeadersInput,
|
8687 + | crate::input::MalformedContentTypeWithGenericStringInput,
|
7940 8688 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
7941 8689 | >;
|
7942 8690 |
|
7943 8691 | fn poll(
|
7944 8692 | self: std::pin::Pin<&mut Self>,
|
7945 8693 | cx: &mut std::task::Context<'_>,
|
7946 8694 | ) -> std::task::Poll<Self::Output> {
|
7947 8695 | let this = self.project();
|
7948 8696 | this.inner.as_mut().poll(cx)
|
7949 8697 | }
|
7950 8698 | }
|
7951 8699 |
|
7952 8700 | impl<B>
|
7953 8701 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
7954 8702 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7955 8703 | B,
|
7956 - | > for crate::input::HttpPrefixHeadersInput
|
8704 + | > for crate::input::MalformedContentTypeWithGenericStringInput
|
7957 8705 | where
|
7958 8706 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
7959 8707 | B: 'static,
|
7960 8708 |
|
7961 8709 | B::Data: Send,
|
7962 8710 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
7963 8711 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
7964 8712 | {
|
7965 8713 | type Rejection =
|
7966 8714 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
7967 - | type Future = HttpPrefixHeadersInputFuture;
|
8715 + | type Future = MalformedContentTypeWithGenericStringInputFuture;
|
7968 8716 |
|
7969 8717 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
7970 8718 | let fut = async move {
|
7971 8719 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
7972 8720 | request.headers(),
|
7973 8721 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
7974 8722 | ) {
|
7975 8723 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
7976 8724 | }
|
7977 - | crate::protocol_serde::shape_http_prefix_headers::de_http_prefix_headers_http_request(
|
7978 - | request,
|
7979 - | )
|
7980 - | .await
|
8725 + | crate::protocol_serde::shape_malformed_content_type_with_generic_string::de_malformed_content_type_with_generic_string_http_request(request)
|
8726 + | .await
|
7981 8727 | };
|
7982 8728 | use ::futures_util::future::TryFutureExt;
|
7983 8729 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
7984 8730 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
7985 8731 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
7986 8732 | });
|
7987 - | HttpPrefixHeadersInputFuture {
|
8733 + | MalformedContentTypeWithGenericStringInputFuture {
|
7988 8734 | inner: Box::pin(fut),
|
7989 8735 | }
|
7990 8736 | }
|
7991 8737 | }
|
7992 8738 | impl
|
7993 8739 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
7994 8740 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
7995 - | > for crate::output::HttpPrefixHeadersOutput
|
8741 + | > for crate::output::MalformedContentTypeWithGenericStringOutput
|
7996 8742 | {
|
7997 8743 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
7998 - | match crate::protocol_serde::shape_http_prefix_headers::ser_http_prefix_headers_http_response(self) {
|
8744 + | match crate::protocol_serde::shape_malformed_content_type_with_generic_string::ser_malformed_content_type_with_generic_string_http_response(self) {
|
7999 8745 | Ok(response) => response,
|
8000 8746 | Err(e) => {
|
8001 8747 | ::tracing::error!(error = %e, "failed to serialize response");
|
8002 8748 | ::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))
|
8003 8749 | }
|
8004 8750 | }
|
8005 8751 | }
|
8006 8752 | }
|
8007 8753 | impl
|
8008 8754 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8009 8755 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8010 - | > for crate::error::HttpPrefixHeadersError
|
8756 + | > for crate::error::MalformedContentTypeWithGenericStringError
|
8011 8757 | {
|
8012 8758 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8013 - | match crate::protocol_serde::shape_http_prefix_headers::ser_http_prefix_headers_http_error(
|
8014 - | &self,
|
8015 - | ) {
|
8759 + | match crate::protocol_serde::shape_malformed_content_type_with_generic_string::ser_malformed_content_type_with_generic_string_http_error(&self) {
|
8016 8760 | Ok(mut response) => {
|
8017 - | response.extensions_mut().insert(
|
8018 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
8019 - | self.name(),
|
8020 - | ),
|
8021 - | );
|
8761 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
8022 8762 | response
|
8023 - | }
|
8763 + | },
|
8024 8764 | Err(e) => {
|
8025 8765 | ::tracing::error!(error = %e, "failed to serialize response");
|
8026 8766 | ::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))
|
8027 8767 | }
|
8028 8768 | }
|
8029 8769 | }
|
8030 8770 | }
|
8031 8771 |
|
8032 8772 | ::pin_project_lite::pin_project! {
|
8033 8773 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8034 - | /// [`QueryParamsAsStringListMapInput`](crate::input::QueryParamsAsStringListMapInput) using modelled bindings.
|
8035 - | pub struct QueryParamsAsStringListMapInputFuture {
|
8036 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryParamsAsStringListMapInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8774 + | /// [`MalformedAcceptWithBodyInput`](crate::input::MalformedAcceptWithBodyInput) using modelled bindings.
|
8775 + | pub struct MalformedAcceptWithBodyInputFuture {
|
8776 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedAcceptWithBodyInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8037 8777 | }
|
8038 8778 | }
|
8039 8779 |
|
8040 - | impl std::future::Future for QueryParamsAsStringListMapInputFuture {
|
8780 + | impl std::future::Future for MalformedAcceptWithBodyInputFuture {
|
8041 8781 | type Output = Result<
|
8042 - | crate::input::QueryParamsAsStringListMapInput,
|
8782 + | crate::input::MalformedAcceptWithBodyInput,
|
8043 8783 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8044 8784 | >;
|
8045 8785 |
|
8046 8786 | fn poll(
|
8047 8787 | self: std::pin::Pin<&mut Self>,
|
8048 8788 | cx: &mut std::task::Context<'_>,
|
8049 8789 | ) -> std::task::Poll<Self::Output> {
|
8050 8790 | let this = self.project();
|
8051 8791 | this.inner.as_mut().poll(cx)
|
8052 8792 | }
|
8053 8793 | }
|
8054 8794 |
|
8055 8795 | impl<B>
|
8056 8796 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8057 8797 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8058 8798 | B,
|
8059 - | > for crate::input::QueryParamsAsStringListMapInput
|
8799 + | > for crate::input::MalformedAcceptWithBodyInput
|
8060 8800 | where
|
8061 8801 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8062 8802 | B: 'static,
|
8063 8803 |
|
8064 8804 | B::Data: Send,
|
8065 8805 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8066 8806 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8067 8807 | {
|
8068 8808 | type Rejection =
|
8069 8809 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8070 - | type Future = QueryParamsAsStringListMapInputFuture;
|
8810 + | type Future = MalformedAcceptWithBodyInputFuture;
|
8071 8811 |
|
8072 8812 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8073 8813 | let fut = async move {
|
8074 8814 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8075 8815 | request.headers(),
|
8076 8816 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8077 8817 | ) {
|
8078 8818 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8079 8819 | }
|
8080 - | crate::protocol_serde::shape_query_params_as_string_list_map::de_query_params_as_string_list_map_http_request(request)
|
8820 + | crate::protocol_serde::shape_malformed_accept_with_body::de_malformed_accept_with_body_http_request(request)
|
8081 8821 | .await
|
8082 8822 | };
|
8083 8823 | use ::futures_util::future::TryFutureExt;
|
8084 8824 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8085 8825 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8086 8826 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8087 8827 | });
|
8088 - | QueryParamsAsStringListMapInputFuture {
|
8828 + | MalformedAcceptWithBodyInputFuture {
|
8089 8829 | inner: Box::pin(fut),
|
8090 8830 | }
|
8091 8831 | }
|
8092 8832 | }
|
8093 8833 | impl
|
8094 8834 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8095 8835 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8096 - | > for crate::output::QueryParamsAsStringListMapOutput
|
8836 + | > for crate::output::MalformedAcceptWithBodyOutput
|
8097 8837 | {
|
8098 8838 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8099 - | match crate::protocol_serde::shape_query_params_as_string_list_map::ser_query_params_as_string_list_map_http_response(self) {
|
8839 + | match crate::protocol_serde::shape_malformed_accept_with_body::ser_malformed_accept_with_body_http_response(self) {
|
8100 8840 | Ok(response) => response,
|
8101 8841 | Err(e) => {
|
8102 8842 | ::tracing::error!(error = %e, "failed to serialize response");
|
8103 8843 | ::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))
|
8104 8844 | }
|
8105 8845 | }
|
8106 8846 | }
|
8107 8847 | }
|
8108 8848 | impl
|
8109 8849 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8110 8850 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8111 - | > for crate::error::QueryParamsAsStringListMapError
|
8851 + | > for crate::error::MalformedAcceptWithBodyError
|
8112 8852 | {
|
8113 8853 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8114 - | match crate::protocol_serde::shape_query_params_as_string_list_map::ser_query_params_as_string_list_map_http_error(&self) {
|
8854 + | match crate::protocol_serde::shape_malformed_accept_with_body::ser_malformed_accept_with_body_http_error(&self) {
|
8115 8855 | Ok(mut response) => {
|
8116 8856 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
8117 8857 | response
|
8118 8858 | },
|
8119 8859 | Err(e) => {
|
8120 8860 | ::tracing::error!(error = %e, "failed to serialize response");
|
8121 8861 | ::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))
|
8122 8862 | }
|
8123 8863 | }
|
8124 8864 | }
|
8125 8865 | }
|
8126 8866 |
|
8127 8867 | ::pin_project_lite::pin_project! {
|
8128 8868 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8129 - | /// [`QueryPrecedenceInput`](crate::input::QueryPrecedenceInput) using modelled bindings.
|
8130 - | pub struct QueryPrecedenceInputFuture {
|
8131 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryPrecedenceInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8869 + | /// [`MalformedAcceptWithPayloadInput`](crate::input::MalformedAcceptWithPayloadInput) using modelled bindings.
|
8870 + | pub struct MalformedAcceptWithPayloadInputFuture {
|
8871 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedAcceptWithPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8132 8872 | }
|
8133 8873 | }
|
8134 8874 |
|
8135 - | impl std::future::Future for QueryPrecedenceInputFuture {
|
8875 + | impl std::future::Future for MalformedAcceptWithPayloadInputFuture {
|
8136 8876 | type Output = Result<
|
8137 - | crate::input::QueryPrecedenceInput,
|
8877 + | crate::input::MalformedAcceptWithPayloadInput,
|
8138 8878 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8139 8879 | >;
|
8140 8880 |
|
8141 8881 | fn poll(
|
8142 8882 | self: std::pin::Pin<&mut Self>,
|
8143 8883 | cx: &mut std::task::Context<'_>,
|
8144 8884 | ) -> std::task::Poll<Self::Output> {
|
8145 8885 | let this = self.project();
|
8146 8886 | this.inner.as_mut().poll(cx)
|
8147 8887 | }
|
8148 8888 | }
|
8149 8889 |
|
8150 8890 | impl<B>
|
8151 8891 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8152 8892 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8153 8893 | B,
|
8154 - | > for crate::input::QueryPrecedenceInput
|
8894 + | > for crate::input::MalformedAcceptWithPayloadInput
|
8155 8895 | where
|
8156 8896 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8157 8897 | B: 'static,
|
8158 8898 |
|
8159 8899 | B::Data: Send,
|
8160 8900 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8161 8901 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8162 8902 | {
|
8163 8903 | type Rejection =
|
8164 8904 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8165 - | type Future = QueryPrecedenceInputFuture;
|
8905 + | type Future = MalformedAcceptWithPayloadInputFuture;
|
8166 8906 |
|
8167 8907 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8168 8908 | let fut = async move {
|
8169 8909 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8170 8910 | request.headers(),
|
8171 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8911 + | &crate::mimes::CONTENT_TYPE_IMAGE_JPEG,
|
8172 8912 | ) {
|
8173 8913 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8174 8914 | }
|
8175 - | crate::protocol_serde::shape_query_precedence::de_query_precedence_http_request(request)
|
8176 - | .await
|
8915 + | crate::protocol_serde::shape_malformed_accept_with_payload::de_malformed_accept_with_payload_http_request(request)
|
8916 + | .await
|
8177 8917 | };
|
8178 8918 | use ::futures_util::future::TryFutureExt;
|
8179 8919 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8180 8920 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8181 8921 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8182 8922 | });
|
8183 - | QueryPrecedenceInputFuture {
|
8923 + | MalformedAcceptWithPayloadInputFuture {
|
8184 8924 | inner: Box::pin(fut),
|
8185 8925 | }
|
8186 8926 | }
|
8187 8927 | }
|
8188 8928 | impl
|
8189 8929 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8190 8930 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8191 - | > for crate::output::QueryPrecedenceOutput
|
8931 + | > for crate::output::MalformedAcceptWithPayloadOutput
|
8192 8932 | {
|
8193 8933 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8194 - | match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_response(
|
8195 - | self,
|
8196 - | ) {
|
8197 - | Ok(response) => response,
|
8198 - | Err(e) => {
|
8199 - | ::tracing::error!(error = %e, "failed to serialize response");
|
8200 - | ::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))
|
8201 - | }
|
8202 - | }
|
8934 + | match crate::protocol_serde::shape_malformed_accept_with_payload::ser_malformed_accept_with_payload_http_response(self) {
|
8935 + | Ok(response) => response,
|
8936 + | Err(e) => {
|
8937 + | ::tracing::error!(error = %e, "failed to serialize response");
|
8938 + | ::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))
|
8939 + | }
|
8940 + | }
|
8203 8941 | }
|
8204 8942 | }
|
8205 8943 | impl
|
8206 8944 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8207 8945 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8208 - | > for crate::error::QueryPrecedenceError
|
8946 + | > for crate::error::MalformedAcceptWithPayloadError
|
8209 8947 | {
|
8210 8948 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8211 - | match crate::protocol_serde::shape_query_precedence::ser_query_precedence_http_error(&self)
|
8212 - | {
|
8949 + | match crate::protocol_serde::shape_malformed_accept_with_payload::ser_malformed_accept_with_payload_http_error(&self) {
|
8213 8950 | Ok(mut response) => {
|
8214 - | response.extensions_mut().insert(
|
8215 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
8216 - | self.name(),
|
8217 - | ),
|
8218 - | );
|
8951 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
8219 8952 | response
|
8220 - | }
|
8953 + | },
|
8221 8954 | Err(e) => {
|
8222 8955 | ::tracing::error!(error = %e, "failed to serialize response");
|
8223 8956 | ::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))
|
8224 8957 | }
|
8225 8958 | }
|
8226 8959 | }
|
8227 8960 | }
|
8228 8961 |
|
8229 8962 | ::pin_project_lite::pin_project! {
|
8230 8963 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8231 - | /// [`QueryIdempotencyTokenAutoFillInput`](crate::input::QueryIdempotencyTokenAutoFillInput) using modelled bindings.
|
8232 - | pub struct QueryIdempotencyTokenAutoFillInputFuture {
|
8233 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::QueryIdempotencyTokenAutoFillInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8964 + | /// [`MalformedAcceptWithGenericStringInput`](crate::input::MalformedAcceptWithGenericStringInput) using modelled bindings.
|
8965 + | pub struct MalformedAcceptWithGenericStringInputFuture {
|
8966 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MalformedAcceptWithGenericStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8234 8967 | }
|
8235 8968 | }
|
8236 8969 |
|
8237 - | impl std::future::Future for QueryIdempotencyTokenAutoFillInputFuture {
|
8970 + | impl std::future::Future for MalformedAcceptWithGenericStringInputFuture {
|
8238 8971 | type Output = Result<
|
8239 - | crate::input::QueryIdempotencyTokenAutoFillInput,
|
8972 + | crate::input::MalformedAcceptWithGenericStringInput,
|
8240 8973 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8241 8974 | >;
|
8242 8975 |
|
8243 8976 | fn poll(
|
8244 8977 | self: std::pin::Pin<&mut Self>,
|
8245 8978 | cx: &mut std::task::Context<'_>,
|
8246 8979 | ) -> std::task::Poll<Self::Output> {
|
8247 8980 | let this = self.project();
|
8248 8981 | this.inner.as_mut().poll(cx)
|
8249 8982 | }
|
8250 8983 | }
|
8251 8984 |
|
8252 8985 | impl<B>
|
8253 8986 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8254 8987 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8255 8988 | B,
|
8256 - | > for crate::input::QueryIdempotencyTokenAutoFillInput
|
8989 + | > for crate::input::MalformedAcceptWithGenericStringInput
|
8257 8990 | where
|
8258 8991 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8259 8992 | B: 'static,
|
8260 8993 |
|
8261 8994 | B::Data: Send,
|
8262 8995 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8263 8996 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8264 8997 | {
|
8265 8998 | type Rejection =
|
8266 8999 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8267 - | type Future = QueryIdempotencyTokenAutoFillInputFuture;
|
9000 + | type Future = MalformedAcceptWithGenericStringInputFuture;
|
8268 9001 |
|
8269 9002 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8270 9003 | let fut = async move {
|
8271 9004 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8272 9005 | request.headers(),
|
8273 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9006 + | &crate::mimes::CONTENT_TYPE_TEXT_PLAIN,
|
8274 9007 | ) {
|
8275 9008 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8276 9009 | }
|
8277 - | crate::protocol_serde::shape_query_idempotency_token_auto_fill::de_query_idempotency_token_auto_fill_http_request(request)
|
9010 + | crate::protocol_serde::shape_malformed_accept_with_generic_string::de_malformed_accept_with_generic_string_http_request(request)
|
8278 9011 | .await
|
8279 9012 | };
|
8280 9013 | use ::futures_util::future::TryFutureExt;
|
8281 9014 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8282 9015 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8283 9016 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8284 9017 | });
|
8285 - | QueryIdempotencyTokenAutoFillInputFuture {
|
9018 + | MalformedAcceptWithGenericStringInputFuture {
|
8286 9019 | inner: Box::pin(fut),
|
8287 9020 | }
|
8288 9021 | }
|
8289 9022 | }
|
8290 9023 | impl
|
8291 9024 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8292 9025 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8293 - | > for crate::output::QueryIdempotencyTokenAutoFillOutput
|
9026 + | > for crate::output::MalformedAcceptWithGenericStringOutput
|
8294 9027 | {
|
8295 9028 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8296 - | match crate::protocol_serde::shape_query_idempotency_token_auto_fill::ser_query_idempotency_token_auto_fill_http_response(self) {
|
9029 + | match crate::protocol_serde::shape_malformed_accept_with_generic_string::ser_malformed_accept_with_generic_string_http_response(self) {
|
8297 9030 | Ok(response) => response,
|
8298 9031 | Err(e) => {
|
8299 9032 | ::tracing::error!(error = %e, "failed to serialize response");
|
8300 9033 | ::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))
|
8301 9034 | }
|
8302 9035 | }
|
8303 9036 | }
|
8304 9037 | }
|
8305 9038 | impl
|
8306 9039 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8307 9040 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8308 - | > for crate::error::QueryIdempotencyTokenAutoFillError
|
9041 + | > for crate::error::MalformedAcceptWithGenericStringError
|
8309 9042 | {
|
8310 9043 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8311 - | match crate::protocol_serde::shape_query_idempotency_token_auto_fill::ser_query_idempotency_token_auto_fill_http_error(&self) {
|
9044 + | match crate::protocol_serde::shape_malformed_accept_with_generic_string::ser_malformed_accept_with_generic_string_http_error(&self) {
|
8312 9045 | Ok(mut response) => {
|
8313 9046 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
8314 9047 | response
|
8315 9048 | },
|
8316 9049 | Err(e) => {
|
8317 9050 | ::tracing::error!(error = %e, "failed to serialize response");
|
8318 9051 | ::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))
|
8319 9052 | }
|
8320 9053 | }
|
8321 9054 | }
|
8322 9055 | }
|
8323 9056 |
|
8324 9057 | ::pin_project_lite::pin_project! {
|
8325 9058 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8326 - | /// [`OmitsSerializingEmptyListsInput`](crate::input::OmitsSerializingEmptyListsInput) using modelled bindings.
|
8327 - | pub struct OmitsSerializingEmptyListsInputFuture {
|
8328 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OmitsSerializingEmptyListsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9059 + | /// [`TestBodyStructureInput`](crate::input::TestBodyStructureInput) using modelled bindings.
|
9060 + | pub struct TestBodyStructureInputFuture {
|
9061 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestBodyStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8329 9062 | }
|
8330 9063 | }
|
8331 9064 |
|
8332 - | impl std::future::Future for OmitsSerializingEmptyListsInputFuture {
|
9065 + | impl std::future::Future for TestBodyStructureInputFuture {
|
8333 9066 | type Output = Result<
|
8334 - | crate::input::OmitsSerializingEmptyListsInput,
|
9067 + | crate::input::TestBodyStructureInput,
|
8335 9068 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8336 9069 | >;
|
8337 9070 |
|
8338 9071 | fn poll(
|
8339 9072 | self: std::pin::Pin<&mut Self>,
|
8340 9073 | cx: &mut std::task::Context<'_>,
|
8341 9074 | ) -> std::task::Poll<Self::Output> {
|
8342 9075 | let this = self.project();
|
8343 9076 | this.inner.as_mut().poll(cx)
|
8344 9077 | }
|
8345 9078 | }
|
8346 9079 |
|
8347 9080 | impl<B>
|
8348 9081 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8349 9082 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8350 9083 | B,
|
8351 - | > for crate::input::OmitsSerializingEmptyListsInput
|
9084 + | > for crate::input::TestBodyStructureInput
|
8352 9085 | where
|
8353 9086 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8354 9087 | B: 'static,
|
8355 9088 |
|
8356 9089 | B::Data: Send,
|
8357 9090 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8358 9091 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8359 9092 | {
|
8360 9093 | type Rejection =
|
8361 9094 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8362 - | type Future = OmitsSerializingEmptyListsInputFuture;
|
9095 + | type Future = TestBodyStructureInputFuture;
|
8363 9096 |
|
8364 9097 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8365 9098 | let fut = async move {
|
8366 9099 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8367 9100 | request.headers(),
|
8368 9101 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8369 9102 | ) {
|
8370 9103 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8371 9104 | }
|
8372 - | crate::protocol_serde::shape_omits_serializing_empty_lists::de_omits_serializing_empty_lists_http_request(request)
|
8373 - | .await
|
9105 + | crate::protocol_serde::shape_test_body_structure::de_test_body_structure_http_request(
|
9106 + | request,
|
9107 + | )
|
9108 + | .await
|
8374 9109 | };
|
8375 9110 | use ::futures_util::future::TryFutureExt;
|
8376 9111 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8377 9112 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8378 9113 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8379 9114 | });
|
8380 - | OmitsSerializingEmptyListsInputFuture {
|
9115 + | TestBodyStructureInputFuture {
|
8381 9116 | inner: Box::pin(fut),
|
8382 9117 | }
|
8383 9118 | }
|
8384 9119 | }
|
8385 9120 | impl
|
8386 9121 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8387 9122 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8388 - | > for crate::output::OmitsSerializingEmptyListsOutput
|
9123 + | > for crate::output::TestBodyStructureOutput
|
8389 9124 | {
|
8390 9125 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8391 - | match crate::protocol_serde::shape_omits_serializing_empty_lists::ser_omits_serializing_empty_lists_http_response(self) {
|
9126 + | match crate::protocol_serde::shape_test_body_structure::ser_test_body_structure_http_response(self) {
|
8392 9127 | Ok(response) => response,
|
8393 9128 | Err(e) => {
|
8394 9129 | ::tracing::error!(error = %e, "failed to serialize response");
|
8395 9130 | ::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))
|
8396 9131 | }
|
8397 9132 | }
|
8398 9133 | }
|
8399 9134 | }
|
8400 9135 | impl
|
8401 9136 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8402 9137 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8403 - | > for crate::error::OmitsSerializingEmptyListsError
|
9138 + | > for crate::error::TestBodyStructureError
|
8404 9139 | {
|
8405 9140 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8406 - | match crate::protocol_serde::shape_omits_serializing_empty_lists::ser_omits_serializing_empty_lists_http_error(&self) {
|
9141 + | match crate::protocol_serde::shape_test_body_structure::ser_test_body_structure_http_error(
|
9142 + | &self,
|
9143 + | ) {
|
8407 9144 | Ok(mut response) => {
|
8408 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9145 + | response.extensions_mut().insert(
|
9146 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
9147 + | self.name(),
|
9148 + | ),
|
9149 + | );
|
8409 9150 | response
|
8410 - | },
|
9151 + | }
|
8411 9152 | Err(e) => {
|
8412 9153 | ::tracing::error!(error = %e, "failed to serialize response");
|
8413 9154 | ::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))
|
8414 9155 | }
|
8415 9156 | }
|
8416 9157 | }
|
8417 9158 | }
|
8418 9159 |
|
8419 9160 | ::pin_project_lite::pin_project! {
|
8420 9161 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8421 - | /// [`OmitsNullSerializesEmptyStringInput`](crate::input::OmitsNullSerializesEmptyStringInput) using modelled bindings.
|
8422 - | pub struct OmitsNullSerializesEmptyStringInputFuture {
|
8423 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OmitsNullSerializesEmptyStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9162 + | /// [`TestPayloadStructureInput`](crate::input::TestPayloadStructureInput) using modelled bindings.
|
9163 + | pub struct TestPayloadStructureInputFuture {
|
9164 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPayloadStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8424 9165 | }
|
8425 9166 | }
|
8426 9167 |
|
8427 - | impl std::future::Future for OmitsNullSerializesEmptyStringInputFuture {
|
9168 + | impl std::future::Future for TestPayloadStructureInputFuture {
|
8428 9169 | type Output = Result<
|
8429 - | crate::input::OmitsNullSerializesEmptyStringInput,
|
9170 + | crate::input::TestPayloadStructureInput,
|
8430 9171 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8431 9172 | >;
|
8432 9173 |
|
8433 9174 | fn poll(
|
8434 9175 | self: std::pin::Pin<&mut Self>,
|
8435 9176 | cx: &mut std::task::Context<'_>,
|
8436 9177 | ) -> std::task::Poll<Self::Output> {
|
8437 9178 | let this = self.project();
|
8438 9179 | this.inner.as_mut().poll(cx)
|
8439 9180 | }
|
8440 9181 | }
|
8441 9182 |
|
8442 9183 | impl<B>
|
8443 9184 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8444 9185 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8445 9186 | B,
|
8446 - | > for crate::input::OmitsNullSerializesEmptyStringInput
|
9187 + | > for crate::input::TestPayloadStructureInput
|
8447 9188 | where
|
8448 9189 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8449 9190 | B: 'static,
|
8450 9191 |
|
8451 9192 | B::Data: Send,
|
8452 9193 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8453 9194 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8454 9195 | {
|
8455 9196 | type Rejection =
|
8456 9197 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8457 - | type Future = OmitsNullSerializesEmptyStringInputFuture;
|
9198 + | type Future = TestPayloadStructureInputFuture;
|
8458 9199 |
|
8459 9200 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8460 9201 | let fut = async move {
|
8461 9202 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8462 9203 | request.headers(),
|
8463 9204 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8464 9205 | ) {
|
8465 9206 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8466 9207 | }
|
8467 - | crate::protocol_serde::shape_omits_null_serializes_empty_string::de_omits_null_serializes_empty_string_http_request(request)
|
9208 + | crate::protocol_serde::shape_test_payload_structure::de_test_payload_structure_http_request(request)
|
8468 9209 | .await
|
8469 9210 | };
|
8470 9211 | use ::futures_util::future::TryFutureExt;
|
8471 9212 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8472 9213 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8473 9214 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8474 9215 | });
|
8475 - | OmitsNullSerializesEmptyStringInputFuture {
|
9216 + | TestPayloadStructureInputFuture {
|
8476 9217 | inner: Box::pin(fut),
|
8477 9218 | }
|
8478 9219 | }
|
8479 9220 | }
|
8480 9221 | impl
|
8481 9222 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8482 9223 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8483 - | > for crate::output::OmitsNullSerializesEmptyStringOutput
|
9224 + | > for crate::output::TestPayloadStructureOutput
|
8484 9225 | {
|
8485 9226 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8486 - | match crate::protocol_serde::shape_omits_null_serializes_empty_string::ser_omits_null_serializes_empty_string_http_response(self) {
|
9227 + | match crate::protocol_serde::shape_test_payload_structure::ser_test_payload_structure_http_response(self) {
|
8487 9228 | Ok(response) => response,
|
8488 9229 | Err(e) => {
|
8489 9230 | ::tracing::error!(error = %e, "failed to serialize response");
|
8490 9231 | ::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))
|
8491 9232 | }
|
8492 9233 | }
|
8493 9234 | }
|
8494 9235 | }
|
8495 9236 | impl
|
8496 9237 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8497 9238 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8498 - | > for crate::error::OmitsNullSerializesEmptyStringError
|
9239 + | > for crate::error::TestPayloadStructureError
|
8499 9240 | {
|
8500 9241 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8501 - | match crate::protocol_serde::shape_omits_null_serializes_empty_string::ser_omits_null_serializes_empty_string_http_error(&self) {
|
9242 + | match crate::protocol_serde::shape_test_payload_structure::ser_test_payload_structure_http_error(&self) {
|
8502 9243 | Ok(mut response) => {
|
8503 9244 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
8504 9245 | response
|
8505 9246 | },
|
8506 9247 | Err(e) => {
|
8507 9248 | ::tracing::error!(error = %e, "failed to serialize response");
|
8508 9249 | ::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))
|
8509 9250 | }
|
8510 9251 | }
|
8511 9252 | }
|
8512 9253 | }
|
8513 9254 |
|
8514 9255 | ::pin_project_lite::pin_project! {
|
8515 9256 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8516 - | /// [`IgnoreQueryParamsInResponseInput`](crate::input::IgnoreQueryParamsInResponseInput) using modelled bindings.
|
8517 - | pub struct IgnoreQueryParamsInResponseInputFuture {
|
8518 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::IgnoreQueryParamsInResponseInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9257 + | /// [`TestPayloadBlobInput`](crate::input::TestPayloadBlobInput) using modelled bindings.
|
9258 + | pub struct TestPayloadBlobInputFuture {
|
9259 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPayloadBlobInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8519 9260 | }
|
8520 9261 | }
|
8521 9262 |
|
8522 - | impl std::future::Future for IgnoreQueryParamsInResponseInputFuture {
|
9263 + | impl std::future::Future for TestPayloadBlobInputFuture {
|
8523 9264 | type Output = Result<
|
8524 - | crate::input::IgnoreQueryParamsInResponseInput,
|
9265 + | crate::input::TestPayloadBlobInput,
|
8525 9266 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8526 9267 | >;
|
8527 9268 |
|
8528 9269 | fn poll(
|
8529 9270 | self: std::pin::Pin<&mut Self>,
|
8530 9271 | cx: &mut std::task::Context<'_>,
|
8531 9272 | ) -> std::task::Poll<Self::Output> {
|
8532 9273 | let this = self.project();
|
8533 9274 | this.inner.as_mut().poll(cx)
|
8534 9275 | }
|
8535 9276 | }
|
8536 9277 |
|
8537 9278 | impl<B>
|
8538 9279 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8539 9280 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8540 9281 | B,
|
8541 - | > for crate::input::IgnoreQueryParamsInResponseInput
|
9282 + | > for crate::input::TestPayloadBlobInput
|
8542 9283 | where
|
8543 9284 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8544 9285 | B: 'static,
|
8545 9286 |
|
8546 9287 | B::Data: Send,
|
8547 9288 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8548 9289 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8549 9290 | {
|
8550 9291 | type Rejection =
|
8551 9292 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8552 - | type Future = IgnoreQueryParamsInResponseInputFuture;
|
9293 + | type Future = TestPayloadBlobInputFuture;
|
8553 9294 |
|
8554 9295 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8555 9296 | let fut = async move {
|
8556 - | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8557 - | request.headers(),
|
8558 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8559 - | ) {
|
8560 - | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8561 - | }
|
8562 - | crate::protocol_serde::shape_ignore_query_params_in_response::de_ignore_query_params_in_response_http_request(request)
|
8563 - | .await
|
9297 + | crate::protocol_serde::shape_test_payload_blob::de_test_payload_blob_http_request(
|
9298 + | request,
|
9299 + | )
|
9300 + | .await
|
8564 9301 | };
|
8565 9302 | use ::futures_util::future::TryFutureExt;
|
8566 9303 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8567 9304 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8568 9305 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8569 9306 | });
|
8570 - | IgnoreQueryParamsInResponseInputFuture {
|
9307 + | TestPayloadBlobInputFuture {
|
8571 9308 | inner: Box::pin(fut),
|
8572 9309 | }
|
8573 9310 | }
|
8574 9311 | }
|
8575 9312 | impl
|
8576 9313 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8577 9314 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8578 - | > for crate::output::IgnoreQueryParamsInResponseOutput
|
9315 + | > for crate::output::TestPayloadBlobOutput
|
8579 9316 | {
|
8580 9317 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8581 - | match crate::protocol_serde::shape_ignore_query_params_in_response::ser_ignore_query_params_in_response_http_response(self) {
|
8582 - | Ok(response) => response,
|
8583 - | Err(e) => {
|
8584 - | ::tracing::error!(error = %e, "failed to serialize response");
|
8585 - | ::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))
|
8586 - | }
|
8587 - | }
|
9318 + | match crate::protocol_serde::shape_test_payload_blob::ser_test_payload_blob_http_response(
|
9319 + | self,
|
9320 + | ) {
|
9321 + | Ok(response) => response,
|
9322 + | Err(e) => {
|
9323 + | ::tracing::error!(error = %e, "failed to serialize response");
|
9324 + | ::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))
|
9325 + | }
|
9326 + | }
|
8588 9327 | }
|
8589 9328 | }
|
8590 9329 | impl
|
8591 9330 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8592 9331 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8593 - | > for crate::error::IgnoreQueryParamsInResponseError
|
9332 + | > for crate::error::TestPayloadBlobError
|
8594 9333 | {
|
8595 9334 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8596 - | match crate::protocol_serde::shape_ignore_query_params_in_response::ser_ignore_query_params_in_response_http_error(&self) {
|
9335 + | match crate::protocol_serde::shape_test_payload_blob::ser_test_payload_blob_http_error(
|
9336 + | &self,
|
9337 + | ) {
|
8597 9338 | Ok(mut response) => {
|
8598 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9339 + | response.extensions_mut().insert(
|
9340 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
9341 + | self.name(),
|
9342 + | ),
|
9343 + | );
|
8599 9344 | response
|
8600 - | },
|
9345 + | }
|
8601 9346 | Err(e) => {
|
8602 9347 | ::tracing::error!(error = %e, "failed to serialize response");
|
8603 9348 | ::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))
|
8604 9349 | }
|
8605 9350 | }
|
8606 9351 | }
|
8607 9352 | }
|
8608 9353 |
|
8609 9354 | ::pin_project_lite::pin_project! {
|
8610 9355 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8611 - | /// [`ConstantAndVariableQueryStringInput`](crate::input::ConstantAndVariableQueryStringInput) using modelled bindings.
|
8612 - | pub struct ConstantAndVariableQueryStringInputFuture {
|
8613 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstantAndVariableQueryStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9356 + | /// [`TestGetNoPayloadInput`](crate::input::TestGetNoPayloadInput) using modelled bindings.
|
9357 + | pub struct TestGetNoPayloadInputFuture {
|
9358 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestGetNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8614 9359 | }
|
8615 9360 | }
|
8616 9361 |
|
8617 - | impl std::future::Future for ConstantAndVariableQueryStringInputFuture {
|
9362 + | impl std::future::Future for TestGetNoPayloadInputFuture {
|
8618 9363 | type Output = Result<
|
8619 - | crate::input::ConstantAndVariableQueryStringInput,
|
9364 + | crate::input::TestGetNoPayloadInput,
|
8620 9365 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8621 9366 | >;
|
8622 9367 |
|
8623 9368 | fn poll(
|
8624 9369 | self: std::pin::Pin<&mut Self>,
|
8625 9370 | cx: &mut std::task::Context<'_>,
|
8626 9371 | ) -> std::task::Poll<Self::Output> {
|
8627 9372 | let this = self.project();
|
8628 9373 | this.inner.as_mut().poll(cx)
|
8629 9374 | }
|
8630 9375 | }
|
8631 9376 |
|
8632 9377 | impl<B>
|
8633 9378 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8634 9379 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8635 9380 | B,
|
8636 - | > for crate::input::ConstantAndVariableQueryStringInput
|
9381 + | > for crate::input::TestGetNoPayloadInput
|
8637 9382 | where
|
8638 9383 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8639 9384 | B: 'static,
|
8640 9385 |
|
8641 9386 | B::Data: Send,
|
8642 9387 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8643 9388 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8644 9389 | {
|
8645 9390 | type Rejection =
|
8646 9391 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8647 - | type Future = ConstantAndVariableQueryStringInputFuture;
|
9392 + | type Future = TestGetNoPayloadInputFuture;
|
8648 9393 |
|
8649 9394 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8650 9395 | let fut = async move {
|
8651 9396 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8652 9397 | request.headers(),
|
8653 9398 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8654 9399 | ) {
|
8655 9400 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8656 9401 | }
|
8657 - | crate::protocol_serde::shape_constant_and_variable_query_string::de_constant_and_variable_query_string_http_request(request)
|
8658 - | .await
|
9402 + | crate::protocol_serde::shape_test_get_no_payload::de_test_get_no_payload_http_request(
|
9403 + | request,
|
9404 + | )
|
9405 + | .await
|
8659 9406 | };
|
8660 9407 | use ::futures_util::future::TryFutureExt;
|
8661 9408 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8662 9409 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8663 9410 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8664 9411 | });
|
8665 - | ConstantAndVariableQueryStringInputFuture {
|
9412 + | TestGetNoPayloadInputFuture {
|
8666 9413 | inner: Box::pin(fut),
|
8667 9414 | }
|
8668 9415 | }
|
8669 9416 | }
|
8670 9417 | impl
|
8671 9418 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8672 9419 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8673 - | > for crate::output::ConstantAndVariableQueryStringOutput
|
9420 + | > for crate::output::TestGetNoPayloadOutput
|
8674 9421 | {
|
8675 9422 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8676 - | match crate::protocol_serde::shape_constant_and_variable_query_string::ser_constant_and_variable_query_string_http_response(self) {
|
9423 + | match crate::protocol_serde::shape_test_get_no_payload::ser_test_get_no_payload_http_response(self) {
|
8677 9424 | Ok(response) => response,
|
8678 9425 | Err(e) => {
|
8679 9426 | ::tracing::error!(error = %e, "failed to serialize response");
|
8680 9427 | ::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))
|
8681 9428 | }
|
8682 9429 | }
|
8683 9430 | }
|
8684 9431 | }
|
8685 9432 | impl
|
8686 9433 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8687 9434 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8688 - | > for crate::error::ConstantAndVariableQueryStringError
|
9435 + | > for crate::error::TestGetNoPayloadError
|
8689 9436 | {
|
8690 9437 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8691 - | match crate::protocol_serde::shape_constant_and_variable_query_string::ser_constant_and_variable_query_string_http_error(&self) {
|
9438 + | match crate::protocol_serde::shape_test_get_no_payload::ser_test_get_no_payload_http_error(
|
9439 + | &self,
|
9440 + | ) {
|
8692 9441 | Ok(mut response) => {
|
8693 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9442 + | response.extensions_mut().insert(
|
9443 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
9444 + | self.name(),
|
9445 + | ),
|
9446 + | );
|
8694 9447 | response
|
8695 - | },
|
9448 + | }
|
8696 9449 | Err(e) => {
|
8697 9450 | ::tracing::error!(error = %e, "failed to serialize response");
|
8698 9451 | ::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))
|
8699 9452 | }
|
8700 9453 | }
|
8701 9454 | }
|
8702 9455 | }
|
8703 9456 |
|
8704 9457 | ::pin_project_lite::pin_project! {
|
8705 9458 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8706 - | /// [`ConstantQueryStringInput`](crate::input::ConstantQueryStringInput) using modelled bindings.
|
8707 - | pub struct ConstantQueryStringInputFuture {
|
8708 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ConstantQueryStringInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9459 + | /// [`TestPostNoPayloadInput`](crate::input::TestPostNoPayloadInput) using modelled bindings.
|
9460 + | pub struct TestPostNoPayloadInputFuture {
|
9461 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPostNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8709 9462 | }
|
8710 9463 | }
|
8711 9464 |
|
8712 - | impl std::future::Future for ConstantQueryStringInputFuture {
|
9465 + | impl std::future::Future for TestPostNoPayloadInputFuture {
|
8713 9466 | type Output = Result<
|
8714 - | crate::input::ConstantQueryStringInput,
|
9467 + | crate::input::TestPostNoPayloadInput,
|
8715 9468 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8716 9469 | >;
|
8717 9470 |
|
8718 9471 | fn poll(
|
8719 9472 | self: std::pin::Pin<&mut Self>,
|
8720 9473 | cx: &mut std::task::Context<'_>,
|
8721 9474 | ) -> std::task::Poll<Self::Output> {
|
8722 9475 | let this = self.project();
|
8723 9476 | this.inner.as_mut().poll(cx)
|
8724 9477 | }
|
8725 9478 | }
|
8726 9479 |
|
8727 9480 | impl<B>
|
8728 9481 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8729 9482 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8730 9483 | B,
|
8731 - | > for crate::input::ConstantQueryStringInput
|
9484 + | > for crate::input::TestPostNoPayloadInput
|
8732 9485 | where
|
8733 9486 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8734 9487 | B: 'static,
|
8735 9488 |
|
8736 9489 | B::Data: Send,
|
8737 9490 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8738 9491 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8739 9492 | {
|
8740 9493 | type Rejection =
|
8741 9494 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8742 - | type Future = ConstantQueryStringInputFuture;
|
9495 + | type Future = TestPostNoPayloadInputFuture;
|
8743 9496 |
|
8744 9497 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8745 9498 | let fut = async move {
|
8746 9499 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8747 9500 | request.headers(),
|
8748 9501 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8749 9502 | ) {
|
8750 9503 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8751 9504 | }
|
8752 - | crate::protocol_serde::shape_constant_query_string::de_constant_query_string_http_request(request)
|
8753 - | .await
|
9505 + | crate::protocol_serde::shape_test_post_no_payload::de_test_post_no_payload_http_request(
|
9506 + | request,
|
9507 + | )
|
9508 + | .await
|
8754 9509 | };
|
8755 9510 | use ::futures_util::future::TryFutureExt;
|
8756 9511 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8757 9512 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8758 9513 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8759 9514 | });
|
8760 - | ConstantQueryStringInputFuture {
|
9515 + | TestPostNoPayloadInputFuture {
|
8761 9516 | inner: Box::pin(fut),
|
8762 9517 | }
|
8763 9518 | }
|
8764 9519 | }
|
8765 9520 | impl
|
8766 9521 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8767 9522 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8768 - | > for crate::output::ConstantQueryStringOutput
|
9523 + | > for crate::output::TestPostNoPayloadOutput
|
8769 9524 | {
|
8770 9525 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8771 - | match crate::protocol_serde::shape_constant_query_string::ser_constant_query_string_http_response(self) {
|
9526 + | match crate::protocol_serde::shape_test_post_no_payload::ser_test_post_no_payload_http_response(self) {
|
8772 9527 | Ok(response) => response,
|
8773 9528 | Err(e) => {
|
8774 9529 | ::tracing::error!(error = %e, "failed to serialize response");
|
8775 9530 | ::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))
|
8776 9531 | }
|
8777 9532 | }
|
8778 9533 | }
|
8779 9534 | }
|
8780 9535 | impl
|
8781 9536 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8782 9537 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8783 - | > for crate::error::ConstantQueryStringError
|
9538 + | > for crate::error::TestPostNoPayloadError
|
8784 9539 | {
|
8785 9540 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8786 - | match crate::protocol_serde::shape_constant_query_string::ser_constant_query_string_http_error(&self) {
|
9541 + | match crate::protocol_serde::shape_test_post_no_payload::ser_test_post_no_payload_http_error(
|
9542 + | &self,
|
9543 + | ) {
|
8787 9544 | Ok(mut response) => {
|
8788 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9545 + | response.extensions_mut().insert(
|
9546 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
9547 + | self.name(),
|
9548 + | ),
|
9549 + | );
|
8789 9550 | response
|
8790 - | },
|
9551 + | }
|
8791 9552 | Err(e) => {
|
8792 9553 | ::tracing::error!(error = %e, "failed to serialize response");
|
8793 9554 | ::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))
|
8794 9555 | }
|
8795 9556 | }
|
8796 9557 | }
|
8797 9558 | }
|
8798 9559 |
|
8799 9560 | ::pin_project_lite::pin_project! {
|
8800 9561 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8801 - | /// [`AllQueryStringTypesInput`](crate::input::AllQueryStringTypesInput) using modelled bindings.
|
8802 - | pub struct AllQueryStringTypesInputFuture {
|
8803 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::AllQueryStringTypesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9562 + | /// [`TestGetNoInputNoPayloadInput`](crate::input::TestGetNoInputNoPayloadInput) using modelled bindings.
|
9563 + | pub struct TestGetNoInputNoPayloadInputFuture {
|
9564 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestGetNoInputNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8804 9565 | }
|
8805 9566 | }
|
8806 9567 |
|
8807 - | impl std::future::Future for AllQueryStringTypesInputFuture {
|
9568 + | impl std::future::Future for TestGetNoInputNoPayloadInputFuture {
|
8808 9569 | type Output = Result<
|
8809 - | crate::input::AllQueryStringTypesInput,
|
9570 + | crate::input::TestGetNoInputNoPayloadInput,
|
8810 9571 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8811 9572 | >;
|
8812 9573 |
|
8813 9574 | fn poll(
|
8814 9575 | self: std::pin::Pin<&mut Self>,
|
8815 9576 | cx: &mut std::task::Context<'_>,
|
8816 9577 | ) -> std::task::Poll<Self::Output> {
|
8817 9578 | let this = self.project();
|
8818 9579 | this.inner.as_mut().poll(cx)
|
8819 9580 | }
|
8820 9581 | }
|
8821 9582 |
|
8822 9583 | impl<B>
|
8823 9584 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8824 9585 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8825 9586 | B,
|
8826 - | > for crate::input::AllQueryStringTypesInput
|
9587 + | > for crate::input::TestGetNoInputNoPayloadInput
|
8827 9588 | where
|
8828 9589 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8829 9590 | B: 'static,
|
8830 9591 |
|
8831 9592 | B::Data: Send,
|
8832 9593 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8833 9594 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8834 9595 | {
|
8835 9596 | type Rejection =
|
8836 9597 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8837 - | type Future = AllQueryStringTypesInputFuture;
|
9598 + | type Future = TestGetNoInputNoPayloadInputFuture;
|
8838 9599 |
|
8839 9600 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8840 9601 | let fut = async move {
|
8841 9602 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8842 9603 | request.headers(),
|
8843 9604 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8844 9605 | ) {
|
8845 9606 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8846 9607 | }
|
8847 - | crate::protocol_serde::shape_all_query_string_types::de_all_query_string_types_http_request(request)
|
9608 + | crate::protocol_serde::shape_test_get_no_input_no_payload::de_test_get_no_input_no_payload_http_request(request)
|
8848 9609 | .await
|
8849 9610 | };
|
8850 9611 | use ::futures_util::future::TryFutureExt;
|
8851 9612 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8852 9613 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8853 9614 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8854 9615 | });
|
8855 - | AllQueryStringTypesInputFuture {
|
9616 + | TestGetNoInputNoPayloadInputFuture {
|
8856 9617 | inner: Box::pin(fut),
|
8857 9618 | }
|
8858 9619 | }
|
8859 9620 | }
|
8860 9621 | impl
|
8861 9622 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8862 9623 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8863 - | > for crate::output::AllQueryStringTypesOutput
|
9624 + | > for crate::output::TestGetNoInputNoPayloadOutput
|
8864 9625 | {
|
8865 9626 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8866 - | match crate::protocol_serde::shape_all_query_string_types::ser_all_query_string_types_http_response(self) {
|
9627 + | match crate::protocol_serde::shape_test_get_no_input_no_payload::ser_test_get_no_input_no_payload_http_response(self) {
|
8867 9628 | Ok(response) => response,
|
8868 9629 | Err(e) => {
|
8869 9630 | ::tracing::error!(error = %e, "failed to serialize response");
|
8870 9631 | ::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))
|
8871 9632 | }
|
8872 9633 | }
|
8873 9634 | }
|
8874 9635 | }
|
8875 9636 | impl
|
8876 9637 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8877 9638 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8878 - | > for crate::error::AllQueryStringTypesError
|
9639 + | > for crate::error::TestGetNoInputNoPayloadError
|
8879 9640 | {
|
8880 9641 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8881 - | match crate::protocol_serde::shape_all_query_string_types::ser_all_query_string_types_http_error(&self) {
|
9642 + | match crate::protocol_serde::shape_test_get_no_input_no_payload::ser_test_get_no_input_no_payload_http_error(&self) {
|
8882 9643 | Ok(mut response) => {
|
8883 9644 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
8884 9645 | response
|
8885 9646 | },
|
8886 9647 | Err(e) => {
|
8887 9648 | ::tracing::error!(error = %e, "failed to serialize response");
|
8888 9649 | ::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))
|
8889 9650 | }
|
8890 9651 | }
|
8891 9652 | }
|
8892 9653 | }
|
8893 9654 |
|
8894 9655 | ::pin_project_lite::pin_project! {
|
8895 9656 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8896 - | /// [`HttpRequestWithRegexLiteralInput`](crate::input::HttpRequestWithRegexLiteralInput) using modelled bindings.
|
8897 - | pub struct HttpRequestWithRegexLiteralInputFuture {
|
8898 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithRegexLiteralInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9657 + | /// [`TestPostNoInputNoPayloadInput`](crate::input::TestPostNoInputNoPayloadInput) using modelled bindings.
|
9658 + | pub struct TestPostNoInputNoPayloadInputFuture {
|
9659 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TestPostNoInputNoPayloadInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8899 9660 | }
|
8900 9661 | }
|
8901 9662 |
|
8902 - | impl std::future::Future for HttpRequestWithRegexLiteralInputFuture {
|
9663 + | impl std::future::Future for TestPostNoInputNoPayloadInputFuture {
|
8903 9664 | type Output = Result<
|
8904 - | crate::input::HttpRequestWithRegexLiteralInput,
|
9665 + | crate::input::TestPostNoInputNoPayloadInput,
|
8905 9666 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
8906 9667 | >;
|
8907 9668 |
|
8908 9669 | fn poll(
|
8909 9670 | self: std::pin::Pin<&mut Self>,
|
8910 9671 | cx: &mut std::task::Context<'_>,
|
8911 9672 | ) -> std::task::Poll<Self::Output> {
|
8912 9673 | let this = self.project();
|
8913 9674 | this.inner.as_mut().poll(cx)
|
8914 9675 | }
|
8915 9676 | }
|
8916 9677 |
|
8917 9678 | impl<B>
|
8918 9679 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
8919 9680 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8920 9681 | B,
|
8921 - | > for crate::input::HttpRequestWithRegexLiteralInput
|
9682 + | > for crate::input::TestPostNoInputNoPayloadInput
|
8922 9683 | where
|
8923 9684 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
8924 9685 | B: 'static,
|
8925 9686 |
|
8926 9687 | B::Data: Send,
|
8927 9688 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
8928 9689 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
8929 9690 | {
|
8930 9691 | type Rejection =
|
8931 9692 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
8932 - | type Future = HttpRequestWithRegexLiteralInputFuture;
|
9693 + | type Future = TestPostNoInputNoPayloadInputFuture;
|
8933 9694 |
|
8934 9695 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
8935 9696 | let fut = async move {
|
8936 9697 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
8937 9698 | request.headers(),
|
8938 9699 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
8939 9700 | ) {
|
8940 9701 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
8941 9702 | }
|
8942 - | crate::protocol_serde::shape_http_request_with_regex_literal::de_http_request_with_regex_literal_http_request(request)
|
9703 + | crate::protocol_serde::shape_test_post_no_input_no_payload::de_test_post_no_input_no_payload_http_request(request)
|
8943 9704 | .await
|
8944 9705 | };
|
8945 9706 | use ::futures_util::future::TryFutureExt;
|
8946 9707 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
8947 9708 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
8948 9709 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
8949 9710 | });
|
8950 - | HttpRequestWithRegexLiteralInputFuture {
|
9711 + | TestPostNoInputNoPayloadInputFuture {
|
8951 9712 | inner: Box::pin(fut),
|
8952 9713 | }
|
8953 9714 | }
|
8954 9715 | }
|
8955 9716 | impl
|
8956 9717 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8957 9718 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8958 - | > for crate::output::HttpRequestWithRegexLiteralOutput
|
9719 + | > for crate::output::TestPostNoInputNoPayloadOutput
|
8959 9720 | {
|
8960 9721 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8961 - | match crate::protocol_serde::shape_http_request_with_regex_literal::ser_http_request_with_regex_literal_http_response(self) {
|
9722 + | match crate::protocol_serde::shape_test_post_no_input_no_payload::ser_test_post_no_input_no_payload_http_response(self) {
|
8962 9723 | Ok(response) => response,
|
8963 9724 | Err(e) => {
|
8964 9725 | ::tracing::error!(error = %e, "failed to serialize response");
|
8965 9726 | ::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))
|
8966 9727 | }
|
8967 9728 | }
|
8968 9729 | }
|
8969 9730 | }
|
8970 9731 | impl
|
8971 9732 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
8972 9733 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
8973 - | > for crate::error::HttpRequestWithRegexLiteralError
|
9734 + | > for crate::error::TestPostNoInputNoPayloadError
|
8974 9735 | {
|
8975 9736 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
8976 - | match crate::protocol_serde::shape_http_request_with_regex_literal::ser_http_request_with_regex_literal_http_error(&self) {
|
9737 + | match crate::protocol_serde::shape_test_post_no_input_no_payload::ser_test_post_no_input_no_payload_http_error(&self) {
|
8977 9738 | Ok(mut response) => {
|
8978 9739 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
8979 9740 | response
|
8980 9741 | },
|
8981 9742 | Err(e) => {
|
8982 9743 | ::tracing::error!(error = %e, "failed to serialize response");
|
8983 9744 | ::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))
|
8984 9745 | }
|
8985 9746 | }
|
8986 9747 | }
|
8987 9748 | }
|
8988 9749 |
|
8989 9750 | ::pin_project_lite::pin_project! {
|
8990 9751 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
8991 - | /// [`HttpRequestWithFloatLabelsInput`](crate::input::HttpRequestWithFloatLabelsInput) using modelled bindings.
|
8992 - | pub struct HttpRequestWithFloatLabelsInputFuture {
|
8993 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithFloatLabelsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9752 + | /// [`DatetimeOffsetsInput`](crate::input::DatetimeOffsetsInput) using modelled bindings.
|
9753 + | pub struct DatetimeOffsetsInputFuture {
|
9754 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DatetimeOffsetsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
8994 9755 | }
|
8995 9756 | }
|
8996 9757 |
|
8997 - | impl std::future::Future for HttpRequestWithFloatLabelsInputFuture {
|
9758 + | impl std::future::Future for DatetimeOffsetsInputFuture {
|
8998 9759 | type Output = Result<
|
8999 - | crate::input::HttpRequestWithFloatLabelsInput,
|
9760 + | crate::input::DatetimeOffsetsInput,
|
9000 9761 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9001 9762 | >;
|
9002 9763 |
|
9003 9764 | fn poll(
|
9004 9765 | self: std::pin::Pin<&mut Self>,
|
9005 9766 | cx: &mut std::task::Context<'_>,
|
9006 9767 | ) -> std::task::Poll<Self::Output> {
|
9007 9768 | let this = self.project();
|
9008 9769 | this.inner.as_mut().poll(cx)
|
9009 9770 | }
|
9010 9771 | }
|
9011 9772 |
|
9012 9773 | impl<B>
|
9013 9774 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9014 9775 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9015 9776 | B,
|
9016 - | > for crate::input::HttpRequestWithFloatLabelsInput
|
9777 + | > for crate::input::DatetimeOffsetsInput
|
9017 9778 | where
|
9018 9779 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9019 9780 | B: 'static,
|
9020 9781 |
|
9021 9782 | B::Data: Send,
|
9022 9783 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9023 9784 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9024 9785 | {
|
9025 9786 | type Rejection =
|
9026 9787 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9027 - | type Future = HttpRequestWithFloatLabelsInputFuture;
|
9788 + | type Future = DatetimeOffsetsInputFuture;
|
9028 9789 |
|
9029 9790 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9030 9791 | let fut = async move {
|
9031 9792 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9032 9793 | request.headers(),
|
9033 9794 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9034 9795 | ) {
|
9035 9796 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9036 9797 | }
|
9037 - | crate::protocol_serde::shape_http_request_with_float_labels::de_http_request_with_float_labels_http_request(request)
|
9038 - | .await
|
9798 + | crate::protocol_serde::shape_datetime_offsets::de_datetime_offsets_http_request(request)
|
9799 + | .await
|
9039 9800 | };
|
9040 9801 | use ::futures_util::future::TryFutureExt;
|
9041 9802 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9042 9803 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9043 9804 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9044 9805 | });
|
9045 - | HttpRequestWithFloatLabelsInputFuture {
|
9806 + | DatetimeOffsetsInputFuture {
|
9046 9807 | inner: Box::pin(fut),
|
9047 9808 | }
|
9048 9809 | }
|
9049 9810 | }
|
9050 9811 | impl
|
9051 9812 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9052 9813 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9053 - | > for crate::output::HttpRequestWithFloatLabelsOutput
|
9814 + | > for crate::output::DatetimeOffsetsOutput
|
9054 9815 | {
|
9055 9816 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9056 - | match crate::protocol_serde::shape_http_request_with_float_labels::ser_http_request_with_float_labels_http_response(self) {
|
9057 - | Ok(response) => response,
|
9058 - | Err(e) => {
|
9059 - | ::tracing::error!(error = %e, "failed to serialize response");
|
9060 - | ::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))
|
9061 - | }
|
9062 - | }
|
9817 + | match crate::protocol_serde::shape_datetime_offsets::ser_datetime_offsets_http_response(
|
9818 + | self,
|
9819 + | ) {
|
9820 + | Ok(response) => response,
|
9821 + | Err(e) => {
|
9822 + | ::tracing::error!(error = %e, "failed to serialize response");
|
9823 + | ::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))
|
9824 + | }
|
9825 + | }
|
9063 9826 | }
|
9064 9827 | }
|
9065 9828 | impl
|
9066 9829 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9067 9830 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9068 - | > for crate::error::HttpRequestWithFloatLabelsError
|
9831 + | > for crate::error::DatetimeOffsetsError
|
9069 9832 | {
|
9070 9833 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9071 - | match crate::protocol_serde::shape_http_request_with_float_labels::ser_http_request_with_float_labels_http_error(&self) {
|
9834 + | match crate::protocol_serde::shape_datetime_offsets::ser_datetime_offsets_http_error(&self)
|
9835 + | {
|
9072 9836 | Ok(mut response) => {
|
9073 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9837 + | response.extensions_mut().insert(
|
9838 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
9839 + | self.name(),
|
9840 + | ),
|
9841 + | );
|
9074 9842 | response
|
9075 - | },
|
9843 + | }
|
9076 9844 | Err(e) => {
|
9077 9845 | ::tracing::error!(error = %e, "failed to serialize response");
|
9078 9846 | ::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))
|
9079 9847 | }
|
9080 9848 | }
|
9081 9849 | }
|
9082 9850 | }
|
9083 9851 |
|
9084 9852 | ::pin_project_lite::pin_project! {
|
9085 9853 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9086 - | /// [`HttpRequestWithGreedyLabelInPathInput`](crate::input::HttpRequestWithGreedyLabelInPathInput) using modelled bindings.
|
9087 - | pub struct HttpRequestWithGreedyLabelInPathInputFuture {
|
9088 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithGreedyLabelInPathInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9854 + | /// [`FractionalSecondsInput`](crate::input::FractionalSecondsInput) using modelled bindings.
|
9855 + | pub struct FractionalSecondsInputFuture {
|
9856 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::FractionalSecondsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9089 9857 | }
|
9090 9858 | }
|
9091 9859 |
|
9092 - | impl std::future::Future for HttpRequestWithGreedyLabelInPathInputFuture {
|
9860 + | impl std::future::Future for FractionalSecondsInputFuture {
|
9093 9861 | type Output = Result<
|
9094 - | crate::input::HttpRequestWithGreedyLabelInPathInput,
|
9862 + | crate::input::FractionalSecondsInput,
|
9095 9863 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9096 9864 | >;
|
9097 9865 |
|
9098 9866 | fn poll(
|
9099 9867 | self: std::pin::Pin<&mut Self>,
|
9100 9868 | cx: &mut std::task::Context<'_>,
|
9101 9869 | ) -> std::task::Poll<Self::Output> {
|
9102 9870 | let this = self.project();
|
9103 9871 | this.inner.as_mut().poll(cx)
|
9104 9872 | }
|
9105 9873 | }
|
9106 9874 |
|
9107 9875 | impl<B>
|
9108 9876 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9109 9877 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9110 9878 | B,
|
9111 - | > for crate::input::HttpRequestWithGreedyLabelInPathInput
|
9879 + | > for crate::input::FractionalSecondsInput
|
9112 9880 | where
|
9113 9881 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9114 9882 | B: 'static,
|
9115 9883 |
|
9116 9884 | B::Data: Send,
|
9117 9885 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9118 9886 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9119 9887 | {
|
9120 9888 | type Rejection =
|
9121 9889 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9122 - | type Future = HttpRequestWithGreedyLabelInPathInputFuture;
|
9890 + | type Future = FractionalSecondsInputFuture;
|
9123 9891 |
|
9124 9892 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9125 9893 | let fut = async move {
|
9126 9894 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9127 9895 | request.headers(),
|
9128 9896 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9129 9897 | ) {
|
9130 9898 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9131 9899 | }
|
9132 - | crate::protocol_serde::shape_http_request_with_greedy_label_in_path::de_http_request_with_greedy_label_in_path_http_request(request)
|
9133 - | .await
|
9900 + | crate::protocol_serde::shape_fractional_seconds::de_fractional_seconds_http_request(
|
9901 + | request,
|
9902 + | )
|
9903 + | .await
|
9134 9904 | };
|
9135 9905 | use ::futures_util::future::TryFutureExt;
|
9136 9906 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9137 9907 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9138 9908 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9139 9909 | });
|
9140 - | HttpRequestWithGreedyLabelInPathInputFuture {
|
9910 + | FractionalSecondsInputFuture {
|
9141 9911 | inner: Box::pin(fut),
|
9142 9912 | }
|
9143 9913 | }
|
9144 9914 | }
|
9145 9915 | impl
|
9146 9916 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9147 9917 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9148 - | > for crate::output::HttpRequestWithGreedyLabelInPathOutput
|
9918 + | > for crate::output::FractionalSecondsOutput
|
9149 9919 | {
|
9150 9920 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9151 - | match crate::protocol_serde::shape_http_request_with_greedy_label_in_path::ser_http_request_with_greedy_label_in_path_http_response(self) {
|
9152 - | Ok(response) => response,
|
9153 - | Err(e) => {
|
9154 - | ::tracing::error!(error = %e, "failed to serialize response");
|
9155 - | ::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))
|
9156 - | }
|
9157 - | }
|
9921 + | match crate::protocol_serde::shape_fractional_seconds::ser_fractional_seconds_http_response(
|
9922 + | self,
|
9923 + | ) {
|
9924 + | Ok(response) => response,
|
9925 + | Err(e) => {
|
9926 + | ::tracing::error!(error = %e, "failed to serialize response");
|
9927 + | ::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))
|
9928 + | }
|
9929 + | }
|
9158 9930 | }
|
9159 9931 | }
|
9160 9932 | impl
|
9161 9933 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9162 9934 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9163 - | > for crate::error::HttpRequestWithGreedyLabelInPathError
|
9935 + | > for crate::error::FractionalSecondsError
|
9164 9936 | {
|
9165 9937 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9166 - | match crate::protocol_serde::shape_http_request_with_greedy_label_in_path::ser_http_request_with_greedy_label_in_path_http_error(&self) {
|
9938 + | match crate::protocol_serde::shape_fractional_seconds::ser_fractional_seconds_http_error(
|
9939 + | &self,
|
9940 + | ) {
|
9167 9941 | Ok(mut response) => {
|
9168 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9942 + | response.extensions_mut().insert(
|
9943 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
9944 + | self.name(),
|
9945 + | ),
|
9946 + | );
|
9169 9947 | response
|
9170 - | },
|
9948 + | }
|
9171 9949 | Err(e) => {
|
9172 9950 | ::tracing::error!(error = %e, "failed to serialize response");
|
9173 9951 | ::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))
|
9174 9952 | }
|
9175 9953 | }
|
9176 9954 | }
|
9177 9955 | }
|
9178 9956 |
|
9179 9957 | ::pin_project_lite::pin_project! {
|
9180 9958 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9181 - | /// [`HttpRequestWithLabelsAndTimestampFormatInput`](crate::input::HttpRequestWithLabelsAndTimestampFormatInput) using modelled bindings.
|
9182 - | pub struct HttpRequestWithLabelsAndTimestampFormatInputFuture {
|
9183 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithLabelsAndTimestampFormatInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9959 + | /// [`PutWithContentEncodingInput`](crate::input::PutWithContentEncodingInput) using modelled bindings.
|
9960 + | pub struct PutWithContentEncodingInputFuture {
|
9961 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PutWithContentEncodingInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9184 9962 | }
|
9185 9963 | }
|
9186 9964 |
|
9187 - | impl std::future::Future for HttpRequestWithLabelsAndTimestampFormatInputFuture {
|
9965 + | impl std::future::Future for PutWithContentEncodingInputFuture {
|
9188 9966 | type Output = Result<
|
9189 - | crate::input::HttpRequestWithLabelsAndTimestampFormatInput,
|
9967 + | crate::input::PutWithContentEncodingInput,
|
9190 9968 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9191 9969 | >;
|
9192 9970 |
|
9193 9971 | fn poll(
|
9194 9972 | self: std::pin::Pin<&mut Self>,
|
9195 9973 | cx: &mut std::task::Context<'_>,
|
9196 9974 | ) -> std::task::Poll<Self::Output> {
|
9197 9975 | let this = self.project();
|
9198 9976 | this.inner.as_mut().poll(cx)
|
9199 9977 | }
|
9200 9978 | }
|
9201 9979 |
|
9202 9980 | impl<B>
|
9203 9981 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9204 9982 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9205 9983 | B,
|
9206 - | > for crate::input::HttpRequestWithLabelsAndTimestampFormatInput
|
9984 + | > for crate::input::PutWithContentEncodingInput
|
9207 9985 | where
|
9208 9986 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9209 9987 | B: 'static,
|
9210 9988 |
|
9211 9989 | B::Data: Send,
|
9212 9990 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9213 9991 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9214 9992 | {
|
9215 9993 | type Rejection =
|
9216 9994 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9217 - | type Future = HttpRequestWithLabelsAndTimestampFormatInputFuture;
|
9995 + | type Future = PutWithContentEncodingInputFuture;
|
9218 9996 |
|
9219 9997 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9220 9998 | let fut = async move {
|
9221 9999 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9222 10000 | request.headers(),
|
9223 10001 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9224 10002 | ) {
|
9225 10003 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9226 10004 | }
|
9227 - | crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::de_http_request_with_labels_and_timestamp_format_http_request(request)
|
10005 + | crate::protocol_serde::shape_put_with_content_encoding::de_put_with_content_encoding_http_request(request)
|
9228 10006 | .await
|
9229 10007 | };
|
9230 10008 | use ::futures_util::future::TryFutureExt;
|
9231 10009 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9232 10010 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9233 10011 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9234 10012 | });
|
9235 - | HttpRequestWithLabelsAndTimestampFormatInputFuture {
|
10013 + | PutWithContentEncodingInputFuture {
|
9236 10014 | inner: Box::pin(fut),
|
9237 10015 | }
|
9238 10016 | }
|
9239 10017 | }
|
9240 10018 | impl
|
9241 10019 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9242 10020 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9243 - | > for crate::output::HttpRequestWithLabelsAndTimestampFormatOutput
|
10021 + | > for crate::output::PutWithContentEncodingOutput
|
9244 10022 | {
|
9245 10023 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9246 - | match crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::ser_http_request_with_labels_and_timestamp_format_http_response(self) {
|
10024 + | match crate::protocol_serde::shape_put_with_content_encoding::ser_put_with_content_encoding_http_response(self) {
|
9247 10025 | Ok(response) => response,
|
9248 10026 | Err(e) => {
|
9249 10027 | ::tracing::error!(error = %e, "failed to serialize response");
|
9250 10028 | ::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))
|
9251 10029 | }
|
9252 10030 | }
|
9253 10031 | }
|
9254 10032 | }
|
9255 10033 | impl
|
9256 10034 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9257 10035 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9258 - | > for crate::error::HttpRequestWithLabelsAndTimestampFormatError
|
10036 + | > for crate::error::PutWithContentEncodingError
|
9259 10037 | {
|
9260 10038 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9261 - | match crate::protocol_serde::shape_http_request_with_labels_and_timestamp_format::ser_http_request_with_labels_and_timestamp_format_http_error(&self) {
|
10039 + | match crate::protocol_serde::shape_put_with_content_encoding::ser_put_with_content_encoding_http_error(&self) {
|
9262 10040 | Ok(mut response) => {
|
9263 10041 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9264 10042 | response
|
9265 10043 | },
|
9266 10044 | Err(e) => {
|
9267 10045 | ::tracing::error!(error = %e, "failed to serialize response");
|
9268 10046 | ::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))
|
9269 10047 | }
|
9270 10048 | }
|
9271 10049 | }
|
9272 10050 | }
|
9273 10051 |
|
9274 10052 | ::pin_project_lite::pin_project! {
|
9275 10053 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9276 - | /// [`HttpRequestWithLabelsInput`](crate::input::HttpRequestWithLabelsInput) using modelled bindings.
|
9277 - | pub struct HttpRequestWithLabelsInputFuture {
|
9278 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::HttpRequestWithLabelsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10054 + | /// [`ContentTypeParametersInput`](crate::input::ContentTypeParametersInput) using modelled bindings.
|
10055 + | pub struct ContentTypeParametersInputFuture {
|
10056 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ContentTypeParametersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9279 10057 | }
|
9280 10058 | }
|
9281 10059 |
|
9282 - | impl std::future::Future for HttpRequestWithLabelsInputFuture {
|
10060 + | impl std::future::Future for ContentTypeParametersInputFuture {
|
9283 10061 | type Output = Result<
|
9284 - | crate::input::HttpRequestWithLabelsInput,
|
10062 + | crate::input::ContentTypeParametersInput,
|
9285 10063 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9286 10064 | >;
|
9287 10065 |
|
9288 10066 | fn poll(
|
9289 10067 | self: std::pin::Pin<&mut Self>,
|
9290 10068 | cx: &mut std::task::Context<'_>,
|
9291 10069 | ) -> std::task::Poll<Self::Output> {
|
9292 10070 | let this = self.project();
|
9293 10071 | this.inner.as_mut().poll(cx)
|
9294 10072 | }
|
9295 10073 | }
|
9296 10074 |
|
9297 10075 | impl<B>
|
9298 10076 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9299 10077 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9300 10078 | B,
|
9301 - | > for crate::input::HttpRequestWithLabelsInput
|
10079 + | > for crate::input::ContentTypeParametersInput
|
9302 10080 | where
|
9303 10081 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9304 10082 | B: 'static,
|
9305 10083 |
|
9306 10084 | B::Data: Send,
|
9307 10085 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9308 10086 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9309 10087 | {
|
9310 10088 | type Rejection =
|
9311 10089 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9312 - | type Future = HttpRequestWithLabelsInputFuture;
|
10090 + | type Future = ContentTypeParametersInputFuture;
|
9313 10091 |
|
9314 10092 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9315 10093 | let fut = async move {
|
9316 10094 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9317 10095 | request.headers(),
|
9318 10096 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9319 10097 | ) {
|
9320 10098 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9321 10099 | }
|
9322 - | crate::protocol_serde::shape_http_request_with_labels::de_http_request_with_labels_http_request(request)
|
10100 + | crate::protocol_serde::shape_content_type_parameters::de_content_type_parameters_http_request(request)
|
9323 10101 | .await
|
9324 10102 | };
|
9325 10103 | use ::futures_util::future::TryFutureExt;
|
9326 10104 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9327 10105 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9328 10106 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9329 10107 | });
|
9330 - | HttpRequestWithLabelsInputFuture {
|
10108 + | ContentTypeParametersInputFuture {
|
9331 10109 | inner: Box::pin(fut),
|
9332 10110 | }
|
9333 10111 | }
|
9334 10112 | }
|
9335 10113 | impl
|
9336 10114 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9337 10115 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9338 - | > for crate::output::HttpRequestWithLabelsOutput
|
10116 + | > for crate::output::ContentTypeParametersOutput
|
9339 10117 | {
|
9340 10118 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9341 - | match crate::protocol_serde::shape_http_request_with_labels::ser_http_request_with_labels_http_response(self) {
|
10119 + | match crate::protocol_serde::shape_content_type_parameters::ser_content_type_parameters_http_response(self) {
|
9342 10120 | Ok(response) => response,
|
9343 10121 | Err(e) => {
|
9344 10122 | ::tracing::error!(error = %e, "failed to serialize response");
|
9345 10123 | ::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))
|
9346 10124 | }
|
9347 10125 | }
|
9348 10126 | }
|
9349 10127 | }
|
9350 10128 | impl
|
9351 10129 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9352 10130 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9353 - | > for crate::error::HttpRequestWithLabelsError
|
10131 + | > for crate::error::ContentTypeParametersError
|
9354 10132 | {
|
9355 10133 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9356 - | match crate::protocol_serde::shape_http_request_with_labels::ser_http_request_with_labels_http_error(&self) {
|
10134 + | match crate::protocol_serde::shape_content_type_parameters::ser_content_type_parameters_http_error(&self) {
|
9357 10135 | Ok(mut response) => {
|
9358 10136 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9359 10137 | response
|
9360 10138 | },
|
9361 10139 | Err(e) => {
|
9362 10140 | ::tracing::error!(error = %e, "failed to serialize response");
|
9363 10141 | ::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))
|
9364 10142 | }
|
9365 10143 | }
|
9366 10144 | }
|
9367 10145 | }
|
9368 10146 |
|
9369 - | ::pin_project_lite::pin_project! {
|
9370 - | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9371 - | /// [`MediaTypeHeaderInput`](crate::input::MediaTypeHeaderInput) using modelled bindings.
|
9372 - | pub struct MediaTypeHeaderInputFuture {
|
9373 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::MediaTypeHeaderInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10147 + | ::pin_project_lite::pin_project! {
|
10148 + | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
10149 + | /// [`OperationWithDefaultsInput`](crate::input::OperationWithDefaultsInput) using modelled bindings.
|
10150 + | pub struct OperationWithDefaultsInputFuture {
|
10151 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OperationWithDefaultsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9374 10152 | }
|
9375 10153 | }
|
9376 10154 |
|
9377 - | impl std::future::Future for MediaTypeHeaderInputFuture {
|
10155 + | impl std::future::Future for OperationWithDefaultsInputFuture {
|
9378 10156 | type Output = Result<
|
9379 - | crate::input::MediaTypeHeaderInput,
|
10157 + | crate::input::OperationWithDefaultsInput,
|
9380 10158 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9381 10159 | >;
|
9382 10160 |
|
9383 10161 | fn poll(
|
9384 10162 | self: std::pin::Pin<&mut Self>,
|
9385 10163 | cx: &mut std::task::Context<'_>,
|
9386 10164 | ) -> std::task::Poll<Self::Output> {
|
9387 10165 | let this = self.project();
|
9388 10166 | this.inner.as_mut().poll(cx)
|
9389 10167 | }
|
9390 10168 | }
|
9391 10169 |
|
9392 10170 | impl<B>
|
9393 10171 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9394 10172 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9395 10173 | B,
|
9396 - | > for crate::input::MediaTypeHeaderInput
|
10174 + | > for crate::input::OperationWithDefaultsInput
|
9397 10175 | where
|
9398 10176 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9399 10177 | B: 'static,
|
9400 10178 |
|
9401 10179 | B::Data: Send,
|
9402 10180 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9403 10181 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9404 10182 | {
|
9405 10183 | type Rejection =
|
9406 10184 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9407 - | type Future = MediaTypeHeaderInputFuture;
|
10185 + | type Future = OperationWithDefaultsInputFuture;
|
9408 10186 |
|
9409 10187 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9410 10188 | let fut = async move {
|
9411 10189 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9412 10190 | request.headers(),
|
9413 10191 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9414 10192 | ) {
|
9415 10193 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9416 10194 | }
|
9417 - | crate::protocol_serde::shape_media_type_header::de_media_type_header_http_request(
|
9418 - | request,
|
9419 - | )
|
9420 - | .await
|
10195 + | crate::protocol_serde::shape_operation_with_defaults::de_operation_with_defaults_http_request(request)
|
10196 + | .await
|
9421 10197 | };
|
9422 10198 | use ::futures_util::future::TryFutureExt;
|
9423 10199 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9424 10200 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9425 10201 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9426 10202 | });
|
9427 - | MediaTypeHeaderInputFuture {
|
10203 + | OperationWithDefaultsInputFuture {
|
9428 10204 | inner: Box::pin(fut),
|
9429 10205 | }
|
9430 10206 | }
|
9431 10207 | }
|
9432 10208 | impl
|
9433 10209 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9434 10210 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9435 - | > for crate::output::MediaTypeHeaderOutput
|
10211 + | > for crate::output::OperationWithDefaultsOutput
|
9436 10212 | {
|
9437 10213 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9438 - | match crate::protocol_serde::shape_media_type_header::ser_media_type_header_http_response(
|
9439 - | self,
|
9440 - | ) {
|
9441 - | Ok(response) => response,
|
9442 - | Err(e) => {
|
9443 - | ::tracing::error!(error = %e, "failed to serialize response");
|
9444 - | ::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))
|
9445 - | }
|
9446 - | }
|
10214 + | match crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_http_response(self) {
|
10215 + | Ok(response) => response,
|
10216 + | Err(e) => {
|
10217 + | ::tracing::error!(error = %e, "failed to serialize response");
|
10218 + | ::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))
|
10219 + | }
|
10220 + | }
|
9447 10221 | }
|
9448 10222 | }
|
9449 10223 | impl
|
9450 10224 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9451 10225 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9452 - | > for crate::error::MediaTypeHeaderError
|
10226 + | > for crate::error::OperationWithDefaultsError
|
9453 10227 | {
|
9454 10228 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9455 - | match crate::protocol_serde::shape_media_type_header::ser_media_type_header_http_error(
|
9456 - | &self,
|
9457 - | ) {
|
10229 + | match crate::protocol_serde::shape_operation_with_defaults::ser_operation_with_defaults_http_error(&self) {
|
9458 10230 | Ok(mut response) => {
|
9459 - | response.extensions_mut().insert(
|
9460 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
9461 - | self.name(),
|
9462 - | ),
|
9463 - | );
|
10231 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9464 10232 | response
|
9465 - | }
|
10233 + | },
|
9466 10234 | Err(e) => {
|
9467 10235 | ::tracing::error!(error = %e, "failed to serialize response");
|
9468 10236 | ::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))
|
9469 10237 | }
|
9470 10238 | }
|
9471 10239 | }
|
9472 10240 | }
|
9473 10241 |
|
9474 10242 | ::pin_project_lite::pin_project! {
|
9475 10243 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9476 - | /// [`TimestampFormatHeadersInput`](crate::input::TimestampFormatHeadersInput) using modelled bindings.
|
9477 - | pub struct TimestampFormatHeadersInputFuture {
|
9478 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::TimestampFormatHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10244 + | /// [`OperationWithNestedStructureInput`](crate::input::OperationWithNestedStructureInput) using modelled bindings.
|
10245 + | pub struct OperationWithNestedStructureInputFuture {
|
10246 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OperationWithNestedStructureInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9479 10247 | }
|
9480 10248 | }
|
9481 10249 |
|
9482 - | impl std::future::Future for TimestampFormatHeadersInputFuture {
|
10250 + | impl std::future::Future for OperationWithNestedStructureInputFuture {
|
9483 10251 | type Output = Result<
|
9484 - | crate::input::TimestampFormatHeadersInput,
|
10252 + | crate::input::OperationWithNestedStructureInput,
|
9485 10253 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9486 10254 | >;
|
9487 10255 |
|
9488 10256 | fn poll(
|
9489 10257 | self: std::pin::Pin<&mut Self>,
|
9490 10258 | cx: &mut std::task::Context<'_>,
|
9491 10259 | ) -> std::task::Poll<Self::Output> {
|
9492 10260 | let this = self.project();
|
9493 10261 | this.inner.as_mut().poll(cx)
|
9494 10262 | }
|
9495 10263 | }
|
9496 10264 |
|
9497 10265 | impl<B>
|
9498 10266 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9499 10267 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9500 10268 | B,
|
9501 - | > for crate::input::TimestampFormatHeadersInput
|
10269 + | > for crate::input::OperationWithNestedStructureInput
|
9502 10270 | where
|
9503 10271 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9504 10272 | B: 'static,
|
9505 10273 |
|
9506 10274 | B::Data: Send,
|
9507 10275 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9508 10276 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9509 10277 | {
|
9510 10278 | type Rejection =
|
9511 10279 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9512 - | type Future = TimestampFormatHeadersInputFuture;
|
10280 + | type Future = OperationWithNestedStructureInputFuture;
|
9513 10281 |
|
9514 10282 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9515 10283 | let fut = async move {
|
9516 10284 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9517 10285 | request.headers(),
|
9518 10286 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9519 10287 | ) {
|
9520 10288 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9521 10289 | }
|
9522 - | crate::protocol_serde::shape_timestamp_format_headers::de_timestamp_format_headers_http_request(request)
|
10290 + | crate::protocol_serde::shape_operation_with_nested_structure::de_operation_with_nested_structure_http_request(request)
|
9523 10291 | .await
|
9524 10292 | };
|
9525 10293 | use ::futures_util::future::TryFutureExt;
|
9526 10294 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9527 10295 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9528 10296 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9529 10297 | });
|
9530 - | TimestampFormatHeadersInputFuture {
|
10298 + | OperationWithNestedStructureInputFuture {
|
9531 10299 | inner: Box::pin(fut),
|
9532 10300 | }
|
9533 10301 | }
|
9534 10302 | }
|
9535 10303 | impl
|
9536 10304 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9537 10305 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9538 - | > for crate::output::TimestampFormatHeadersOutput
|
10306 + | > for crate::output::OperationWithNestedStructureOutput
|
9539 10307 | {
|
9540 10308 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9541 - | match crate::protocol_serde::shape_timestamp_format_headers::ser_timestamp_format_headers_http_response(self) {
|
10309 + | match crate::protocol_serde::shape_operation_with_nested_structure::ser_operation_with_nested_structure_http_response(self) {
|
9542 10310 | Ok(response) => response,
|
9543 10311 | Err(e) => {
|
9544 10312 | ::tracing::error!(error = %e, "failed to serialize response");
|
9545 10313 | ::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))
|
9546 10314 | }
|
9547 10315 | }
|
9548 10316 | }
|
9549 10317 | }
|
9550 10318 | impl
|
9551 10319 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9552 10320 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9553 - | > for crate::error::TimestampFormatHeadersError
|
10321 + | > for crate::error::OperationWithNestedStructureError
|
9554 10322 | {
|
9555 10323 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9556 - | match crate::protocol_serde::shape_timestamp_format_headers::ser_timestamp_format_headers_http_error(&self) {
|
10324 + | match crate::protocol_serde::shape_operation_with_nested_structure::ser_operation_with_nested_structure_http_error(&self) {
|
9557 10325 | Ok(mut response) => {
|
9558 10326 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9559 10327 | response
|
9560 10328 | },
|
9561 10329 | Err(e) => {
|
9562 10330 | ::tracing::error!(error = %e, "failed to serialize response");
|
9563 10331 | ::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))
|
9564 10332 | }
|
9565 10333 | }
|
9566 10334 | }
|
9567 10335 | }
|
9568 10336 |
|
9569 10337 | ::pin_project_lite::pin_project! {
|
9570 10338 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9571 - | /// [`NullAndEmptyHeadersServerInput`](crate::input::NullAndEmptyHeadersServerInput) using modelled bindings.
|
9572 - | pub struct NullAndEmptyHeadersServerInputFuture {
|
9573 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NullAndEmptyHeadersServerInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10339 + | /// [`InputStreamInput`](crate::input::InputStreamInput) using modelled bindings.
|
10340 + | pub struct InputStreamInputFuture {
|
10341 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::InputStreamInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9574 10342 | }
|
9575 10343 | }
|
9576 10344 |
|
9577 - | impl std::future::Future for NullAndEmptyHeadersServerInputFuture {
|
10345 + | impl std::future::Future for InputStreamInputFuture {
|
9578 10346 | type Output = Result<
|
9579 - | crate::input::NullAndEmptyHeadersServerInput,
|
10347 + | crate::input::InputStreamInput,
|
9580 10348 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9581 10349 | >;
|
9582 10350 |
|
9583 10351 | fn poll(
|
9584 10352 | self: std::pin::Pin<&mut Self>,
|
9585 10353 | cx: &mut std::task::Context<'_>,
|
9586 10354 | ) -> std::task::Poll<Self::Output> {
|
9587 10355 | let this = self.project();
|
9588 10356 | this.inner.as_mut().poll(cx)
|
9589 10357 | }
|
9590 10358 | }
|
9591 10359 |
|
9592 10360 | impl<B>
|
9593 10361 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9594 10362 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9595 10363 | B,
|
9596 - | > for crate::input::NullAndEmptyHeadersServerInput
|
10364 + | > for crate::input::InputStreamInput
|
9597 10365 | where
|
9598 10366 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9599 10367 | B: 'static,
|
9600 10368 |
|
10369 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9601 10370 | B::Data: Send,
|
9602 10371 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9603 10372 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9604 10373 | {
|
9605 10374 | type Rejection =
|
9606 10375 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9607 - | type Future = NullAndEmptyHeadersServerInputFuture;
|
10376 + | type Future = InputStreamInputFuture;
|
9608 10377 |
|
9609 10378 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9610 10379 | let fut = async move {
|
9611 10380 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9612 10381 | request.headers(),
|
9613 10382 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9614 10383 | ) {
|
9615 10384 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9616 10385 | }
|
9617 - | crate::protocol_serde::shape_null_and_empty_headers_server::de_null_and_empty_headers_server_http_request(request)
|
9618 - | .await
|
10386 + | crate::protocol_serde::shape_input_stream::de_input_stream_http_request(request).await
|
9619 10387 | };
|
9620 10388 | use ::futures_util::future::TryFutureExt;
|
9621 10389 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9622 10390 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9623 10391 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9624 10392 | });
|
9625 - | NullAndEmptyHeadersServerInputFuture {
|
10393 + | InputStreamInputFuture {
|
9626 10394 | inner: Box::pin(fut),
|
9627 10395 | }
|
9628 10396 | }
|
9629 10397 | }
|
9630 10398 | impl
|
9631 10399 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9632 10400 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9633 - | > for crate::output::NullAndEmptyHeadersServerOutput
|
10401 + | > for crate::output::InputStreamOutput
|
9634 10402 | {
|
9635 10403 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9636 - | match crate::protocol_serde::shape_null_and_empty_headers_server::ser_null_and_empty_headers_server_http_response(self) {
|
9637 - | Ok(response) => response,
|
9638 - | Err(e) => {
|
9639 - | ::tracing::error!(error = %e, "failed to serialize response");
|
9640 - | ::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))
|
9641 - | }
|
9642 - | }
|
10404 + | match crate::protocol_serde::shape_input_stream::ser_input_stream_http_response(self) {
|
10405 + | Ok(response) => response,
|
10406 + | Err(e) => {
|
10407 + | ::tracing::error!(error = %e, "failed to serialize response");
|
10408 + | ::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))
|
10409 + | }
|
10410 + | }
|
9643 10411 | }
|
9644 10412 | }
|
9645 10413 | impl
|
9646 10414 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9647 10415 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9648 - | > for crate::error::NullAndEmptyHeadersServerError
|
10416 + | > for crate::error::InputStreamError
|
9649 10417 | {
|
9650 10418 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9651 - | match crate::protocol_serde::shape_null_and_empty_headers_server::ser_null_and_empty_headers_server_http_error(&self) {
|
10419 + | match crate::protocol_serde::shape_input_stream::ser_input_stream_http_error(&self) {
|
9652 10420 | Ok(mut response) => {
|
9653 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
10421 + | response.extensions_mut().insert(
|
10422 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
10423 + | self.name(),
|
10424 + | ),
|
10425 + | );
|
9654 10426 | response
|
9655 - | },
|
10427 + | }
|
9656 10428 | Err(e) => {
|
9657 10429 | ::tracing::error!(error = %e, "failed to serialize response");
|
9658 10430 | ::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))
|
9659 10431 | }
|
9660 10432 | }
|
9661 10433 | }
|
9662 10434 | }
|
9663 10435 |
|
9664 10436 | ::pin_project_lite::pin_project! {
|
9665 10437 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9666 - | /// [`NullAndEmptyHeadersClientInput`](crate::input::NullAndEmptyHeadersClientInput) using modelled bindings.
|
9667 - | pub struct NullAndEmptyHeadersClientInputFuture {
|
9668 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NullAndEmptyHeadersClientInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10438 + | /// [`OutputStreamInput`](crate::input::OutputStreamInput) using modelled bindings.
|
10439 + | pub struct OutputStreamInputFuture {
|
10440 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OutputStreamInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9669 10441 | }
|
9670 10442 | }
|
9671 10443 |
|
9672 - | impl std::future::Future for NullAndEmptyHeadersClientInputFuture {
|
10444 + | impl std::future::Future for OutputStreamInputFuture {
|
9673 10445 | type Output = Result<
|
9674 - | crate::input::NullAndEmptyHeadersClientInput,
|
10446 + | crate::input::OutputStreamInput,
|
9675 10447 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9676 10448 | >;
|
9677 10449 |
|
9678 10450 | fn poll(
|
9679 10451 | self: std::pin::Pin<&mut Self>,
|
9680 10452 | cx: &mut std::task::Context<'_>,
|
9681 10453 | ) -> std::task::Poll<Self::Output> {
|
9682 10454 | let this = self.project();
|
9683 10455 | this.inner.as_mut().poll(cx)
|
9684 10456 | }
|
9685 10457 | }
|
9686 10458 |
|
9687 10459 | impl<B>
|
9688 10460 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9689 10461 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9690 10462 | B,
|
9691 - | > for crate::input::NullAndEmptyHeadersClientInput
|
10463 + | > for crate::input::OutputStreamInput
|
9692 10464 | where
|
9693 10465 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9694 10466 | B: 'static,
|
9695 10467 |
|
9696 10468 | B::Data: Send,
|
9697 10469 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9698 10470 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9699 10471 | {
|
9700 10472 | type Rejection =
|
9701 10473 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9702 - | type Future = NullAndEmptyHeadersClientInputFuture;
|
10474 + | type Future = OutputStreamInputFuture;
|
9703 10475 |
|
9704 10476 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9705 10477 | let fut = async move {
|
9706 10478 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9707 10479 | request.headers(),
|
9708 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
10480 + | &crate::mimes::CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM,
|
9709 10481 | ) {
|
9710 10482 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9711 10483 | }
|
9712 - | crate::protocol_serde::shape_null_and_empty_headers_client::de_null_and_empty_headers_client_http_request(request)
|
9713 - | .await
|
10484 + | crate::protocol_serde::shape_output_stream::de_output_stream_http_request(request).await
|
9714 10485 | };
|
9715 10486 | use ::futures_util::future::TryFutureExt;
|
9716 10487 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9717 10488 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9718 10489 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9719 10490 | });
|
9720 - | NullAndEmptyHeadersClientInputFuture {
|
10491 + | OutputStreamInputFuture {
|
9721 10492 | inner: Box::pin(fut),
|
9722 10493 | }
|
9723 10494 | }
|
9724 10495 | }
|
9725 10496 | impl
|
9726 10497 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9727 10498 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9728 - | > for crate::output::NullAndEmptyHeadersClientOutput
|
10499 + | > for crate::output::OutputStreamOutput
|
9729 10500 | {
|
9730 10501 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9731 - | match crate::protocol_serde::shape_null_and_empty_headers_client::ser_null_and_empty_headers_client_http_response(self) {
|
9732 - | Ok(response) => response,
|
9733 - | Err(e) => {
|
9734 - | ::tracing::error!(error = %e, "failed to serialize response");
|
9735 - | ::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))
|
9736 - | }
|
9737 - | }
|
10502 + | match crate::protocol_serde::shape_output_stream::ser_output_stream_http_response(self) {
|
10503 + | Ok(response) => response,
|
10504 + | Err(e) => {
|
10505 + | ::tracing::error!(error = %e, "failed to serialize response");
|
10506 + | ::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))
|
10507 + | }
|
10508 + | }
|
9738 10509 | }
|
9739 10510 | }
|
9740 10511 | impl
|
9741 10512 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9742 10513 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9743 - | > for crate::error::NullAndEmptyHeadersClientError
|
10514 + | > for crate::error::OutputStreamError
|
9744 10515 | {
|
9745 10516 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9746 - | match crate::protocol_serde::shape_null_and_empty_headers_client::ser_null_and_empty_headers_client_http_error(&self) {
|
10517 + | match crate::protocol_serde::shape_output_stream::ser_output_stream_http_error(&self) {
|
9747 10518 | Ok(mut response) => {
|
9748 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
10519 + | response.extensions_mut().insert(
|
10520 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
10521 + | self.name(),
|
10522 + | ),
|
10523 + | );
|
9749 10524 | response
|
9750 - | },
|
10525 + | }
|
9751 10526 | Err(e) => {
|
9752 10527 | ::tracing::error!(error = %e, "failed to serialize response");
|
9753 10528 | ::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))
|
9754 10529 | }
|
9755 10530 | }
|
9756 10531 | }
|
9757 10532 | }
|
9758 10533 |
|
9759 10534 | ::pin_project_lite::pin_project! {
|
9760 10535 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9761 - | /// [`InputAndOutputWithHeadersInput`](crate::input::InputAndOutputWithHeadersInput) using modelled bindings.
|
9762 - | pub struct InputAndOutputWithHeadersInputFuture {
|
9763 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::InputAndOutputWithHeadersInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10536 + | /// [`DuplexStreamInput`](crate::input::DuplexStreamInput) using modelled bindings.
|
10537 + | pub struct DuplexStreamInputFuture {
|
10538 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DuplexStreamInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9764 10539 | }
|
9765 10540 | }
|
9766 10541 |
|
9767 - | impl std::future::Future for InputAndOutputWithHeadersInputFuture {
|
10542 + | impl std::future::Future for DuplexStreamInputFuture {
|
9768 10543 | type Output = Result<
|
9769 - | crate::input::InputAndOutputWithHeadersInput,
|
10544 + | crate::input::DuplexStreamInput,
|
9770 10545 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9771 10546 | >;
|
9772 10547 |
|
9773 10548 | fn poll(
|
9774 10549 | self: std::pin::Pin<&mut Self>,
|
9775 10550 | cx: &mut std::task::Context<'_>,
|
9776 10551 | ) -> std::task::Poll<Self::Output> {
|
9777 10552 | let this = self.project();
|
9778 10553 | this.inner.as_mut().poll(cx)
|
9779 10554 | }
|
9780 10555 | }
|
9781 10556 |
|
9782 10557 | impl<B>
|
9783 10558 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9784 10559 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9785 10560 | B,
|
9786 - | > for crate::input::InputAndOutputWithHeadersInput
|
10561 + | > for crate::input::DuplexStreamInput
|
9787 10562 | where
|
9788 10563 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9789 10564 | B: 'static,
|
9790 10565 |
|
10566 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9791 10567 | B::Data: Send,
|
9792 10568 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9793 10569 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9794 10570 | {
|
9795 10571 | type Rejection =
|
9796 10572 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9797 - | type Future = InputAndOutputWithHeadersInputFuture;
|
10573 + | type Future = DuplexStreamInputFuture;
|
9798 10574 |
|
9799 10575 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9800 10576 | let fut = async move {
|
9801 10577 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9802 10578 | request.headers(),
|
9803 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
10579 + | &crate::mimes::CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM,
|
9804 10580 | ) {
|
9805 10581 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9806 10582 | }
|
9807 - | crate::protocol_serde::shape_input_and_output_with_headers::de_input_and_output_with_headers_http_request(request)
|
9808 - | .await
|
10583 + | crate::protocol_serde::shape_duplex_stream::de_duplex_stream_http_request(request).await
|
9809 10584 | };
|
9810 10585 | use ::futures_util::future::TryFutureExt;
|
9811 10586 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9812 10587 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9813 10588 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9814 10589 | });
|
9815 - | InputAndOutputWithHeadersInputFuture {
|
10590 + | DuplexStreamInputFuture {
|
9816 10591 | inner: Box::pin(fut),
|
9817 10592 | }
|
9818 10593 | }
|
9819 10594 | }
|
9820 10595 | impl
|
9821 10596 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9822 10597 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9823 - | > for crate::output::InputAndOutputWithHeadersOutput
|
10598 + | > for crate::output::DuplexStreamOutput
|
9824 10599 | {
|
9825 10600 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9826 - | match crate::protocol_serde::shape_input_and_output_with_headers::ser_input_and_output_with_headers_http_response(self) {
|
9827 - | Ok(response) => response,
|
9828 - | Err(e) => {
|
9829 - | ::tracing::error!(error = %e, "failed to serialize response");
|
9830 - | ::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))
|
9831 - | }
|
9832 - | }
|
10601 + | match crate::protocol_serde::shape_duplex_stream::ser_duplex_stream_http_response(self) {
|
10602 + | Ok(response) => response,
|
10603 + | Err(e) => {
|
10604 + | ::tracing::error!(error = %e, "failed to serialize response");
|
10605 + | ::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))
|
10606 + | }
|
10607 + | }
|
9833 10608 | }
|
9834 10609 | }
|
9835 10610 | impl
|
9836 10611 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9837 10612 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9838 - | > for crate::error::InputAndOutputWithHeadersError
|
10613 + | > for crate::error::DuplexStreamError
|
9839 10614 | {
|
9840 10615 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9841 - | match crate::protocol_serde::shape_input_and_output_with_headers::ser_input_and_output_with_headers_http_error(&self) {
|
10616 + | match crate::protocol_serde::shape_duplex_stream::ser_duplex_stream_http_error(&self) {
|
9842 10617 | Ok(mut response) => {
|
9843 - | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
10618 + | response.extensions_mut().insert(
|
10619 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
10620 + | self.name(),
|
10621 + | ),
|
10622 + | );
|
9844 10623 | response
|
9845 - | },
|
10624 + | }
|
9846 10625 | Err(e) => {
|
9847 10626 | ::tracing::error!(error = %e, "failed to serialize response");
|
9848 10627 | ::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))
|
9849 10628 | }
|
9850 10629 | }
|
9851 10630 | }
|
9852 10631 | }
|
9853 10632 |
|
9854 10633 | ::pin_project_lite::pin_project! {
|
9855 10634 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9856 - | /// [`UnitInputAndOutputInput`](crate::input::UnitInputAndOutputInput) using modelled bindings.
|
9857 - | pub struct UnitInputAndOutputInputFuture {
|
9858 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::UnitInputAndOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10635 + | /// [`InputStreamWithInitialRequestInput`](crate::input::InputStreamWithInitialRequestInput) using modelled bindings.
|
10636 + | pub struct InputStreamWithInitialRequestInputFuture {
|
10637 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::InputStreamWithInitialRequestInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9859 10638 | }
|
9860 10639 | }
|
9861 10640 |
|
9862 - | impl std::future::Future for UnitInputAndOutputInputFuture {
|
10641 + | impl std::future::Future for InputStreamWithInitialRequestInputFuture {
|
9863 10642 | type Output = Result<
|
9864 - | crate::input::UnitInputAndOutputInput,
|
10643 + | crate::input::InputStreamWithInitialRequestInput,
|
9865 10644 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9866 10645 | >;
|
9867 10646 |
|
9868 10647 | fn poll(
|
9869 10648 | self: std::pin::Pin<&mut Self>,
|
9870 10649 | cx: &mut std::task::Context<'_>,
|
9871 10650 | ) -> std::task::Poll<Self::Output> {
|
9872 10651 | let this = self.project();
|
9873 10652 | this.inner.as_mut().poll(cx)
|
9874 10653 | }
|
9875 10654 | }
|
9876 10655 |
|
9877 10656 | impl<B>
|
9878 10657 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9879 10658 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9880 10659 | B,
|
9881 - | > for crate::input::UnitInputAndOutputInput
|
10660 + | > for crate::input::InputStreamWithInitialRequestInput
|
9882 10661 | where
|
9883 10662 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9884 10663 | B: 'static,
|
9885 10664 |
|
10665 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
9886 10666 | B::Data: Send,
|
9887 10667 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9888 10668 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9889 10669 | {
|
9890 10670 | type Rejection =
|
9891 10671 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9892 - | type Future = UnitInputAndOutputInputFuture;
|
10672 + | type Future = InputStreamWithInitialRequestInputFuture;
|
9893 10673 |
|
9894 10674 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9895 10675 | let fut = async move {
|
9896 10676 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9897 10677 | request.headers(),
|
9898 10678 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
9899 10679 | ) {
|
9900 10680 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9901 10681 | }
|
9902 - | crate::protocol_serde::shape_unit_input_and_output::de_unit_input_and_output_http_request(request)
|
10682 + | crate::protocol_serde::shape_input_stream_with_initial_request::de_input_stream_with_initial_request_http_request(request)
|
9903 10683 | .await
|
9904 10684 | };
|
9905 10685 | use ::futures_util::future::TryFutureExt;
|
9906 10686 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
9907 10687 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
9908 10688 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
9909 10689 | });
|
9910 - | UnitInputAndOutputInputFuture {
|
10690 + | InputStreamWithInitialRequestInputFuture {
|
9911 10691 | inner: Box::pin(fut),
|
9912 10692 | }
|
9913 10693 | }
|
9914 10694 | }
|
9915 10695 | impl
|
9916 10696 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9917 10697 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9918 - | > for crate::output::UnitInputAndOutputOutput
|
10698 + | > for crate::output::InputStreamWithInitialRequestOutput
|
9919 10699 | {
|
9920 10700 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9921 - | match crate::protocol_serde::shape_unit_input_and_output::ser_unit_input_and_output_http_response(self) {
|
10701 + | match crate::protocol_serde::shape_input_stream_with_initial_request::ser_input_stream_with_initial_request_http_response(self) {
|
9922 10702 | Ok(response) => response,
|
9923 10703 | Err(e) => {
|
9924 10704 | ::tracing::error!(error = %e, "failed to serialize response");
|
9925 10705 | ::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))
|
9926 10706 | }
|
9927 10707 | }
|
9928 10708 | }
|
9929 10709 | }
|
9930 10710 | impl
|
9931 10711 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
9932 10712 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9933 - | > for crate::error::UnitInputAndOutputError
|
10713 + | > for crate::error::InputStreamWithInitialRequestError
|
9934 10714 | {
|
9935 10715 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
9936 - | match crate::protocol_serde::shape_unit_input_and_output::ser_unit_input_and_output_http_error(&self) {
|
10716 + | match crate::protocol_serde::shape_input_stream_with_initial_request::ser_input_stream_with_initial_request_http_error(&self) {
|
9937 10717 | Ok(mut response) => {
|
9938 10718 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
9939 10719 | response
|
9940 10720 | },
|
9941 10721 | Err(e) => {
|
9942 10722 | ::tracing::error!(error = %e, "failed to serialize response");
|
9943 10723 | ::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))
|
9944 10724 | }
|
9945 10725 | }
|
9946 10726 | }
|
9947 10727 | }
|
9948 10728 |
|
9949 10729 | ::pin_project_lite::pin_project! {
|
9950 10730 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
9951 - | /// [`EmptyInputAndEmptyOutputInput`](crate::input::EmptyInputAndEmptyOutputInput) using modelled bindings.
|
9952 - | pub struct EmptyInputAndEmptyOutputInputFuture {
|
9953 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::EmptyInputAndEmptyOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10731 + | /// [`OutputStreamWithInitialResponseInput`](crate::input::OutputStreamWithInitialResponseInput) using modelled bindings.
|
10732 + | pub struct OutputStreamWithInitialResponseInputFuture {
|
10733 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::OutputStreamWithInitialResponseInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9954 10734 | }
|
9955 10735 | }
|
9956 10736 |
|
9957 - | impl std::future::Future for EmptyInputAndEmptyOutputInputFuture {
|
10737 + | impl std::future::Future for OutputStreamWithInitialResponseInputFuture {
|
9958 10738 | type Output = Result<
|
9959 - | crate::input::EmptyInputAndEmptyOutputInput,
|
10739 + | crate::input::OutputStreamWithInitialResponseInput,
|
9960 10740 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
9961 10741 | >;
|
9962 10742 |
|
9963 10743 | fn poll(
|
9964 10744 | self: std::pin::Pin<&mut Self>,
|
9965 10745 | cx: &mut std::task::Context<'_>,
|
9966 10746 | ) -> std::task::Poll<Self::Output> {
|
9967 10747 | let this = self.project();
|
9968 10748 | this.inner.as_mut().poll(cx)
|
9969 10749 | }
|
9970 10750 | }
|
9971 10751 |
|
9972 10752 | impl<B>
|
9973 10753 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
9974 10754 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
9975 10755 | B,
|
9976 - | > for crate::input::EmptyInputAndEmptyOutputInput
|
10756 + | > for crate::input::OutputStreamWithInitialResponseInput
|
9977 10757 | where
|
9978 10758 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
9979 10759 | B: 'static,
|
9980 10760 |
|
9981 10761 | B::Data: Send,
|
9982 10762 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
9983 10763 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
9984 10764 | {
|
9985 10765 | type Rejection =
|
9986 10766 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
9987 - | type Future = EmptyInputAndEmptyOutputInputFuture;
|
10767 + | type Future = OutputStreamWithInitialResponseInputFuture;
|
9988 10768 |
|
9989 10769 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
9990 10770 | let fut = async move {
|
9991 10771 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
9992 10772 | request.headers(),
|
9993 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
10773 + | &crate::mimes::CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM,
|
9994 10774 | ) {
|
9995 10775 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
9996 10776 | }
|
9997 - | crate::protocol_serde::shape_empty_input_and_empty_output::de_empty_input_and_empty_output_http_request(request)
|
10777 + | crate::protocol_serde::shape_output_stream_with_initial_response::de_output_stream_with_initial_response_http_request(request)
|
9998 10778 | .await
|
9999 10779 | };
|
10000 10780 | use ::futures_util::future::TryFutureExt;
|
10001 10781 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
10002 10782 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
10003 10783 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
10004 10784 | });
|
10005 - | EmptyInputAndEmptyOutputInputFuture {
|
10785 + | OutputStreamWithInitialResponseInputFuture {
|
10006 10786 | inner: Box::pin(fut),
|
10007 10787 | }
|
10008 10788 | }
|
10009 10789 | }
|
10010 10790 | impl
|
10011 10791 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
10012 10792 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10013 - | > for crate::output::EmptyInputAndEmptyOutputOutput
|
10793 + | > for crate::output::OutputStreamWithInitialResponseOutput
|
10014 10794 | {
|
10015 10795 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
10016 - | match crate::protocol_serde::shape_empty_input_and_empty_output::ser_empty_input_and_empty_output_http_response(self) {
|
10796 + | match crate::protocol_serde::shape_output_stream_with_initial_response::ser_output_stream_with_initial_response_http_response(self) {
|
10017 10797 | Ok(response) => response,
|
10018 10798 | Err(e) => {
|
10019 10799 | ::tracing::error!(error = %e, "failed to serialize response");
|
10020 10800 | ::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))
|
10021 10801 | }
|
10022 10802 | }
|
10023 10803 | }
|
10024 10804 | }
|
10025 10805 | impl
|
10026 10806 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
10027 10807 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10028 - | > for crate::error::EmptyInputAndEmptyOutputError
|
10808 + | > for crate::error::OutputStreamWithInitialResponseError
|
10029 10809 | {
|
10030 10810 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
10031 - | match crate::protocol_serde::shape_empty_input_and_empty_output::ser_empty_input_and_empty_output_http_error(&self) {
|
10811 + | match crate::protocol_serde::shape_output_stream_with_initial_response::ser_output_stream_with_initial_response_http_error(&self) {
|
10032 10812 | Ok(mut response) => {
|
10033 10813 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
10034 10814 | response
|
10035 10815 | },
|
10036 10816 | Err(e) => {
|
10037 10817 | ::tracing::error!(error = %e, "failed to serialize response");
|
10038 10818 | ::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))
|
10039 10819 | }
|
10040 10820 | }
|
10041 10821 | }
|
10042 10822 | }
|
10043 10823 |
|
10044 10824 | ::pin_project_lite::pin_project! {
|
10045 10825 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
10046 - | /// [`NoInputAndOutputInput`](crate::input::NoInputAndOutputInput) using modelled bindings.
|
10047 - | pub struct NoInputAndOutputInputFuture {
|
10048 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NoInputAndOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10826 + | /// [`DuplexStreamWithInitialMessagesInput`](crate::input::DuplexStreamWithInitialMessagesInput) using modelled bindings.
|
10827 + | pub struct DuplexStreamWithInitialMessagesInputFuture {
|
10828 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DuplexStreamWithInitialMessagesInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10049 10829 | }
|
10050 10830 | }
|
10051 10831 |
|
10052 - | impl std::future::Future for NoInputAndOutputInputFuture {
|
10832 + | impl std::future::Future for DuplexStreamWithInitialMessagesInputFuture {
|
10053 10833 | type Output = Result<
|
10054 - | crate::input::NoInputAndOutputInput,
|
10834 + | crate::input::DuplexStreamWithInitialMessagesInput,
|
10055 10835 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
10056 10836 | >;
|
10057 10837 |
|
10058 10838 | fn poll(
|
10059 10839 | self: std::pin::Pin<&mut Self>,
|
10060 10840 | cx: &mut std::task::Context<'_>,
|
10061 10841 | ) -> std::task::Poll<Self::Output> {
|
10062 10842 | let this = self.project();
|
10063 10843 | this.inner.as_mut().poll(cx)
|
10064 10844 | }
|
10065 10845 | }
|
10066 10846 |
|
10067 10847 | impl<B>
|
10068 10848 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
10069 10849 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10070 10850 | B,
|
10071 - | > for crate::input::NoInputAndOutputInput
|
10851 + | > for crate::input::DuplexStreamWithInitialMessagesInput
|
10072 10852 | where
|
10073 10853 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
10074 10854 | B: 'static,
|
10075 10855 |
|
10856 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
10076 10857 | B::Data: Send,
|
10077 10858 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
10078 10859 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
10079 10860 | {
|
10080 10861 | type Rejection =
|
10081 10862 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
10082 - | type Future = NoInputAndOutputInputFuture;
|
10863 + | type Future = DuplexStreamWithInitialMessagesInputFuture;
|
10083 10864 |
|
10084 10865 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
10085 10866 | let fut = async move {
|
10086 10867 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
10087 10868 | request.headers(),
|
10088 - | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
10869 + | &crate::mimes::CONTENT_TYPE_APPLICATION_VND_AMAZON_EVENTSTREAM,
|
10089 10870 | ) {
|
10090 10871 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
10091 10872 | }
|
10092 - | crate::protocol_serde::shape_no_input_and_output::de_no_input_and_output_http_request(
|
10093 - | request,
|
10094 - | )
|
10095 - | .await
|
10873 + | crate::protocol_serde::shape_duplex_stream_with_initial_messages::de_duplex_stream_with_initial_messages_http_request(request)
|
10874 + | .await
|
10096 10875 | };
|
10097 10876 | use ::futures_util::future::TryFutureExt;
|
10098 10877 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
10099 10878 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
10100 10879 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
10101 10880 | });
|
10102 - | NoInputAndOutputInputFuture {
|
10881 + | DuplexStreamWithInitialMessagesInputFuture {
|
10103 10882 | inner: Box::pin(fut),
|
10104 10883 | }
|
10105 10884 | }
|
10106 10885 | }
|
10107 10886 | impl
|
10108 10887 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
10109 10888 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10110 - | > for crate::output::NoInputAndOutputOutput
|
10889 + | > for crate::output::DuplexStreamWithInitialMessagesOutput
|
10111 10890 | {
|
10112 10891 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
10113 - | match crate::protocol_serde::shape_no_input_and_output::ser_no_input_and_output_http_response(self) {
|
10892 + | match crate::protocol_serde::shape_duplex_stream_with_initial_messages::ser_duplex_stream_with_initial_messages_http_response(self) {
|
10114 10893 | Ok(response) => response,
|
10115 10894 | Err(e) => {
|
10116 10895 | ::tracing::error!(error = %e, "failed to serialize response");
|
10117 10896 | ::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))
|
10118 10897 | }
|
10119 10898 | }
|
10120 10899 | }
|
10121 10900 | }
|
10122 10901 | impl
|
10123 10902 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
10124 10903 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10125 - | > for crate::error::NoInputAndOutputError
|
10904 + | > for crate::error::DuplexStreamWithInitialMessagesError
|
10126 10905 | {
|
10127 10906 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
10128 - | match crate::protocol_serde::shape_no_input_and_output::ser_no_input_and_output_http_error(
|
10129 - | &self,
|
10130 - | ) {
|
10907 + | match crate::protocol_serde::shape_duplex_stream_with_initial_messages::ser_duplex_stream_with_initial_messages_http_error(&self) {
|
10131 10908 | Ok(mut response) => {
|
10132 - | response.extensions_mut().insert(
|
10133 - | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
10134 - | self.name(),
|
10135 - | ),
|
10136 - | );
|
10909 + | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
10137 10910 | response
|
10138 - | }
|
10911 + | },
|
10139 10912 | Err(e) => {
|
10140 10913 | ::tracing::error!(error = %e, "failed to serialize response");
|
10141 10914 | ::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))
|
10142 10915 | }
|
10143 10916 | }
|
10144 10917 | }
|
10145 10918 | }
|
10146 10919 |
|
10147 10920 | ::pin_project_lite::pin_project! {
|
10148 10921 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
10149 - | /// [`NoInputAndNoOutputInput`](crate::input::NoInputAndNoOutputInput) using modelled bindings.
|
10150 - | pub struct NoInputAndNoOutputInputFuture {
|
10151 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::NoInputAndNoOutputInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10922 + | /// [`DuplexStreamWithDistinctStreamsInput`](crate::input::DuplexStreamWithDistinctStreamsInput) using modelled bindings.
|
10923 + | pub struct DuplexStreamWithDistinctStreamsInputFuture {
|
10924 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::DuplexStreamWithDistinctStreamsInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
10152 10925 | }
|
10153 10926 | }
|
10154 10927 |
|
10155 - | impl std::future::Future for NoInputAndNoOutputInputFuture {
|
10928 + | impl std::future::Future for DuplexStreamWithDistinctStreamsInputFuture {
|
10156 10929 | type Output = Result<
|
10157 - | crate::input::NoInputAndNoOutputInput,
|
10930 + | crate::input::DuplexStreamWithDistinctStreamsInput,
|
10158 10931 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
10159 10932 | >;
|
10160 10933 |
|
10161 10934 | fn poll(
|
10162 10935 | self: std::pin::Pin<&mut Self>,
|
10163 10936 | cx: &mut std::task::Context<'_>,
|
10164 10937 | ) -> std::task::Poll<Self::Output> {
|
10165 10938 | let this = self.project();
|
10166 10939 | this.inner.as_mut().poll(cx)
|
10167 10940 | }
|
10168 10941 | }
|
10169 10942 |
|
10170 10943 | impl<B>
|
10171 10944 | ::aws_smithy_legacy_http_server::request::FromRequest<
|
10172 10945 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10173 10946 | B,
|
10174 - | > for crate::input::NoInputAndNoOutputInput
|
10947 + | > for crate::input::DuplexStreamWithDistinctStreamsInput
|
10175 10948 | where
|
10176 10949 | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
10177 10950 | B: 'static,
|
10178 10951 |
|
10952 + | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
10179 10953 | B::Data: Send,
|
10180 10954 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
10181 10955 | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
10182 10956 | {
|
10183 10957 | type Rejection =
|
10184 10958 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
10185 - | type Future = NoInputAndNoOutputInputFuture;
|
10959 + | type Future = DuplexStreamWithDistinctStreamsInputFuture;
|
10186 10960 |
|
10187 10961 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
10188 10962 | let fut = async move {
|
10189 10963 | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
10190 10964 | request.headers(),
|
10191 10965 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
10192 10966 | ) {
|
10193 10967 | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
10194 10968 | }
|
10195 - | crate::protocol_serde::shape_no_input_and_no_output::de_no_input_and_no_output_http_request(request)
|
10969 + | crate::protocol_serde::shape_duplex_stream_with_distinct_streams::de_duplex_stream_with_distinct_streams_http_request(request)
|
10196 10970 | .await
|
10197 10971 | };
|
10198 10972 | use ::futures_util::future::TryFutureExt;
|
10199 10973 | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
10200 10974 | ::tracing::debug!(error = %e, "failed to deserialize request");
|
10201 10975 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
10202 10976 | });
|
10203 - | NoInputAndNoOutputInputFuture {
|
10977 + | DuplexStreamWithDistinctStreamsInputFuture {
|
10204 10978 | inner: Box::pin(fut),
|
10205 10979 | }
|
10206 10980 | }
|
10207 10981 | }
|
10208 10982 | impl
|
10209 10983 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
10210 10984 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10211 - | > for crate::output::NoInputAndNoOutputOutput
|
10985 + | > for crate::output::DuplexStreamWithDistinctStreamsOutput
|
10212 10986 | {
|
10213 10987 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
10214 - | match crate::protocol_serde::shape_no_input_and_no_output::ser_no_input_and_no_output_http_response(self) {
|
10988 + | match crate::protocol_serde::shape_duplex_stream_with_distinct_streams::ser_duplex_stream_with_distinct_streams_http_response(self) {
|
10215 10989 | Ok(response) => response,
|
10216 10990 | Err(e) => {
|
10217 10991 | ::tracing::error!(error = %e, "failed to serialize response");
|
10218 10992 | ::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))
|
10219 10993 | }
|
10220 10994 | }
|
10221 10995 | }
|
10222 10996 | }
|
10223 10997 | impl
|
10224 10998 | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
10225 10999 | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
10226 - | > for crate::error::NoInputAndNoOutputError
|
11000 + | > for crate::error::DuplexStreamWithDistinctStreamsError
|
10227 11001 | {
|
10228 11002 | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
10229 - | match crate::protocol_serde::shape_no_input_and_no_output::ser_no_input_and_no_output_http_error(&self) {
|
11003 + | match crate::protocol_serde::shape_duplex_stream_with_distinct_streams::ser_duplex_stream_with_distinct_streams_http_error(&self) {
|
10230 11004 | Ok(mut response) => {
|
10231 11005 | response.extensions_mut().insert(::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(self.name()));
|
10232 11006 | response
|
10233 11007 | },
|
10234 11008 | Err(e) => {
|
10235 11009 | ::tracing::error!(error = %e, "failed to serialize response");
|
10236 11010 | ::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))
|
10237 11011 | }
|
10238 11012 | }
|
10239 11013 | }
|