Struct dropbox_sdk::sharing::LinkSettings[][src]

#[non_exhaustive]pub struct LinkSettings {
    pub access_level: Option<AccessLevel>,
    pub audience: Option<LinkAudience>,
    pub expiry: Option<LinkExpiry>,
    pub password: Option<LinkPassword>,
}
This is supported on crate feature dbx_sharing only.

Settings that apply to a link.

Fields (Non-exhaustive)

Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct {{ .. }} syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
access_level: Option<AccessLevel>

The access level on the link for this file. Currently, it only accepts 'viewer' and 'viewer_no_comment'.

audience: Option<LinkAudience>

The type of audience on the link for this file.

expiry: Option<LinkExpiry>

An expiry timestamp to set on a link.

password: Option<LinkPassword>

The password for the link.

Implementations

impl LinkSettings[src]

pub fn with_access_level(self, value: AccessLevel) -> Self[src]

pub fn with_audience(self, value: LinkAudience) -> Self[src]

pub fn with_expiry(self, value: LinkExpiry) -> Self[src]

pub fn with_password(self, value: LinkPassword) -> Self[src]

Trait Implementations

impl Clone for LinkSettings[src]

impl Debug for LinkSettings[src]

impl Default for LinkSettings[src]

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

impl PartialEq<LinkSettings> for LinkSettings[src]

impl Serialize for LinkSettings[src]

impl StructuralPartialEq for LinkSettings[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.