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§

The type returned in the event of a conversion error.

Required Methods§

Extracts this type from the HTTP Request.

Implementations on Foreign Types§

Implementors§