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

Future that resolves to a Self.

Required Methods

The form will call this function to handle the field.

Implementors