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