Trait poem_openapi::types::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§
sourcefn parse_from_multipart(
field: Option<PoemField>
) -> impl Future<Output = ParseResult<Self>> + Send
fn parse_from_multipart( field: Option<PoemField> ) -> impl Future<Output = ParseResult<Self>> + Send
Parse from multipart field.
Provided Methods§
sourcefn parse_from_repeated_field(
self,
_field: PoemField
) -> impl Future<Output = ParseResult<Self>> + Send
fn parse_from_repeated_field( self, _field: PoemField ) -> impl Future<Output = ParseResult<Self>> + Send
Parse from repeated multipart field.
Object Safety§
This trait is not object safe.