pub trait FromRequest: Sized {
// Required method
fn from_request<'life0, 'async_trait>(
req: &'life0 RequestObjectWithData,
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
A trait to extract data from the request
Required Methods§
fn from_request<'life0, 'async_trait>(
req: &'life0 RequestObjectWithData,
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
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.