Struct formdata::form_data::FormData [] [src]

pub struct FormData {
    pub fields: Vec<(String, String)>,
    pub files: Vec<(String, UploadedFile)>,
}

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

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

files

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

Methods

impl FormData

fn new() -> FormData

Trait Implementations

impl Deserialize for FormData

fn deserialize<__D>(deserializer: &mut __D) -> Result<FormData, __D::Error> where __D: Deserializer

impl Serialize for FormData

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

Derived Implementations

impl PartialEq for FormData

fn eq(&self, __arg_0: &FormData) -> bool

fn ne(&self, __arg_0: &FormData) -> bool

impl Debug for FormData

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for FormData

fn clone(&self) -> FormData

fn clone_from(&mut self, source: &Self)