pub trait FromMultipart: Sized {
// Required method
fn from_multipart(
multipart: &MultipartForm,
ctx: FormContext<'_>,
) -> Result<Self, Error>;
}Expand description
Allows to create a type from a multer::Multipart.
Required Methods§
Sourcefn from_multipart(
multipart: &MultipartForm,
ctx: FormContext<'_>,
) -> Result<Self, Error>
fn from_multipart( multipart: &MultipartForm, ctx: FormContext<'_>, ) -> Result<Self, Error>
Constructs this type from the given multipart form.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".