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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for BufferedFile
[src]

[src]

Formats the value using the given formatter. Read more

impl DecodePostField<()> for BufferedFile
[src]

[src]

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

[src]

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

[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

[src]

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

Auto Trait Implementations

impl Send for BufferedFile

impl Sync for BufferedFile