Trait poem_openapi::types::ParseFromMultipartField
source · 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§
sourcefn parse_from_multipart<'async_trait>(
field: Option<PoemField>
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
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§
sourcefn parse_from_repeated_field<'async_trait>(
self,
_field: PoemField
) -> Pin<Box<dyn Future<Output = ParseResult<Self>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
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.