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: T
Implementations§
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>> + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<MultipartForm<T>, <MultipartForm<T> as FromRequest>::Error>> + 'static, Global>>
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.