[][src]Struct ffsend_api::action::params::ParamsDataBuilder

pub struct ParamsDataBuilder { /* fields omitted */ }

Builder for ParamsData.

Methods

impl ParamsDataBuilder[src]

pub fn download_limit(&mut self, value: Option<u8>) -> &mut Self[src]

The number of times this file may be downloaded. This value must be within a specific range, as enforced by Send servers.

pub fn expiry_time(&mut self, value: Option<usize>) -> &mut Self[src]

The time in seconds after when the file expires. This value must be within a specific range, as enforced by Send servers. Only used with Send v3.

pub fn build(&self) -> Result<ParamsData, String>[src]

Builds a new ParamsData.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ParamsDataBuilder[src]

impl Default for ParamsDataBuilder[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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