[][src]Struct ffsend_api::file::metadata::Manifest

pub struct Manifest { /* fields omitted */ }

Metadata manifest, used in Send v3.

Methods

impl Manifest[src]

pub fn from(files: Vec<ManifestFile>) -> Self[src]

Construct a new manifest for the given list of files.

pub fn from_file(name: String, mime: String, size: u64) -> Self[src]

Construct a manifest for a single file, with the given properties.

Trait Implementations

impl Debug for Manifest[src]

impl Serialize for Manifest[src]

impl<'de> Deserialize<'de> for Manifest[src]

Auto Trait Implementations

impl Send for Manifest

impl Sync for Manifest

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

default fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> Same for T

type Output = T

Should always be Self