poem_openapi::types

Trait ParseFromMultipartField

Source
pub trait ParseFromMultipartField: Sized + Type {
    // Required method
    fn parse_from_multipart(
        field: Option<PoemField>,
    ) -> impl Future<Output = ParseResult<Self>> + Send;

    // Provided method
    fn parse_from_repeated_field(
        self,
        _field: PoemField,
    ) -> impl Future<Output = ParseResult<Self>> + Send { ... }
}
Expand description

Represents a type that can parsing from multipart.

Required Methods§

Source

fn parse_from_multipart( field: Option<PoemField>, ) -> impl Future<Output = ParseResult<Self>> + Send

Parse from multipart field.

Provided Methods§

Source

fn parse_from_repeated_field( self, _field: PoemField, ) -> impl Future<Output = ParseResult<Self>> + Send

Parse from repeated multipart 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.

Implementations on Foreign Types§

Source§

impl ParseFromMultipartField for IpAddr

Source§

impl ParseFromMultipartField for IpNet

Source§

impl ParseFromMultipartField for bool

Source§

impl ParseFromMultipartField for f32

Source§

impl ParseFromMultipartField for f64

Source§

impl ParseFromMultipartField for i8

Source§

impl ParseFromMultipartField for i16

Source§

impl ParseFromMultipartField for i32

Source§

impl ParseFromMultipartField for i64

Source§

impl ParseFromMultipartField for u8

Source§

impl ParseFromMultipartField for u16

Source§

impl ParseFromMultipartField for u32

Source§

impl ParseFromMultipartField for u64

Source§

impl ParseFromMultipartField for usize

Source§

impl ParseFromMultipartField for String

Source§

impl ParseFromMultipartField for Ipv4Addr

Source§

impl ParseFromMultipartField for Ipv6Addr

Source§

impl ParseFromMultipartField for Duration

Source§

impl ParseFromMultipartField for ObjectId

Source§

impl ParseFromMultipartField for DateTime<FixedOffset>

Source§

impl ParseFromMultipartField for DateTime<Local>

Source§

impl ParseFromMultipartField for DateTime<Utc>

Source§

impl ParseFromMultipartField for NaiveDate

Source§

impl ParseFromMultipartField for NaiveDateTime

Source§

impl ParseFromMultipartField for NaiveTime

Source§

impl ParseFromMultipartField for Uri

Source§

impl ParseFromMultipartField for Duration

Source§

impl ParseFromMultipartField for Ipv4Net

Source§

impl ParseFromMultipartField for Ipv6Net

Source§

impl ParseFromMultipartField for Regex

Source§

impl ParseFromMultipartField for Decimal

Source§

impl ParseFromMultipartField for Date

Source§

impl ParseFromMultipartField for OffsetDateTime

Source§

impl ParseFromMultipartField for PrimitiveDateTime

Source§

impl ParseFromMultipartField for Time

Source§

impl ParseFromMultipartField for Url

Source§

impl ParseFromMultipartField for Uuid

Source§

impl<T> ParseFromMultipartField for BTreeSet<T>

Source§

impl<T, R> ParseFromMultipartField for HashSet<T, R>

Source§

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

Source§

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

Source§

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

Implementors§