Enum multipart::server::MultipartData [] [src]

pub enum MultipartData<M> {
    Text(MultipartText<M>),
    File(MultipartFile<M>),
    // some variants omitted
}

The data of a field in a multipart/form-data request.

Variants

The field's payload is a text string.

The field's payload is a binary stream (file).

Methods

impl<M> MultipartData<M>
[src]

Return the inner Multipart.

Borrow this payload as a text field, if possible.

Borrow this payload as a file field, if possible. Mutably borrows so the contents can be read.

Trait Implementations

impl<M: Debug> Debug for MultipartData<M>
[src]

Formats the value using the given formatter.