Struct dropbox_sdk::sharing::SharedLinkSettings
source · [−]#[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
sourceimpl SharedLinkSettings
impl SharedLinkSettings
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
sourceimpl Clone for SharedLinkSettings
impl Clone for SharedLinkSettings
sourcefn clone(&self) -> SharedLinkSettings
fn clone(&self) -> SharedLinkSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SharedLinkSettings
impl Debug for SharedLinkSettings
sourceimpl Default for SharedLinkSettings
impl Default for SharedLinkSettings
sourcefn default() -> SharedLinkSettings
fn default() -> SharedLinkSettings
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SharedLinkSettings
impl<'de> Deserialize<'de> for SharedLinkSettings
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourcefn eq(&self, other: &SharedLinkSettings) -> bool
fn eq(&self, other: &SharedLinkSettings) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &SharedLinkSettings) -> bool
fn ne(&self, other: &SharedLinkSettings) -> bool
This method tests for !=.
sourceimpl Serialize for SharedLinkSettings
impl Serialize for SharedLinkSettings
impl Eq for SharedLinkSettings
impl StructuralEq for SharedLinkSettings
impl StructuralPartialEq for SharedLinkSettings
Auto Trait Implementations
impl RefUnwindSafe for SharedLinkSettings
impl Send for SharedLinkSettings
impl Sync for SharedLinkSettings
impl Unpin for SharedLinkSettings
impl UnwindSafe for SharedLinkSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more