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

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]

Create a new Entries with the given SaveDir

Returns true if fields is empty, false otherwise.

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.

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

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

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

Trait Implementations

impl<M: ReadEntry> Into<Entries> for PartialEntries<M>
[src]

Discards partial

impl Debug for Entries
[src]

impl Key for Entries
[src]

The value type associated with this key type.

Auto Trait Implementations

impl Send for Entries

impl Sync for Entries

Blanket Implementations

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> Any for T where
    T: 'static + ?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> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> UnsafeAny for T where
    T: Any