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