pub struct FormFile {
pub filename: String,
pub content_type: String,
pub size: usize,
pub data: Vec<u8>,
}Expand description
Uploaded file data
Fields§
§filename: StringOriginal filename
content_type: StringContent type (MIME type)
size: usizeFile size in bytes
data: Vec<u8>File data
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormFile
impl RefUnwindSafe for FormFile
impl Send for FormFile
impl Sync for FormFile
impl Unpin for FormFile
impl UnwindSafe for FormFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Injectable for T
impl<T> Injectable for T
Source§fn type_id_of() -> TypeIdwhere
Self: Sized,
fn type_id_of() -> TypeIdwhere
Self: Sized,
Returns the TypeId of this type (for internal use)
Source§fn type_name_of() -> &'static strwhere
Self: Sized,
fn type_name_of() -> &'static strwhere
Self: Sized,
Returns the type name for debugging