#[non_exhaustive]pub struct SharedLinkSettings {
pub require_password: Option<bool>,
pub link_password: Option<String>,
pub expires: Option<DropboxTimestamp>,
pub audience: Option<LinkAudience>,
pub access: Option<RequestedLinkAccessLevel>,
pub requested_visibility: Option<RequestedVisibility>,
pub allow_download: Option<bool>,
}dbx_sharing only.Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.require_password: Option<bool>Boolean flag to enable or disable password protection.
link_password: Option<String>If require_password is true, 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.
requested_visibility: Option<RequestedVisibility>Use audience instead. The requested access for this shared link.
allow_download: Option<bool>Boolean flag to allow or not download capabilities for shared links.
Implementations§
pub fn with_require_password(self, value: bool) -> Self
pub fn with_link_password(self, value: String) -> Self
pub fn with_expires(self, value: DropboxTimestamp) -> Self
pub fn with_audience(self, value: LinkAudience) -> Self
pub fn with_access(self, value: RequestedLinkAccessLevel) -> Self
pub fn with_requested_visibility(self, value: RequestedVisibility) -> Self
pub fn with_allow_download(self, value: bool) -> Self
Trait Implementations§
Source§fn clone(&self) -> SharedLinkSettings
fn clone(&self) -> SharedLinkSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn default() -> SharedLinkSettings
fn default() -> SharedLinkSettings
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Auto Trait Implementations§
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.