Enum dropbox_sdk::team::MembersRemoveError
source · [−]#[non_exhaustive]
pub enum MembersRemoveError {
Show 23 variants
UserNotFound,
UserNotInTeam,
RemovedAndTransferDestShouldDiffer,
RemovedAndTransferAdminShouldDiffer,
TransferDestUserNotFound,
TransferDestUserNotInTeam,
TransferAdminUserNotInTeam,
TransferAdminUserNotFound,
UnspecifiedTransferAdminId,
TransferAdminIsNotAdmin,
RecipientNotVerified,
RemoveLastAdmin,
CannotKeepAccountAndTransfer,
CannotKeepAccountAndDeleteData,
EmailAddressTooLongToBeDisabled,
CannotKeepInvitedUserAccount,
CannotRetainSharesWhenDataWiped,
CannotRetainSharesWhenNoAccountKept,
CannotRetainSharesWhenTeamExternalSharingOff,
CannotKeepAccount,
CannotKeepAccountUnderLegalHold,
CannotKeepAccountRequiredToSignTos,
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.
UserNotInTeam
The user is not a member of the team.
RemovedAndTransferDestShouldDiffer
Expected removed user and transfer_dest user to be different.
RemovedAndTransferAdminShouldDiffer
Expected removed user and transfer_admin user to be different.
TransferDestUserNotFound
No matching user found for the argument transfer_dest_id.
TransferDestUserNotInTeam
The provided transfer_dest_id does not exist on this team.
TransferAdminUserNotInTeam
The provided transfer_admin_id does not exist on this team.
TransferAdminUserNotFound
No matching user found for the argument transfer_admin_id.
UnspecifiedTransferAdminId
The transfer_admin_id argument must be provided when file transfer is requested.
TransferAdminIsNotAdmin
Specified transfer_admin user is not a team admin.
RecipientNotVerified
The recipient user’s email is not verified.
RemoveLastAdmin
The user is the last admin of the team, so it cannot be removed from it.
CannotKeepAccountAndTransfer
Cannot keep account and transfer the data to another user at the same time.
CannotKeepAccountAndDeleteData
Cannot keep account and delete the data at the same time. To keep the account the argument
wipe_data should be set to false.
EmailAddressTooLongToBeDisabled
The email address of the user is too long to be disabled.
CannotKeepInvitedUserAccount
Cannot keep account of an invited user.
CannotRetainSharesWhenDataWiped
Cannot retain team shares when the user’s data is marked for deletion on their linked
devices. The argument wipe_data should be set to false.
CannotRetainSharesWhenNoAccountKept
The user’s account must be kept in order to retain team shares. The argument keep_account
should be set to true.
CannotRetainSharesWhenTeamExternalSharingOff
Externally sharing files, folders, and links must be enabled in team settings in order to retain team shares for the user.
CannotKeepAccount
Only a team admin, can convert this account to a Basic account.
CannotKeepAccountUnderLegalHold
This user content is currently being held. To convert this member’s account to a Basic account, you’ll first need to remove them from the hold.
CannotKeepAccountRequiredToSignTos
To convert this member to a Basic account, they’ll first need to sign in to Dropbox and agree to the terms of service.
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 MembersRemoveError
impl Clone for MembersRemoveError
sourcefn clone(&self) -> MembersRemoveError
fn clone(&self) -> MembersRemoveError
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 MembersRemoveError
impl Debug for MembersRemoveError
sourceimpl<'de> Deserialize<'de> for MembersRemoveError
impl<'de> Deserialize<'de> for MembersRemoveError
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 MembersRemoveError
impl Display for MembersRemoveError
sourceimpl Error for MembersRemoveError
impl Error for MembersRemoveError
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()
sourceimpl Serialize for MembersRemoveError
impl Serialize for MembersRemoveError
impl Eq for MembersRemoveError
impl StructuralEq for MembersRemoveError
impl StructuralPartialEq for MembersRemoveError
Auto Trait Implementations
impl RefUnwindSafe for MembersRemoveError
impl Send for MembersRemoveError
impl Sync for MembersRemoveError
impl Unpin for MembersRemoveError
impl UnwindSafe for MembersRemoveError
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