pub struct FormFile { /* private fields */ }Expand description
Represents the upload file.
Implementations§
Source§impl FormFile
impl FormFile
Sourcepub fn headers_mut(&mut self) -> &mut HeaderMap
pub fn headers_mut(&mut self) -> &mut HeaderMap
Get headers mutable reference.
Sourcepub fn content_type(&self) -> Option<Mime>
pub fn content_type(&self) -> Option<Mime>
Get content type.
Trait Implementations§
Source§impl EndpointArgRegister for FormFile
impl EndpointArgRegister for FormFile
Source§impl<'ex> Extractible<'ex> for FormFile
impl<'ex> Extractible<'ex> for FormFile
Source§async fn extract(_req: &'ex mut Request) -> Result<Self, ParseError>
async fn extract(_req: &'ex mut Request) -> Result<Self, ParseError>
Extract data from request. Read more
Source§async fn extract_with_arg(
req: &'ex mut Request,
arg: &str,
) -> Result<Self, ParseError>
async fn extract_with_arg( req: &'ex mut Request, arg: &str, ) -> Result<Self, ParseError>
Extract data from request with a argument. This function used in macros internal.
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