Struct multipart::server::MultipartField [] [src]

pub struct MultipartField<M: ReadEntry> {
    pub name: String,
    pub data: MultipartData<M>,
}

A field in a multipart request. May be either text or a binary stream (file).

Fields

The field's name from the form

The data of the field. Can be text or binary.

Methods

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

[src]

Read the next entry in the request.

[src]

Update self as the next entry.

Returns Ok(Some(self)) if another entry was read, Ok(None) if the end of the body was reached, and Err(e) for any errors that occur.

Trait Implementations

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

[src]

Formats the value using the given formatter.