Trait gotham_formdata::FormDataFromState[][src]

pub trait FormDataFromState {
    fn parse_form_data<T: FormData>(&mut self) -> FormDataFuture<T>;
}
Expand description

This is the equivalent of FormData from the state’s perspective. Use this if you prefer state.parse_form_data::<MyData>()? over MyData::parse_form_data(&mut state)?.

Required methods

fn parse_form_data<T: FormData>(&mut self) -> FormDataFuture<T>[src]

Parse T from the request body contained in this state.

Implementations on Foreign Types

impl FormDataFromState for State[src]

Implementors