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

pub enum MultipartData<M: ReadEntry> {
    Text(MultipartText<M>),
    File(MultipartFile<M>),
    Nested(NestedMultipart<M>),
}

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).

The field's payload is a nested multipart body (multiple files).

Methods

impl<M: ReadEntry> MultipartData<M>
[src]

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.

Return the inner Multipart.

Trait Implementations

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

Formats the value using the given formatter.