Enum dropbox_sdk::team::MembersSetPermissions2Error [−][src]
#[non_exhaustive]
pub enum MembersSetPermissions2Error {
UserNotFound,
LastAdmin,
UserNotInTeam,
CannotSetPermissions,
RoleNotFound,
Other,
}This is supported on crate feature
dbx_team only.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.
No matching user found. The provided team_member_id, email, or external_id does not exist on this team.
Cannot remove the admin setting of the last admin.
The user is not a member of the team.
Cannot remove/grant permissions. This can happen if the team member is suspended.
No matching role found. At least one of the provided new_roles does not exist on this team.
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
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for MembersSetPermissions2Errorimpl Send for MembersSetPermissions2Errorimpl Sync for MembersSetPermissions2Errorimpl Unpin for MembersSetPermissions2Errorimpl UnwindSafe for MembersSetPermissions2ErrorBlanket Implementations
Mutably borrows from an owned value. Read more