Struct actix_multipart::form::tempfile::TempFile
source · pub struct TempFile {
pub file: NamedTempFile,
pub content_type: Option<Mime>,
pub file_name: Option<String>,
pub size: usize,
}
Available on crate feature
tempfile
only.Expand description
Write the field to a temporary file on disk.
Fields§
§file: NamedTempFile
The 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: usize
The size in bytes of the file.
Trait Implementations§
source§impl<'t> FieldReader<'t> for TempFile
impl<'t> FieldReader<'t> for TempFile
§type Future = Pin<Box<dyn Future<Output = Result<TempFile, MultipartError>> + 't>>
type Future = Pin<Box<dyn Future<Output = Result<TempFile, MultipartError>> + 't>>
Future that resolves to a
Self
.source§fn read_field(
req: &'t HttpRequest,
field: Field,
limits: &'t mut Limits,
) -> Self::Future
fn read_field( req: &'t HttpRequest, field: Field, limits: &'t mut Limits, ) -> Self::Future
The form will call this function to handle the field.
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