pub struct Files<K: StaticName>(pub Vec<UploadedFile>, pub PhantomData<K>);Expand description
Every file uploaded under a named field. Empty when none arrived.
Tuple Fields§
§0: Vec<UploadedFile>§1: PhantomData<K>Trait Implementations§
Source§impl<K: StaticName> FromRequest for Files<K>
impl<K: StaticName> FromRequest for Files<K>
Source§fn from_request(request: Arc<Request>) -> BoxedFuture<Result<Self>>
fn from_request(request: Arc<Request>) -> BoxedFuture<Result<Self>>
Build
Self from the request, or fail with the error the client should
see (a 400 for a malformed body, a 422 for a failed contract).Auto Trait Implementations§
impl<K> Freeze for Files<K>
impl<K> RefUnwindSafe for Files<K>where
K: RefUnwindSafe,
impl<K> Send for Files<K>
impl<K> Sync for Files<K>
impl<K> Unpin for Files<K>where
K: Unpin,
impl<K> UnsafeUnpin for Files<K>
impl<K> UnwindSafe for Files<K>where
K: 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