Struct formdata::FormData
[−]
[src]
pub struct FormData {
pub fields: Vec<(String, String)>,
pub files: Vec<(String, FilePart)>,
}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: Vec<(String, String)>
Name-value pairs for plain text fields. Technically, these are form data parts with no
filename specified in the part's Content-Disposition.
files: Vec<(String, FilePart)>
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[src]
fn new() -> FormData
fn to_multipart(&self) -> Result<Vec<Node>, Error>
Create a mime-multipart Vec
Trait Implementations
impl PartialEq for FormData[src]
fn eq(&self, __arg_0: &FormData) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FormData) -> bool
This method tests for !=.
impl Debug for FormData[src]
impl Clone for FormData[src]
fn clone(&self) -> FormData
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more