Trait aws_smithy_http_server::request::FromRequest
source · pub trait FromRequest<Protocol, B>: Sized {
type Rejection: IntoResponse<Protocol>;
type Future: Future<Output = Result<Self, Self::Rejection>>;
// Required method
fn from_request(request: Request<B>) -> Self::Future;
}Expand description
Provides a protocol aware extraction from a Request. This consumes the
Request, including the body, in contrast to FromParts which borrows the Parts.
This should not be implemented by hand. Code generation should implement this for your operations input. To extract
items from a HTTP request FromParts should be used.
Required Associated Types§
Required Methods§
sourcefn from_request(request: Request<B>) -> Self::Future
fn from_request(request: Request<B>) -> Self::Future
Extracts self from a Request asynchronously.