[][src]Enum multipart::server::save::SavedData

pub enum SavedData {
    Text(String),
    Bytes(Vec<u8>),
    File(PathBufu64),
}

A saved field's data container (in memory or on disk)

Variants

Validated UTF-8 text data.

Binary data.

A path to a file on the filesystem and its size as written by multipart.

Methods

impl SavedData
[src]

Get an adapter for this data which implements Read.

If the data is in a file, the file is opened in read-only mode.

Get the size of the data, in memory or on disk.

Note

The size on disk may not match the size of the file if it is externally modified.

Returns true if the data is known to be in memory (Text | Bytes)

Trait Implementations

impl From<String> for SavedData
[src]

impl From<Vec<u8>> for SavedData
[src]

impl Debug for SavedData
[src]

Auto Trait Implementations

impl Send for SavedData

impl Sync for SavedData

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