Enum dropbox_sdk::team::MembersSetProfileError
source · [−]#[non_exhaustive]
pub enum MembersSetProfileError {
UserNotFound,
UserNotInTeam,
ExternalIdAndNewExternalIdUnsafe,
NoNewDataSpecified,
EmailReservedForOtherUser,
ExternalIdUsedByOtherUser,
SetProfileDisallowed,
ParamCannotBeEmpty,
PersistentIdDisabled,
PersistentIdUsedByOtherUser,
DirectoryRestrictedOff,
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.
ExternalIdAndNewExternalIdUnsafe
It is unsafe to use both external_id and new_external_id.
NoNewDataSpecified
None of new_email, new_given_name, new_surname, or new_external_id are specified.
EmailReservedForOtherUser
Email is already reserved for another user.
ExternalIdUsedByOtherUser
The external ID is already in use by another team member.
SetProfileDisallowed
Modifying deleted users is not allowed.
ParamCannotBeEmpty
Parameter new_email cannot be empty.
PersistentIdDisabled
Persistent ID is only available to teams with persistent ID SAML configuration. Please contact Dropbox for more information.
PersistentIdUsedByOtherUser
The persistent ID is already in use by another team member.
DirectoryRestrictedOff
Directory Restrictions option is not available.
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 MembersSetProfileError
impl Clone for MembersSetProfileError
sourcefn clone(&self) -> MembersSetProfileError
fn clone(&self) -> MembersSetProfileError
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 MembersSetProfileError
impl Debug for MembersSetProfileError
sourceimpl<'de> Deserialize<'de> for MembersSetProfileError
impl<'de> Deserialize<'de> for MembersSetProfileError
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 MembersSetProfileError
impl Display for MembersSetProfileError
sourceimpl Error for MembersSetProfileError
impl Error for MembersSetProfileError
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 MembersSetProfileError
impl Serialize for MembersSetProfileError
impl Eq for MembersSetProfileError
impl StructuralEq for MembersSetProfileError
impl StructuralPartialEq for MembersSetProfileError
Auto Trait Implementations
impl RefUnwindSafe for MembersSetProfileError
impl Send for MembersSetProfileError
impl Sync for MembersSetProfileError
impl Unpin for MembersSetProfileError
impl UnwindSafe for MembersSetProfileError
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