Trait poem_openapi::payload::ParsePayload[][src]

pub trait ParsePayload: Sized {
    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

Represents a payload that can parse from HTTP request.

Required methods

Parse the payload object from the HTTP request.

Implementations on Foreign Types

Implementors