pub trait ParseFromMultipartField: Sized + Type {
    // Required method
    fn parse_from_multipart<'async_trait>(
        field: Option<PoemField>
    ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>
       where Self: 'async_trait;

    // Provided method
    fn parse_from_repeated_field<'async_trait>(
        self,
        _field: PoemField
    ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>
       where Self: Send + 'async_trait { ... }
}
Expand description

Represents a type that can parsing from multipart.

Required Methods§

source

fn parse_from_multipart<'async_trait>( field: Option<PoemField> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

Parse from multipart field.

Provided Methods§

source

fn parse_from_repeated_field<'async_trait>( self, _field: PoemField ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: Send + 'async_trait,

Parse from repeated multipart field.

Implementations on Foreign Types§

source§

impl ParseFromMultipartField for u32

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Url

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Time

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for f32

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for u16

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for u8

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl<T: ParseFromMultipartField> ParseFromMultipartField for Box<T>

source§

fn parse_from_multipart<'async_trait>( field: Option<PoemField> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

fn parse_from_repeated_field<'async_trait>( self, field: PoemField ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Ipv6Net

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for i16

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl<T: ParseFromMultipartField> ParseFromMultipartField for Option<T>

source§

fn parse_from_multipart<'async_trait>( value: Option<PoemField> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for DateTime<Local>

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Uuid

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for i64

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for NaiveDate

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Ipv6Addr

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl<T: ParseFromMultipartField + Ord> ParseFromMultipartField for BTreeSet<T>

source§

fn parse_from_multipart<'async_trait>( field: Option<PoemField> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

fn parse_from_repeated_field<'async_trait>( self, field: PoemField ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for IpNet

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for String

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for IpAddr

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for usize

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Decimal

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for DateTime<Utc>

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for PrimitiveDateTime

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for f64

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Uri

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Ipv4Net

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for bool

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for i32

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Date

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for u64

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for NaiveTime

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for DateTime<FixedOffset>

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl<T: ParseFromMultipartField> ParseFromMultipartField for Vec<T>

source§

fn parse_from_multipart<'async_trait>( field: Option<PoemField> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

fn parse_from_repeated_field<'async_trait>( self, field: PoemField ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Regex

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for ObjectId

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl<T: ParseFromMultipartField + Hash + Eq> ParseFromMultipartField for HashSet<T>

source§

fn parse_from_multipart<'async_trait>( field: Option<PoemField> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

fn parse_from_repeated_field<'async_trait>( self, field: PoemField ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for i8

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for OffsetDateTime

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for NaiveDateTime

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Ipv4Addr

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

source§

impl ParseFromMultipartField for Duration

source§

fn parse_from_multipart<'async_trait>( field: Option<Field> ) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where Self: 'async_trait,

Implementors§