Trait viz::FromRequest
source · pub trait FromRequest: Sized {
type Error: IntoResponse;
fn extract<'life0, 'async_trait>(
req: &'life0 mut Request<Body>
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Error>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
An interface for extracting data from the HTTP Request
.
Required Associated Types§
sourcetype Error: IntoResponse
type Error: IntoResponse
The type returned in the event of a conversion error.