pub struct Multipart {
pub fields: Value,
pub files: HashMap<String, Vec<UploadedFile>>,
}Expand description
The outcome of parsing a multipart/form-data body: ordinary fields lifted
into a JSON tree, plus the files.
Fields§
§fields: ValueNon-file fields, in the same shape as a urlencoded form.
files: HashMap<String, Vec<UploadedFile>>Files, keyed by form field name. A repeated field (photos[]) keeps
every file under that key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Multipart
impl RefUnwindSafe for Multipart
impl Send for Multipart
impl Sync for Multipart
impl Unpin for Multipart
impl UnsafeUnpin for Multipart
impl UnwindSafe for Multipart
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