pub struct FormFile {
pub filename: String,
pub content_type: String,
pub bytes: Bytes,
}
Expand description
Represents a single file submitted through a form
Fields§
§filename: String
The original name of the file
content_type: String
The content type of the file, e.g. text/plain
.
bytes: Bytes
The bytes that make up the file’s content.
These bytes should be interpreted based on the file’s content_type
.
Trait Implementations§
impl StructuralPartialEq for FormFile
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