Trait actix_validated_forms::multipart::MultipartType
source · [−]pub trait MultipartType where
Self: Sized, {
fn get(form: &mut Multiparts, field_name: &str) -> Result<Self, GetError>;
}
Expand description
Allows retrieving a specific named field/part from a Multipart form
Required methods
Attempt to retrieve a named field/part from the Multipart form
Implementations are provided for any type that implements FromStr
Example
let mut form = Vec::new();
let int_val: i64 = MultipartType::get(&mut form, "field_name")?;
let str_val: String = MultipartType::get(&mut form, "field_name")?;