#[non_exhaustive]pub enum MembersSetProfileError {
UserNotFound,
UserNotInTeam,
ExternalIdAndNewExternalIdUnsafe,
NoNewDataSpecified,
EmailReservedForOtherUser,
ExternalIdUsedByOtherUser,
SetProfileDisallowed,
ParamCannotBeEmpty,
PersistentIdDisabled,
PersistentIdUsedByOtherUser,
DirectoryRestrictedOff,
Other,
}
async_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.
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§
Source§impl Clone for MembersSetProfileError
impl Clone for MembersSetProfileError
Source§fn clone(&self) -> MembersSetProfileError
fn clone(&self) -> MembersSetProfileError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for MembersSetProfileError
impl Debug for MembersSetProfileError
Source§impl<'de> Deserialize<'de> for MembersSetProfileError
impl<'de> Deserialize<'de> for MembersSetProfileError
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 MembersSetProfileError
impl Display for MembersSetProfileError
Source§impl Error for MembersSetProfileError
impl Error for MembersSetProfileError
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<MemberSelectorError> for MembersSetProfileError
impl From<MemberSelectorError> for MembersSetProfileError
Source§fn from(parent: MemberSelectorError) -> Self
fn from(parent: MemberSelectorError) -> Self
Source§impl PartialEq for MembersSetProfileError
impl PartialEq for MembersSetProfileError
Source§impl Serialize for MembersSetProfileError
impl Serialize for MembersSetProfileError
impl Eq for MembersSetProfileError
impl StructuralPartialEq for MembersSetProfileError
Auto Trait Implementations§
impl Freeze for MembersSetProfileError
impl RefUnwindSafe for MembersSetProfileError
impl Send for MembersSetProfileError
impl Sync for MembersSetProfileError
impl Unpin for MembersSetProfileError
impl UnwindSafe for MembersSetProfileError
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.