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

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 Clone for BufferedFile
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for BufferedFile
[src]

Formats the value using the given formatter.

impl DecodePostField<()> for BufferedFile
[src]

Called when a field with the given name is found in the POST input. Read more

Called when a file with the given name is found in the POST input. Read more

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