Struct multipart::server::save::Entries [] [src]

pub struct Entries {
    pub fields: HashMap<ArcStr, Vec<SavedField>>,
    pub save_dir: SaveDir,
    // some fields omitted
}

A result of Multipart::save().

Fields

The fields of the multipart request, mapped by field name -> value.

A field name may have multiple actual fields associated with it, but the most common case is a single field.

Each vector is guaranteed not to be empty unless externally modified.

The directory that the entries in fields were saved into.

Methods

impl Entries
[src]

[src]

Create a new Entries with the given SaveDir

[src]

Returns true if fields is empty, false otherwise.

[src]

The number of actual fields contained within this Entries.

Effectively self.fields.values().map(Vec::len).sum() but maintained separately.

Note

This will be incorrect if fields is modified externally. Call recount_fields() to get the correct count.

[src]

Sum the number of fields in this Entries and then return the updated value.

[src]

Print all fields and their contents to stdout. Mostly for testing purposes.

[src]

Write all fields and their contents to the given output. Mostly for testing purposes.

Trait Implementations

impl Key for Entries
[src]

The value type associated with this key type.

impl Debug for Entries
[src]

[src]

Formats the value using the given formatter.