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>, }
dbx_sharing only.Fields (Non-exhaustive)
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: LinkAudienceThe current audience of the link.
link_permissions: Vec<LinkPermission>A list of permissions for actions you can perform on the link.
password_protected: boolWhether the link is protected by a password.
access_level: Option<AccessLevel>The access level on the link for this file.
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]
impl SharedContentLinkMetadataBase[src]pub fn new(
audience_options: Vec<LinkAudience>,
current_audience: LinkAudience,
link_permissions: Vec<LinkPermission>,
password_protected: bool
) -> Self[src]
audience_options: Vec<LinkAudience>,
current_audience: LinkAudience,
link_permissions: Vec<LinkPermission>,
password_protected: bool
) -> Self
pub fn with_access_level(self, value: AccessLevel) -> Self[src]
pub fn with_audience_restricting_shared_folder(
self,
value: AudienceRestrictingSharedFolder
) -> Self[src]
self,
value: AudienceRestrictingSharedFolder
) -> Self
pub fn with_expiry(self, value: DropboxTimestamp) -> Self[src]
Trait Implementations
impl Clone for SharedContentLinkMetadataBase[src]
impl Clone for SharedContentLinkMetadataBase[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for SharedContentLinkMetadataBase[src]
impl Debug for SharedContentLinkMetadataBase[src]impl<'de> Deserialize<'de> for SharedContentLinkMetadataBase[src]
impl<'de> Deserialize<'de> for SharedContentLinkMetadataBase[src]fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>[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]
impl PartialEq<SharedContentLinkMetadataBase> for SharedContentLinkMetadataBase[src]fn eq(&self, other: &SharedContentLinkMetadataBase) -> bool[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]
fn ne(&self, other: &SharedContentLinkMetadataBase) -> bool[src]This method tests for !=.
impl StructuralPartialEq for SharedContentLinkMetadataBase[src]
Auto Trait Implementations
impl RefUnwindSafe for SharedContentLinkMetadataBase
impl Send for SharedContentLinkMetadataBase
impl Sync for SharedContentLinkMetadataBase
impl Unpin for SharedContentLinkMetadataBase
impl UnwindSafe for SharedContentLinkMetadataBase
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,