Struct actix_easy_multipart::MultipartForm
source · pub struct MultipartForm<T: MultipartFormTrait>(pub T);
Expand description
Typed multipart/form-data
extractor.
To extract typed data from a multipart stream, the inner type T
must implement the
MultipartFormTrait
trait, you should use the MultipartForm
macro to derive this for
your struct.
Use MultipartFormConfig
to configure extraction options.
Tuple Fields
0: T
Implementations
sourceimpl<T: MultipartFormTrait> MultipartForm<T>
impl<T: MultipartFormTrait> MultipartForm<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwrap into inner T
value.
Trait Implementations
sourceimpl<T: MultipartFormTrait> Deref for MultipartForm<T>
impl<T: MultipartFormTrait> Deref for MultipartForm<T>
sourceimpl<T: MultipartFormTrait> DerefMut for MultipartForm<T>
impl<T: MultipartFormTrait> DerefMut for MultipartForm<T>
sourceimpl<T> FromRequest for MultipartForm<T>where
T: MultipartFormTrait,
impl<T> FromRequest for MultipartForm<T>where
T: MultipartFormTrait,
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 moresourcefn 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.sourcefn extract(req: &HttpRequest) -> Self::Future
fn extract(req: &HttpRequest) -> Self::Future
Create a
Self
from request head asynchronously. Read moreAuto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, P> Resource for Twhere
T: DerefMut<Target = Path<P>>,
P: ResourcePath,
impl<T, P> Resource for Twhere
T: DerefMut<Target = Path<P>>,
P: ResourcePath,
type Path = P
type Path = P
Type of resource’s path returned in
resource_path
.