Trait poem_openapi::ApiRequest[][src]

pub trait ApiRequest: Sized {
    fn meta() -> 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, ParseRequestError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

Required methods

Gets metadata of this request.

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

Parse the request object from the HTTP request.

Implementors