Struct dropbox_sdk::sharing::SharedLinkSettings[][src]

#[non_exhaustive]pub struct SharedLinkSettings {
    pub requested_visibility: Option<RequestedVisibility>,
    pub link_password: Option<String>,
    pub expires: Option<DropboxTimestamp>,
    pub audience: Option<LinkAudience>,
    pub access: Option<RequestedLinkAccessLevel>,
}
This is supported on crate feature dbx_sharing only.

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.
requested_visibility: Option<RequestedVisibility>

The requested access for this shared link.

link_password: Option<String>

If requested_visibility is RequestedVisibility::Password this is needed to specify the password to access the link.

expires: Option<DropboxTimestamp>

Expiration time of the shared link. By default the link won't expire.

audience: Option<LinkAudience>

The new audience who can benefit from the access level specified by the link's access level specified in the link_access_level field of LinkPermissions. This is used in conjunction with team policies and shared folder policies to determine the final effective audience type in the effective_audience field of `LinkPermissions.

access: Option<RequestedLinkAccessLevel>

Requested access level you want the audience to gain from this link. Note, modifying access level for an existing link is not supported.

Implementations

impl SharedLinkSettings[src]

pub fn with_requested_visibility(self, value: RequestedVisibility) -> Self[src]

pub fn with_expires(self, value: DropboxTimestamp) -> Self[src]

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

pub fn with_access(self, value: RequestedLinkAccessLevel) -> Self[src]

Trait Implementations

impl Clone for SharedLinkSettings[src]

impl Debug for SharedLinkSettings[src]

impl Default for SharedLinkSettings[src]

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

impl PartialEq<SharedLinkSettings> for SharedLinkSettings[src]

impl Serialize for SharedLinkSettings[src]

impl StructuralPartialEq for SharedLinkSettings[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.