Trait poem_openapi::Request[][src]

pub trait Request: Sized {
    const META: &'static MetaRequest;

    fn register(registry: &mut Registry);
fn from_request<'life0, 'life1, 'async_trait>(
        request: &'life0 Request,
        body: &'life1 mut RequestBody
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

Associated Constants

The metadata of this request type.

Required methods

Register the schema contained in this request object to the registry.

Parse the request object from the HTTP request.

Implementors