Enum dropbox_sdk::sharing::AccessLevel
source · #[non_exhaustive]pub enum AccessLevel {
Owner,
Editor,
Viewer,
ViewerNoComment,
Traverse,
NoAccess,
Other,
}Expand description
Defines the access levels for collaborators.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Owner
The collaborator is the owner of the shared folder. Owners can view and edit the shared
folder as well as set the folder’s policies using
update_folder_policy().
Editor
The collaborator can both view and edit the shared folder.
Viewer
The collaborator can only view the shared folder.
ViewerNoComment
The collaborator can only view the shared folder and does not have any access to comments.
Traverse
The collaborator can only view the shared folder that they have access to.
NoAccess
If there is a Righteous Link on the folder which grants access and the user has visited such link, they are allowed to perform certain action (i.e. add themselves to the folder) via the link access even though the user themselves are not a member on the shared folder yet.
Other
Catch-all used for unrecognized values returned from the server. Encountering this value typically indicates that this SDK version is out of date.
Trait Implementations§
source§impl Clone for AccessLevel
Available on crate feature dbx_sharing only.
impl Clone for AccessLevel
dbx_sharing only.source§fn clone(&self) -> AccessLevel
fn clone(&self) -> AccessLevel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AccessLevel
Available on crate feature dbx_sharing only.
impl Debug for AccessLevel
dbx_sharing only.source§impl<'de> Deserialize<'de> for AccessLevel
Available on crate feature dbx_sharing only.
impl<'de> Deserialize<'de> for AccessLevel
dbx_sharing only.source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl PartialEq for AccessLevel
Available on crate feature dbx_sharing only.
impl PartialEq for AccessLevel
dbx_sharing only.source§fn eq(&self, other: &AccessLevel) -> bool
fn eq(&self, other: &AccessLevel) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for AccessLevel
Available on crate feature dbx_sharing only.
impl Serialize for AccessLevel
dbx_sharing only.impl Eq for AccessLevel
dbx_sharing only.impl StructuralEq for AccessLevel
dbx_sharing only.impl StructuralPartialEq for AccessLevel
dbx_sharing only.