pub trait FromMultipartField: Sized {
// Required method
fn from_field(field: &MultipartField) -> Result<Self, Error>;
}Expand description
Allows to create a field from a multer::Field.
Required Methods§
Sourcefn from_field(field: &MultipartField) -> Result<Self, Error>
fn from_field(field: &MultipartField) -> Result<Self, Error>
Parses the value of the given form field.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.