[][src]Trait awmpde_structs::FromMultipart

pub trait FromMultipart<'a>: Sized {
    type Error: Into<Error>;
    type Future: Future<Output = Result<Self, Self::Error>> + 'a;
    fn from_multipart(mp: Multipart) -> Self::Future;
}

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

type Error: Into<Error>

The associated error which can be returned.

type Future: Future<Output = Result<Self, Self::Error>> + 'a

Future that resolves to a Self

Loading content...

Required methods

Loading content...

Implementors

Loading content...