1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 2 | ::pin_project_lite::pin_project! {
|
3 3 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
4 4 | /// [`StartSnapshotInput`](crate::input::StartSnapshotInput) using modelled bindings.
|
5 5 | pub struct StartSnapshotInputFuture {
|
6 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StartSnapshotInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
6 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::StartSnapshotInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
7 7 | }
|
8 8 | }
|
9 9 |
|
10 10 | impl std::future::Future for StartSnapshotInputFuture {
|
11 11 | type Output = Result<
|
12 12 | crate::input::StartSnapshotInput,
|
13 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
13 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
14 14 | >;
|
15 15 |
|
16 16 | fn poll(
|
17 17 | self: std::pin::Pin<&mut Self>,
|
18 18 | cx: &mut std::task::Context<'_>,
|
19 19 | ) -> std::task::Poll<Self::Output> {
|
20 20 | let this = self.project();
|
21 21 | this.inner.as_mut().poll(cx)
|
22 22 | }
|
23 23 | }
|
24 24 |
|
25 25 | impl<B>
|
26 - | ::aws_smithy_http_server::request::FromRequest<
|
27 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
26 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
27 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
28 28 | B,
|
29 29 | > for crate::input::StartSnapshotInput
|
30 30 | where
|
31 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
31 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
32 32 | B: 'static,
|
33 33 |
|
34 34 | B::Data: Send,
|
35 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
35 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
36 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
37 37 | {
|
38 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
38 + | type Rejection =
|
39 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
39 40 | type Future = StartSnapshotInputFuture;
|
40 41 |
|
41 42 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
42 43 | let fut = async move {
|
43 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
44 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
44 45 | request.headers(),
|
45 46 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
46 47 | ) {
|
47 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
48 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
48 49 | }
|
49 50 | crate::protocol_serde::shape_start_snapshot::de_start_snapshot_http_request(request)
|
50 51 | .await
|
51 52 | };
|
52 53 | use ::futures_util::future::TryFutureExt;
|
53 - | let fut = fut.map_err(
|
54 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
55 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
56 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
57 - | e,
|
58 - | )
|
59 - | },
|
60 - | );
|
54 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
55 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
56 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
57 + | });
|
61 58 | StartSnapshotInputFuture {
|
62 59 | inner: Box::pin(fut),
|
63 60 | }
|
64 61 | }
|
65 62 | }
|
66 63 | impl
|
67 - | ::aws_smithy_http_server::response::IntoResponse<
|
68 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
64 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
65 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
69 66 | > for crate::output::StartSnapshotOutput
|
70 67 | {
|
71 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
68 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
72 69 | match crate::protocol_serde::shape_start_snapshot::ser_start_snapshot_http_response(self) {
|
73 70 | Ok(response) => response,
|
74 71 | Err(e) => {
|
75 72 | ::tracing::error!(error = %e, "failed to serialize response");
|
76 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
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))
|
77 74 | }
|
78 75 | }
|
79 76 | }
|
80 77 | }
|
81 78 | impl
|
82 - | ::aws_smithy_http_server::response::IntoResponse<
|
83 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
79 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
80 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
84 81 | > for crate::error::StartSnapshotError
|
85 82 | {
|
86 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
83 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
87 84 | match crate::protocol_serde::shape_start_snapshot::ser_start_snapshot_http_error(&self) {
|
88 85 | Ok(mut response) => {
|
89 86 | response.extensions_mut().insert(
|
90 - | ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
|
87 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
88 + | self.name(),
|
89 + | ),
|
91 90 | );
|
92 91 | response
|
93 92 | }
|
94 93 | Err(e) => {
|
95 94 | ::tracing::error!(error = %e, "failed to serialize response");
|
96 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
95 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
97 96 | }
|
98 97 | }
|
99 98 | }
|
100 99 | }
|
101 100 |
|
102 101 | ::pin_project_lite::pin_project! {
|
103 102 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
104 103 | /// [`PutSnapshotBlockInput`](crate::input::PutSnapshotBlockInput) using modelled bindings.
|
105 104 | pub struct PutSnapshotBlockInputFuture {
|
106 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PutSnapshotBlockInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
105 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::PutSnapshotBlockInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
107 106 | }
|
108 107 | }
|
109 108 |
|
110 109 | impl std::future::Future for PutSnapshotBlockInputFuture {
|
111 110 | type Output = Result<
|
112 111 | crate::input::PutSnapshotBlockInput,
|
113 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
112 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
114 113 | >;
|
115 114 |
|
116 115 | fn poll(
|
117 116 | self: std::pin::Pin<&mut Self>,
|
118 117 | cx: &mut std::task::Context<'_>,
|
119 118 | ) -> std::task::Poll<Self::Output> {
|
120 119 | let this = self.project();
|
121 120 | this.inner.as_mut().poll(cx)
|
122 121 | }
|
123 122 | }
|
124 123 |
|
125 124 | impl<B>
|
126 - | ::aws_smithy_http_server::request::FromRequest<
|
127 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
125 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
126 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
128 127 | B,
|
129 128 | > for crate::input::PutSnapshotBlockInput
|
130 129 | where
|
131 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
130 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
132 131 | B: 'static,
|
133 132 |
|
134 133 | B: Into<::aws_smithy_types::byte_stream::ByteStream>,
|
135 134 | B::Data: Send,
|
136 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
137 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
135 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
136 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
138 137 | {
|
139 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
138 + | type Rejection =
|
139 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
140 140 | type Future = PutSnapshotBlockInputFuture;
|
141 141 |
|
142 142 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
143 143 | let fut = async move {
|
144 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
144 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
145 145 | request.headers(),
|
146 146 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
147 147 | ) {
|
148 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
148 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
149 149 | }
|
150 150 | crate::protocol_serde::shape_put_snapshot_block::de_put_snapshot_block_http_request(
|
151 151 | request,
|
152 152 | )
|
153 153 | .await
|
154 154 | };
|
155 155 | use ::futures_util::future::TryFutureExt;
|
156 - | let fut = fut.map_err(
|
157 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
158 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
159 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
160 - | e,
|
161 - | )
|
162 - | },
|
163 - | );
|
156 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
157 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
158 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
159 + | });
|
164 160 | PutSnapshotBlockInputFuture {
|
165 161 | inner: Box::pin(fut),
|
166 162 | }
|
167 163 | }
|
168 164 | }
|
169 165 | impl
|
170 - | ::aws_smithy_http_server::response::IntoResponse<
|
171 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
166 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
167 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
172 168 | > for crate::output::PutSnapshotBlockOutput
|
173 169 | {
|
174 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
170 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
175 171 | match crate::protocol_serde::shape_put_snapshot_block::ser_put_snapshot_block_http_response(
|
176 172 | self,
|
177 173 | ) {
|
178 174 | Ok(response) => response,
|
179 175 | Err(e) => {
|
180 176 | ::tracing::error!(error = %e, "failed to serialize response");
|
181 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
177 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
182 178 | }
|
183 179 | }
|
184 180 | }
|
185 181 | }
|
186 182 | impl
|
187 - | ::aws_smithy_http_server::response::IntoResponse<
|
188 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
183 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
184 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
189 185 | > for crate::error::PutSnapshotBlockError
|
190 186 | {
|
191 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
187 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
192 188 | match crate::protocol_serde::shape_put_snapshot_block::ser_put_snapshot_block_http_error(
|
193 189 | &self,
|
194 190 | ) {
|
195 191 | Ok(mut response) => {
|
196 192 | response.extensions_mut().insert(
|
197 - | ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
|
193 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
194 + | self.name(),
|
195 + | ),
|
198 196 | );
|
199 197 | response
|
200 198 | }
|
201 199 | Err(e) => {
|
202 200 | ::tracing::error!(error = %e, "failed to serialize response");
|
203 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
201 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
204 202 | }
|
205 203 | }
|
206 204 | }
|
207 205 | }
|
208 206 |
|
209 207 | ::pin_project_lite::pin_project! {
|
210 208 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
211 209 | /// [`ListSnapshotBlocksInput`](crate::input::ListSnapshotBlocksInput) using modelled bindings.
|
212 210 | pub struct ListSnapshotBlocksInputFuture {
|
213 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ListSnapshotBlocksInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
211 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ListSnapshotBlocksInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
214 212 | }
|
215 213 | }
|
216 214 |
|
217 215 | impl std::future::Future for ListSnapshotBlocksInputFuture {
|
218 216 | type Output = Result<
|
219 217 | crate::input::ListSnapshotBlocksInput,
|
220 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
218 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
221 219 | >;
|
222 220 |
|
223 221 | fn poll(
|
224 222 | self: std::pin::Pin<&mut Self>,
|
225 223 | cx: &mut std::task::Context<'_>,
|
226 224 | ) -> std::task::Poll<Self::Output> {
|
227 225 | let this = self.project();
|
228 226 | this.inner.as_mut().poll(cx)
|
229 227 | }
|
230 228 | }
|
231 229 |
|
232 230 | impl<B>
|
233 - | ::aws_smithy_http_server::request::FromRequest<
|
234 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
231 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
232 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
235 233 | B,
|
236 234 | > for crate::input::ListSnapshotBlocksInput
|
237 235 | where
|
238 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
236 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
239 237 | B: 'static,
|
240 238 |
|
241 239 | B::Data: Send,
|
242 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
243 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
240 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
241 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
244 242 | {
|
245 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
243 + | type Rejection =
|
244 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
246 245 | type Future = ListSnapshotBlocksInputFuture;
|
247 246 |
|
248 247 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
249 248 | let fut = async move {
|
250 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
249 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
251 250 | request.headers(),
|
252 251 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
253 252 | ) {
|
254 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
253 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
255 254 | }
|
256 255 | crate::protocol_serde::shape_list_snapshot_blocks::de_list_snapshot_blocks_http_request(
|
257 256 | request,
|
258 257 | )
|
259 258 | .await
|
260 259 | };
|
261 260 | use ::futures_util::future::TryFutureExt;
|
262 - | let fut = fut.map_err(
|
263 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
264 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
265 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
266 - | e,
|
267 - | )
|
268 - | },
|
269 - | );
|
261 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
262 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
263 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
264 + | });
|
270 265 | ListSnapshotBlocksInputFuture {
|
271 266 | inner: Box::pin(fut),
|
272 267 | }
|
273 268 | }
|
274 269 | }
|
275 270 | impl
|
276 - | ::aws_smithy_http_server::response::IntoResponse<
|
277 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
271 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
272 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
278 273 | > for crate::output::ListSnapshotBlocksOutput
|
279 274 | {
|
280 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
275 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
281 276 | match crate::protocol_serde::shape_list_snapshot_blocks::ser_list_snapshot_blocks_http_response(self) {
|
282 277 | Ok(response) => response,
|
283 278 | Err(e) => {
|
284 279 | ::tracing::error!(error = %e, "failed to serialize response");
|
285 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
280 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
286 281 | }
|
287 282 | }
|
288 283 | }
|
289 284 | }
|
290 285 | impl
|
291 - | ::aws_smithy_http_server::response::IntoResponse<
|
292 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
286 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
287 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
293 288 | > for crate::error::ListSnapshotBlocksError
|
294 289 | {
|
295 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
290 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
296 291 | match crate::protocol_serde::shape_list_snapshot_blocks::ser_list_snapshot_blocks_http_error(
|
297 292 | &self,
|
298 293 | ) {
|
299 294 | Ok(mut response) => {
|
300 295 | response.extensions_mut().insert(
|
301 - | ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
|
296 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
297 + | self.name(),
|
298 + | ),
|
302 299 | );
|
303 300 | response
|
304 301 | }
|
305 302 | Err(e) => {
|
306 303 | ::tracing::error!(error = %e, "failed to serialize response");
|
307 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
304 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
308 305 | }
|
309 306 | }
|
310 307 | }
|
311 308 | }
|
312 309 |
|
313 310 | ::pin_project_lite::pin_project! {
|
314 311 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
315 312 | /// [`ListChangedBlocksInput`](crate::input::ListChangedBlocksInput) using modelled bindings.
|
316 313 | pub struct ListChangedBlocksInputFuture {
|
317 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ListChangedBlocksInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
314 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::ListChangedBlocksInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
318 315 | }
|
319 316 | }
|
320 317 |
|
321 318 | impl std::future::Future for ListChangedBlocksInputFuture {
|
322 319 | type Output = Result<
|
323 320 | crate::input::ListChangedBlocksInput,
|
324 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
321 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
325 322 | >;
|
326 323 |
|
327 324 | fn poll(
|
328 325 | self: std::pin::Pin<&mut Self>,
|
329 326 | cx: &mut std::task::Context<'_>,
|
330 327 | ) -> std::task::Poll<Self::Output> {
|
331 328 | let this = self.project();
|
332 329 | this.inner.as_mut().poll(cx)
|
333 330 | }
|
334 331 | }
|
335 332 |
|
336 333 | impl<B>
|
337 - | ::aws_smithy_http_server::request::FromRequest<
|
338 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
334 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
335 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
339 336 | B,
|
340 337 | > for crate::input::ListChangedBlocksInput
|
341 338 | where
|
342 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
339 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
343 340 | B: 'static,
|
344 341 |
|
345 342 | B::Data: Send,
|
346 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
347 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
343 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
344 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
348 345 | {
|
349 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
346 + | type Rejection =
|
347 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
350 348 | type Future = ListChangedBlocksInputFuture;
|
351 349 |
|
352 350 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
353 351 | let fut = async move {
|
354 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
352 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
355 353 | request.headers(),
|
356 354 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
357 355 | ) {
|
358 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
356 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
359 357 | }
|
360 358 | crate::protocol_serde::shape_list_changed_blocks::de_list_changed_blocks_http_request(
|
361 359 | request,
|
362 360 | )
|
363 361 | .await
|
364 362 | };
|
365 363 | use ::futures_util::future::TryFutureExt;
|
366 - | let fut = fut.map_err(
|
367 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
368 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
369 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
370 - | e,
|
371 - | )
|
372 - | },
|
373 - | );
|
364 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
365 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
366 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
367 + | });
|
374 368 | ListChangedBlocksInputFuture {
|
375 369 | inner: Box::pin(fut),
|
376 370 | }
|
377 371 | }
|
378 372 | }
|
379 373 | impl
|
380 - | ::aws_smithy_http_server::response::IntoResponse<
|
381 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
374 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
375 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
382 376 | > for crate::output::ListChangedBlocksOutput
|
383 377 | {
|
384 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
378 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
385 379 | match crate::protocol_serde::shape_list_changed_blocks::ser_list_changed_blocks_http_response(self) {
|
386 380 | Ok(response) => response,
|
387 381 | Err(e) => {
|
388 382 | ::tracing::error!(error = %e, "failed to serialize response");
|
389 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
383 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
390 384 | }
|
391 385 | }
|
392 386 | }
|
393 387 | }
|
394 388 | impl
|
395 - | ::aws_smithy_http_server::response::IntoResponse<
|
396 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
389 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
390 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
397 391 | > for crate::error::ListChangedBlocksError
|
398 392 | {
|
399 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
393 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
400 394 | match crate::protocol_serde::shape_list_changed_blocks::ser_list_changed_blocks_http_error(
|
401 395 | &self,
|
402 396 | ) {
|
403 397 | Ok(mut response) => {
|
404 398 | response.extensions_mut().insert(
|
405 - | ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
|
399 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
400 + | self.name(),
|
401 + | ),
|
406 402 | );
|
407 403 | response
|
408 404 | }
|
409 405 | Err(e) => {
|
410 406 | ::tracing::error!(error = %e, "failed to serialize response");
|
411 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
407 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
412 408 | }
|
413 409 | }
|
414 410 | }
|
415 411 | }
|
416 412 |
|
417 413 | ::pin_project_lite::pin_project! {
|
418 414 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
419 415 | /// [`GetSnapshotBlockInput`](crate::input::GetSnapshotBlockInput) using modelled bindings.
|
420 416 | pub struct GetSnapshotBlockInputFuture {
|
421 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetSnapshotBlockInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
417 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetSnapshotBlockInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
422 418 | }
|
423 419 | }
|
424 420 |
|
425 421 | impl std::future::Future for GetSnapshotBlockInputFuture {
|
426 422 | type Output = Result<
|
427 423 | crate::input::GetSnapshotBlockInput,
|
428 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
424 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
429 425 | >;
|
430 426 |
|
431 427 | fn poll(
|
432 428 | self: std::pin::Pin<&mut Self>,
|
433 429 | cx: &mut std::task::Context<'_>,
|
434 430 | ) -> std::task::Poll<Self::Output> {
|
435 431 | let this = self.project();
|
436 432 | this.inner.as_mut().poll(cx)
|
437 433 | }
|
438 434 | }
|
439 435 |
|
440 436 | impl<B>
|
441 - | ::aws_smithy_http_server::request::FromRequest<
|
442 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
437 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
438 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
443 439 | B,
|
444 440 | > for crate::input::GetSnapshotBlockInput
|
445 441 | where
|
446 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
442 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
447 443 | B: 'static,
|
448 444 |
|
449 445 | B::Data: Send,
|
450 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
451 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
446 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
447 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
452 448 | {
|
453 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
449 + | type Rejection =
|
450 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
454 451 | type Future = GetSnapshotBlockInputFuture;
|
455 452 |
|
456 453 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
457 454 | let fut = async move {
|
458 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
455 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
459 456 | request.headers(),
|
460 457 | &crate::mimes::CONTENT_TYPE_APPLICATION_OCTET_STREAM,
|
461 458 | ) {
|
462 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
459 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
463 460 | }
|
464 461 | crate::protocol_serde::shape_get_snapshot_block::de_get_snapshot_block_http_request(
|
465 462 | request,
|
466 463 | )
|
467 464 | .await
|
468 465 | };
|
469 466 | use ::futures_util::future::TryFutureExt;
|
470 - | let fut = fut.map_err(
|
471 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
472 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
473 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
474 - | e,
|
475 - | )
|
476 - | },
|
477 - | );
|
467 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
468 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
469 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
470 + | });
|
478 471 | GetSnapshotBlockInputFuture {
|
479 472 | inner: Box::pin(fut),
|
480 473 | }
|
481 474 | }
|
482 475 | }
|
483 476 | impl
|
484 - | ::aws_smithy_http_server::response::IntoResponse<
|
485 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
477 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
478 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
486 479 | > for crate::output::GetSnapshotBlockOutput
|
487 480 | {
|
488 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
481 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
489 482 | match crate::protocol_serde::shape_get_snapshot_block::ser_get_snapshot_block_http_response(
|
490 483 | self,
|
491 484 | ) {
|
492 485 | Ok(response) => response,
|
493 486 | Err(e) => {
|
494 487 | ::tracing::error!(error = %e, "failed to serialize response");
|
495 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
488 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
496 489 | }
|
497 490 | }
|
498 491 | }
|
499 492 | }
|
500 493 | impl
|
501 - | ::aws_smithy_http_server::response::IntoResponse<
|
502 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
494 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
495 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
503 496 | > for crate::error::GetSnapshotBlockError
|
504 497 | {
|
505 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
498 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
506 499 | match crate::protocol_serde::shape_get_snapshot_block::ser_get_snapshot_block_http_error(
|
507 500 | &self,
|
508 501 | ) {
|
509 502 | Ok(mut response) => {
|
510 503 | response.extensions_mut().insert(
|
511 - | ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
|
504 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
505 + | self.name(),
|
506 + | ),
|
512 507 | );
|
513 508 | response
|
514 509 | }
|
515 510 | Err(e) => {
|
516 511 | ::tracing::error!(error = %e, "failed to serialize response");
|
517 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
512 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
518 513 | }
|
519 514 | }
|
520 515 | }
|
521 516 | }
|
522 517 |
|
523 518 | ::pin_project_lite::pin_project! {
|
524 519 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
525 520 | /// [`CompleteSnapshotInput`](crate::input::CompleteSnapshotInput) using modelled bindings.
|
526 521 | pub struct CompleteSnapshotInputFuture {
|
527 - | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CompleteSnapshotInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
522 + | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::CompleteSnapshotInput, ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
528 523 | }
|
529 524 | }
|
530 525 |
|
531 526 | impl std::future::Future for CompleteSnapshotInputFuture {
|
532 527 | type Output = Result<
|
533 528 | crate::input::CompleteSnapshotInput,
|
534 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
529 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
535 530 | >;
|
536 531 |
|
537 532 | fn poll(
|
538 533 | self: std::pin::Pin<&mut Self>,
|
539 534 | cx: &mut std::task::Context<'_>,
|
540 535 | ) -> std::task::Poll<Self::Output> {
|
541 536 | let this = self.project();
|
542 537 | this.inner.as_mut().poll(cx)
|
543 538 | }
|
544 539 | }
|
545 540 |
|
546 541 | impl<B>
|
547 - | ::aws_smithy_http_server::request::FromRequest<
|
548 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
542 + | ::aws_smithy_legacy_http_server::request::FromRequest<
|
543 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
549 544 | B,
|
550 545 | > for crate::input::CompleteSnapshotInput
|
551 546 | where
|
552 - | B: ::aws_smithy_http_server::body::HttpBody + Send,
|
547 + | B: ::aws_smithy_legacy_http_server::body::HttpBody + Send,
|
553 548 | B: 'static,
|
554 549 |
|
555 550 | B::Data: Send,
|
556 - | ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
557 - | From<<B as ::aws_smithy_http_server::body::HttpBody>::Error>,
|
551 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection:
|
552 + | From<<B as ::aws_smithy_legacy_http_server::body::HttpBody>::Error>,
|
558 553 | {
|
559 - | type Rejection = ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
554 + | type Rejection =
|
555 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError;
|
560 556 | type Future = CompleteSnapshotInputFuture;
|
561 557 |
|
562 558 | fn from_request(request: ::http::Request<B>) -> Self::Future {
|
563 559 | let fut = async move {
|
564 - | if !::aws_smithy_http_server::protocol::accept_header_classifier(
|
560 + | if !::aws_smithy_legacy_http_server::protocol::accept_header_classifier(
|
565 561 | request.headers(),
|
566 562 | &crate::mimes::CONTENT_TYPE_APPLICATION_JSON,
|
567 563 | ) {
|
568 - | return Err(::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
564 + | return Err(::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection::NotAcceptable);
|
569 565 | }
|
570 566 | crate::protocol_serde::shape_complete_snapshot::de_complete_snapshot_http_request(
|
571 567 | request,
|
572 568 | )
|
573 569 | .await
|
574 570 | };
|
575 571 | use ::futures_util::future::TryFutureExt;
|
576 - | let fut = fut.map_err(
|
577 - | |e: ::aws_smithy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
578 - | ::tracing::debug!(error = %e, "failed to deserialize request");
|
579 - | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(
|
580 - | e,
|
581 - | )
|
582 - | },
|
583 - | );
|
572 + | let fut = fut.map_err(|e: ::aws_smithy_legacy_http_server::protocol::rest_json_1::rejection::RequestRejection| {
|
573 + | ::tracing::debug!(error = %e, "failed to deserialize request");
|
574 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e)
|
575 + | });
|
584 576 | CompleteSnapshotInputFuture {
|
585 577 | inner: Box::pin(fut),
|
586 578 | }
|
587 579 | }
|
588 580 | }
|
589 581 | impl
|
590 - | ::aws_smithy_http_server::response::IntoResponse<
|
591 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
582 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
583 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
592 584 | > for crate::output::CompleteSnapshotOutput
|
593 585 | {
|
594 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
586 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
595 587 | match crate::protocol_serde::shape_complete_snapshot::ser_complete_snapshot_http_response(
|
596 588 | self,
|
597 589 | ) {
|
598 590 | Ok(response) => response,
|
599 591 | Err(e) => {
|
600 592 | ::tracing::error!(error = %e, "failed to serialize response");
|
601 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
593 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_legacy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
602 594 | }
|
603 595 | }
|
604 596 | }
|
605 597 | }
|
606 598 | impl
|
607 - | ::aws_smithy_http_server::response::IntoResponse<
|
608 - | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
599 + | ::aws_smithy_legacy_http_server::response::IntoResponse<
|
600 + | ::aws_smithy_legacy_http_server::protocol::rest_json_1::RestJson1,
|
609 601 | > for crate::error::CompleteSnapshotError
|
610 602 | {
|
611 - | fn into_response(self) -> ::aws_smithy_http_server::response::Response {
|
603 + | fn into_response(self) -> ::aws_smithy_legacy_http_server::response::Response {
|
612 604 | match crate::protocol_serde::shape_complete_snapshot::ser_complete_snapshot_http_error(
|
613 605 | &self,
|
614 606 | ) {
|
615 607 | Ok(mut response) => {
|
616 608 | response.extensions_mut().insert(
|
617 - | ::aws_smithy_http_server::extension::ModeledErrorExtension::new(self.name()),
|
609 + | ::aws_smithy_legacy_http_server::extension::ModeledErrorExtension::new(
|
610 + | self.name(),
|
611 + | ),
|
618 612 | );
|
619 613 | response
|
620 614 | }
|
621 615 | Err(e) => {
|
622 616 | ::tracing::error!(error = %e, "failed to serialize response");
|
623 - | ::aws_smithy_http_server::response::IntoResponse::<::aws_smithy_http_server::protocol::rest_json_1::RestJson1>::into_response(::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError::from(e))
|
617 + | ::aws_smithy_legacy_http_server::response::IntoResponse::<::aws_smithy_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 618 | }
|
625 619 | }
|
626 620 | }
|
627 621 | }
|