#[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>, }
Available on crate feature dbx_sharing only.

Fields (Non-exhaustive)

This struct is marked as 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.
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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

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

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.