pub struct Tempfile {
pub file: NamedTempFile,
pub content_type: Option<Mime>,
pub file_name: Option<String>,
pub size: usize,
}Expand description
Write the field to a temporary file on disk.
Fields§
§file: NamedTempFileThe temporary file on disk.
content_type: Option<Mime>The value of the content-type header.
file_name: Option<String>The filename value in the content-disposition header.
size: usizeThe size in bytes of the file.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tempfile
impl RefUnwindSafe for Tempfile
impl Send for Tempfile
impl Sync for Tempfile
impl Unpin for Tempfile
impl UnwindSafe for Tempfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more