[][src]Struct salvo::http::form::FormData

pub struct FormData {
    pub fields: MultiMap<String, String, RandomState>,
    pub files: MultiMap<String, FilePart, RandomState>,
    pub multipart: Option<Multipart<Body>>,
}

The extracted text fields and uploaded files from a multipart/form-data request.

Use parse_multipart to devise this object from a request.

Fields

fields: MultiMap<String, String, RandomState>

Name-value pairs for plain text fields. Technically, these are form data parts with no filename specified in the part's Content-Disposition.

files: MultiMap<String, FilePart, RandomState>

Name-value pairs for temporary files. Technically, these are form data parts with a filename specified in the part's Content-Disposition.

multipart: Option<Multipart<Body>>

Implementations

impl FormData[src]

pub fn new() -> FormData[src]

Trait Implementations

impl Default for FormData[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]