Struct formdata::UploadedFile
[−]
[src]
pub struct UploadedFile { pub path: PathBuf, pub filename: Option<String>, pub content_type: Mime, pub size: usize, // some fields omitted }
An uploaded file that was received as part of multipart/form-data
parsing.
Files are streamed to disk because they may not fit in memory.
Fields
path: PathBuf
The temporary file where the data was saved.
filename: Option<String>
The filename that was specified in the data, unfiltered. It may or may not be legal on the local filesystem.
content_type: Mime
The unvalidated content-type that was specified in the data.
size: usize
The size of the file.
Methods
impl UploadedFile
[src]
fn new(content_type: Mime) -> Result<UploadedFile, Error>
Trait Implementations
impl PartialEq for UploadedFile
[src]
fn eq(&self, __arg_0: &UploadedFile) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UploadedFile) -> bool
This method tests for !=
.
impl Debug for UploadedFile
[src]
impl Clone for UploadedFile
[src]
fn clone(&self) -> UploadedFile
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