Struct salvo::http::form::FormData[][src]

pub struct FormData {
    pub fields: MultiMap<String, String, RandomState>,
    pub files: MultiMap<String, FilePart, RandomState>,
    pub multipart: Option<Multipart<Body>>,
}
Expand description

The extracted text fields and uploaded files from a multipart/form-data request.

Use parse_multipart to devise this object from a request.

Fields

fields: MultiMap<String, String, RandomState>

Name-value pairs for plain text fields. Technically, these are form data parts with no filename specified in the part’s Content-Disposition.

files: MultiMap<String, FilePart, RandomState>

Name-value pairs for temporary files. Technically, these are form data parts with a filename specified in the part’s Content-Disposition.

multipart: Option<Multipart<Body>>

Implementations

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.