Struct dropbox_sdk::sharing::SharedContentLinkMetadataBase[][src]

#[non_exhaustive]
pub struct SharedContentLinkMetadataBase { pub audience_options: Vec<LinkAudience>, pub current_audience: LinkAudience, pub link_permissions: Vec<LinkPermission>, pub password_protected: bool, pub access_level: Option<AccessLevel>, pub audience_restricting_shared_folder: Option<AudienceRestrictingSharedFolder>, pub expiry: Option<DropboxTimestamp>, }
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.
audience_options: Vec<LinkAudience>

The audience options that are available for the content. Some audience options may be unavailable. For example, team_only may be unavailable if the content is not owned by a user on a team. The ‘default’ audience option is always available if the user can modify link settings.

current_audience: LinkAudience

The current audience of the link.

link_permissions: Vec<LinkPermission>

A list of permissions for actions you can perform on the link.

password_protected: bool

Whether the link is protected by a password.

access_level: Option<AccessLevel>

The access level on the link for this file.

audience_restricting_shared_folder: Option<AudienceRestrictingSharedFolder>

The shared folder that prevents the link audience for this link from being more restrictive.

expiry: Option<DropboxTimestamp>

Whether the link has an expiry set on it. A link with an expiry will have its audience changed to members when the expiry is reached.

Implementations

impl SharedContentLinkMetadataBase[src]

pub fn new(
    audience_options: Vec<LinkAudience>,
    current_audience: LinkAudience,
    link_permissions: Vec<LinkPermission>,
    password_protected: bool
) -> Self
[src]

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

pub fn with_audience_restricting_shared_folder(
    self,
    value: AudienceRestrictingSharedFolder
) -> Self
[src]

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

Trait Implementations

impl Clone for SharedContentLinkMetadataBase[src]

fn clone(&self) -> SharedContentLinkMetadataBase[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for SharedContentLinkMetadataBase[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[src]

Deserialize this value from the given Serde deserializer. Read more

impl PartialEq<SharedContentLinkMetadataBase> for SharedContentLinkMetadataBase[src]

fn eq(&self, other: &SharedContentLinkMetadataBase) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &SharedContentLinkMetadataBase) -> bool[src]

This method tests for !=.

impl Serialize for SharedContentLinkMetadataBase[src]

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>[src]

Serialize this value into the given Serde serializer. Read more

impl StructuralPartialEq for SharedContentLinkMetadataBase[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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