[][src]Trait tide::forms::ExtractForms

pub trait ExtractForms {
    fn body_form<T: DeserializeOwned>(
        &mut self
    ) -> Pin<Box<dyn Future<Output = EndpointResult<T>> + Send + 'static>>;
fn body_multipart(
        &mut self
    ) -> Pin<Box<dyn Future<Output = EndpointResult<Multipart<Cursor<Vec<u8>>>>> + Send + 'static>>; }

An extension trait for Context, providing form extraction.

Required methods

fn body_form<T: DeserializeOwned>(
    &mut self
) -> Pin<Box<dyn Future<Output = EndpointResult<T>> + Send + 'static>>

Asynchronously extract the entire body as a single form.

fn body_multipart(
    &mut self
) -> Pin<Box<dyn Future<Output = EndpointResult<Multipart<Cursor<Vec<u8>>>>> + Send + 'static>>

Asynchronously extract the entire body as a multipart form.

Loading content...

Implementors

impl<AppData: Send + Sync + 'static> ExtractForms for Context<AppData>[src]

Loading content...