Struct formdata::UploadedFile
[−]
[src]
pub struct UploadedFile { pub path: PathBuf, pub filename: Option<String>, pub content_type: Mime, pub size: usize, }
This structure represents uploaded files which were received as
part of the multipart/form-data
parsing. They are streamed to
disk because they may not fit in memory.
Fields
path: PathBuf
This is the temporary file where the data was saved.
filename: Option<String>
This is the filename that was specified in the data, unfiltered. It may or may not be legal on the local filesystem.
content_type: Mime
This is the content-type that was specified in the data, unvalidated.
size: usize
This is the actual size of the file received
Trait Implementations
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
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 !=
.