Trait actix_easy_multipart::FieldReader
source · pub trait FieldReader<'t>: Sized + Any {
type Future: Future<Output = Result<Self, Error>>;
fn read_field(
req: &'t HttpRequest,
field: Field,
limits: &'t mut Limits
) -> Self::Future;
}
Expand description
Trait that data types to be used in a multipart form struct should implement.
It represents an asynchronous handler that processes a multipart field to produce Self
.
Required Associated Types
Required Methods
sourcefn read_field(
req: &'t HttpRequest,
field: Field,
limits: &'t mut Limits
) -> Self::Future
fn read_field(
req: &'t HttpRequest,
field: Field,
limits: &'t mut Limits
) -> Self::Future
The form will call this function to handle the field.