Enum tokio_http2::server::MultipartData [] [src]

pub enum MultipartData<'a, B: 'a> {
    Text(&'a str),
    File(MultipartFile<'a, B>),
}

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<'a, B> MultipartData<'a, B>
[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.

Trait Implementations

impl<'a, B: Debug + 'a> Debug for MultipartData<'a, B>
[src]

Formats the value using the given formatter.