Struct actix_multipart::form::MultipartForm
source · pub struct MultipartForm<T: MultipartCollect>(pub T);Expand description
Typed multipart/form-data extractor.
To extract typed data from a multipart stream, the inner type T must implement the
MultipartCollect trait. You should use the MultipartForm macro to derive this
for your struct.
Add a MultipartFormConfig to your app data to configure extraction.
Tuple Fields§
§0: TImplementations§
source§impl<T: MultipartCollect> MultipartForm<T>
impl<T: MultipartCollect> MultipartForm<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwrap into inner T value.
Trait Implementations§
source§impl<T: MultipartCollect> Deref for MultipartForm<T>
impl<T: MultipartCollect> Deref for MultipartForm<T>
source§impl<T: MultipartCollect> DerefMut for MultipartForm<T>
impl<T: MultipartCollect> DerefMut for MultipartForm<T>
source§impl<T> FromRequest for MultipartForm<T>where
T: MultipartCollect,
impl<T> FromRequest for MultipartForm<T>where
T: MultipartCollect,
§type Future = Pin<Box<dyn Future<Output = Result<MultipartForm<T>, <MultipartForm<T> as FromRequest>::Error>>>>
type Future = Pin<Box<dyn Future<Output = Result<MultipartForm<T>, <MultipartForm<T> as FromRequest>::Error>>>>
Future that resolves to a
Self. Read moresource§fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Auto Trait Implementations§
impl<T> Freeze for MultipartForm<T>where
T: Freeze,
impl<T> RefUnwindSafe for MultipartForm<T>where
T: RefUnwindSafe,
impl<T> Send for MultipartForm<T>where
T: Send,
impl<T> Sync for MultipartForm<T>where
T: Sync,
impl<T> Unpin for MultipartForm<T>where
T: Unpin,
impl<T> UnwindSafe for MultipartForm<T>where
T: UnwindSafe,
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