Trait gotham_formdata::FormDataFromState
source · pub trait FormDataFromState {
// Required method
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§
sourcefn parse_form_data<T: FormData>(&mut self) -> FormDataFuture<T>
fn parse_form_data<T: FormData>(&mut self) -> FormDataFuture<T>
Parse T
from the request body contained in this state.
Object Safety§
This trait is not object safe.