[][src]Struct rouille::input::post::BufferedFile

pub struct BufferedFile {
    pub data: Vec<u8>,
    pub mime: String,
    pub filename: Option<String>,
}

Implementation of the DecodePostField that puts the body of the file in memory.

Fields

The file's data.

The MIME type. Remember that this shouldn't be blindly trusted.

The name of the file, if known. Remember that this shouldn't be blindly trusted.

Trait Implementations

impl DecodePostField<()> for BufferedFile
[src]

When multiple fields with the same name are found in the client's input, rouille will build an object for each of them and then merge them with this method. Read more

Called when no field is found in the POST input. Read more

impl Clone for BufferedFile
[src]

Performs copy-assignment from source. Read more

impl Debug for BufferedFile
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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