pub struct MultipartForm { /* private fields */ }Expand description
Parsed multipart form data.
Implementations§
Source§impl MultipartForm
impl MultipartForm
Sourcepub fn from_parts(parts: Vec<Part>) -> Self
pub fn from_parts(parts: Vec<Part>) -> Self
Create from parsed parts.
Sourcepub fn get_file(&self, name: &str) -> Option<UploadFile>
pub fn get_file(&self, name: &str) -> Option<UploadFile>
Get a file by field name.
Sourcepub fn files(&self) -> Vec<UploadFile>
pub fn files(&self) -> Vec<UploadFile>
Get all files.
Sourcepub fn get_files(&self, name: &str) -> Vec<UploadFile>
pub fn get_files(&self, name: &str) -> Vec<UploadFile>
Get all values for a field name (for multiple file uploads).
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultipartForm
impl Debug for MultipartForm
Source§impl Default for MultipartForm
impl Default for MultipartForm
Source§fn default() -> MultipartForm
fn default() -> MultipartForm
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MultipartForm
impl RefUnwindSafe for MultipartForm
impl Send for MultipartForm
impl Sync for MultipartForm
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).