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.
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.