FromRequest

Trait FromRequest 

Source
pub trait FromRequest: Sized {
    // Required method
    fn from_request(
        req: &mut Request,
    ) -> impl Future<Output = Result<Self>> + Send;
}
Expand description

Trait for extracting data from the full request (including body)

This is used for extractors that consume the request body.

Required Methods§

Source

fn from_request(req: &mut Request) -> impl Future<Output = Result<Self>> + Send

Extract from the full request

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§