1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 2 | const CONTENT_TYPE_GETPOKEMONSPECIES: ::mime::Mime = ::mime::APPLICATION_JSON;
|
4 3 | ::pin_project_lite::pin_project! {
|
5 4 | /// A [`Future`](std::future::Future) aggregating the body bytes of a [`Request`] and constructing the
|
6 5 | /// [`GetPokemonSpeciesInput`](crate::input::GetPokemonSpeciesInput) using modelled bindings.
|
7 6 | pub struct GetPokemonSpeciesInputFuture {
|
8 7 | inner: std::pin::Pin<Box<dyn std::future::Future<Output = Result<crate::input::GetPokemonSpeciesInput, ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError>> + Send>>
|
9 8 | }
|
10 9 | }
|
11 10 |
|
12 11 | impl std::future::Future for GetPokemonSpeciesInputFuture {
|
13 12 | type Output = Result<
|
14 13 | crate::input::GetPokemonSpeciesInput,
|
15 14 | ::aws_smithy_http_server::protocol::rest_json_1::runtime_error::RuntimeError,
|
16 15 | >;
|
17 16 |
|
18 17 | fn poll(
|
19 18 | self: std::pin::Pin<&mut Self>,
|
20 19 | cx: &mut std::task::Context<'_>,
|
21 20 | ) -> std::task::Poll<Self::Output> {
|
22 21 | let this = self.project();
|
23 22 | this.inner.as_mut().poll(cx)
|
24 23 | }
|
25 24 | }
|
26 25 |
|
27 26 | impl<B>
|
28 27 | ::aws_smithy_http_server::request::FromRequest<
|
29 28 | ::aws_smithy_http_server::protocol::rest_json_1::RestJson1,
|
30 29 | B,
|
31 30 | > for crate::input::GetPokemonSpeciesInput
|
32 31 | where
|