#[non_exhaustive]
pub enum MembersSetPermissions2Error {
UserNotFound,
LastAdmin,
UserNotInTeam,
CannotSetPermissions,
RoleNotFound,
Other,
}dbx_team only.Variants (Non-exhaustive)
This enum is marked as non-exhaustive
UserNotFound
No matching user found. The provided team_member_id, email, or external_id does not exist on this team.
LastAdmin
Cannot remove the admin setting of the last admin.
UserNotInTeam
The user is not a member of the team.
CannotSetPermissions
Cannot remove/grant permissions. This can happen if the team member is suspended.
RoleNotFound
No matching role found. At least one of the provided new_roles does not exist on this team.
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
sourceimpl Clone for MembersSetPermissions2Error
impl Clone for MembersSetPermissions2Error
sourcefn clone(&self) -> MembersSetPermissions2Error
fn clone(&self) -> MembersSetPermissions2Error
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for MembersSetPermissions2Error
impl Debug for MembersSetPermissions2Error
sourceimpl<'de> Deserialize<'de> for MembersSetPermissions2Error
impl<'de> Deserialize<'de> for MembersSetPermissions2Error
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for MembersSetPermissions2Error
impl Display for MembersSetPermissions2Error
sourceimpl Error for MembersSetPermissions2Error
impl Error for MembersSetPermissions2Error
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl Eq for MembersSetPermissions2Error
impl StructuralEq for MembersSetPermissions2Error
impl StructuralPartialEq for MembersSetPermissions2Error
Auto Trait Implementations
impl RefUnwindSafe for MembersSetPermissions2Error
impl Send for MembersSetPermissions2Error
impl Sync for MembersSetPermissions2Error
impl Unpin for MembersSetPermissions2Error
impl UnwindSafe for MembersSetPermissions2Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more