#[non_exhaustive]pub enum PermissionDeniedReason {
Show 16 variants
UserNotSameTeamAsOwner,
UserNotAllowedByOwner,
TargetIsIndirectMember,
TargetIsOwner,
TargetIsSelf,
TargetNotActive,
FolderIsLimitedTeamFolder,
OwnerNotOnTeam,
PermissionDenied,
RestrictedByTeam,
UserAccountType,
UserNotOnTeam,
FolderIsInsideSharedFolder,
RestrictedByParentFolder,
InsufficientPlan(InsufficientPlan),
Other,
}
sync_routes
and dbx_sharing
only.Expand description
Possible reasons the user is denied a permission.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UserNotSameTeamAsOwner
User is not on the same team as the folder owner.
UserNotAllowedByOwner
User is prohibited by the owner from taking the action.
TargetIsIndirectMember
Target is indirectly a member of the folder, for example by being part of a group.
TargetIsOwner
Target is the owner of the folder.
TargetIsSelf
Target is the user itself.
TargetNotActive
Target is not an active member of the team.
FolderIsLimitedTeamFolder
Folder is team folder for a limited team.
OwnerNotOnTeam
The content owner needs to be on a Dropbox team to perform this action.
PermissionDenied
The user does not have permission to perform this action on the link.
RestrictedByTeam
The user’s team policy prevents performing this action on the link.
UserAccountType
The user’s account type does not support this action.
UserNotOnTeam
The user needs to be on a Dropbox team to perform this action.
Folder is inside of another shared folder.
RestrictedByParentFolder
Policy cannot be changed due to restrictions from parent folder.
InsufficientPlan(InsufficientPlan)
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 PermissionDeniedReason
impl Clone for PermissionDeniedReason
Source§fn clone(&self) -> PermissionDeniedReason
fn clone(&self) -> PermissionDeniedReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PermissionDeniedReason
impl Debug for PermissionDeniedReason
Source§impl<'de> Deserialize<'de> for PermissionDeniedReason
impl<'de> Deserialize<'de> for PermissionDeniedReason
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 PermissionDeniedReason
impl PartialEq for PermissionDeniedReason
Source§impl Serialize for PermissionDeniedReason
impl Serialize for PermissionDeniedReason
impl Eq for PermissionDeniedReason
impl StructuralPartialEq for PermissionDeniedReason
Auto Trait Implementations§
impl Freeze for PermissionDeniedReason
impl RefUnwindSafe for PermissionDeniedReason
impl Send for PermissionDeniedReason
impl Sync for PermissionDeniedReason
impl Unpin for PermissionDeniedReason
impl UnwindSafe for PermissionDeniedReason
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.