Enum dropbox_sdk::sharing::PermissionDeniedReason[][src]

#[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,
}
This is supported on crate feature dbx_sharing only.
Expand description

Possible reasons the user is denied a permission.

Variants (Non-exhaustive)

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

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.

FolderIsInsideSharedFolder

Folder is inside of another shared folder.

RestrictedByParentFolder

Policy cannot be changed due to restrictions from parent folder.

InsufficientPlan(InsufficientPlan)

Tuple Fields

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.