pub struct MultipartForm { /* private fields */ }Expand description
A multipart form.
Implementations§
Source§impl MultipartForm
impl MultipartForm
Sourcepub async fn with_multipart(
multipart: Multipart<'_>,
) -> Result<MultipartForm, Error>
pub async fn with_multipart( multipart: Multipart<'_>, ) -> Result<MultipartForm, Error>
Creates a multipart form by caching all the fields in the multer::Multipart.
Sourcepub fn get(&self, index: usize) -> Option<&MultipartField>
pub fn get(&self, index: usize) -> Option<&MultipartField>
Returns the field in the given index.
Sourcepub fn get_by_name(&self, name: &str) -> Option<&MultipartField>
pub fn get_by_name(&self, name: &str) -> Option<&MultipartField>
Returns the field with the given name
Sourcepub fn fields(&self) -> &[MultipartField]
pub fn fields(&self) -> &[MultipartField]
Returns all the fields.
Trait Implementations§
Source§impl Clone for MultipartForm
impl Clone for MultipartForm
Source§fn clone(&self) -> MultipartForm
fn clone(&self) -> MultipartForm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultipartForm
impl RefUnwindSafe for MultipartForm
impl Send for MultipartForm
impl Sync for MultipartForm
impl Unpin for MultipartForm
impl UnsafeUnpin for MultipartForm
impl UnwindSafe for MultipartForm
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