[][src]Struct ffsend_api::file::info::FileInfo

pub struct FileInfo { /* fields omitted */ }

File information, sent to the server before uploading.

This is used for Firefox Send v3.

Methods

impl FileInfo[src]

pub fn from(
    expire: Option<usize>,
    download_limit: Option<u8>,
    metadata: String,
    key_set: &KeySet
) -> Self
[src]

Constructor.

Parameters:

  • expire: optional file expiry time in seconds.
  • download_limit: optional download limit.
  • metadata: encrypted and base64 encoded file metadata
  • auth: authorization data

pub fn to_json(&self) -> String[src]

Convert this structure to a JSON string.

Trait Implementations

impl Debug for FileInfo[src]

impl Serialize for FileInfo[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Typeable for T where
    T: Any

impl<T> Same<T> for T

type Output = T

Should always be Self