#[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,
}
sync_routes
and 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.
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
.
The user’s account must be kept in order to retain team shares. The argument keep_account
should be set to true
.
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§
Source§impl Clone for MembersRemoveError
impl Clone for MembersRemoveError
Source§fn clone(&self) -> MembersRemoveError
fn clone(&self) -> MembersRemoveError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MembersRemoveError
impl Debug for MembersRemoveError
Source§impl<'de> Deserialize<'de> for MembersRemoveError
impl<'de> Deserialize<'de> for MembersRemoveError
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 Display for MembersRemoveError
impl Display for MembersRemoveError
Source§impl Error for MembersRemoveError
impl Error for MembersRemoveError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<MembersTransferFilesError> for MembersRemoveError
impl From<MembersTransferFilesError> for MembersRemoveError
Source§fn from(parent: MembersTransferFilesError) -> Self
fn from(parent: MembersTransferFilesError) -> Self
Source§impl PartialEq for MembersRemoveError
impl PartialEq for MembersRemoveError
Source§impl Serialize for MembersRemoveError
impl Serialize for MembersRemoveError
impl Eq for MembersRemoveError
impl StructuralPartialEq for MembersRemoveError
Auto Trait Implementations§
impl Freeze for MembersRemoveError
impl RefUnwindSafe for MembersRemoveError
impl Send for MembersRemoveError
impl Sync for MembersRemoveError
impl Unpin for MembersRemoveError
impl UnwindSafe for MembersRemoveError
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.