pub trait FromMultipart<'a> {
    type Error: Into<Error>;
    type Future: 'a + Future;
    fn from_multipart(mp: Multipart) -> Self::Future;
}
Expand description

Trait which implements macro for your structures

FromRequest won’t do because of static construction of future (static lifetimes).

We need to have lifetime because we depend upon multipart and branch into parsing different fields.

Associated Types

The associated error which can be returned.

Future that resolves to a Self

Required methods

Implementors