pub enum MemberAddResult {
    TeamLicenseLimit(EmailAddress),
    FreeTeamMemberLimitReached(EmailAddress),
    UserAlreadyOnTeam(EmailAddress),
    UserOnAnotherTeam(EmailAddress),
    UserAlreadyPaired(EmailAddress),
    UserMigrationFailed(EmailAddress),
    DuplicateExternalMemberId(EmailAddress),
    DuplicateMemberPersistentId(EmailAddress),
    PersistentIdDisabled(EmailAddress),
    UserCreationFailed(EmailAddress),
    Success(TeamMemberInfo),
}
Expand description

Describes the result of attempting to add a single user to the team. ‘success’ is the only value indicating that a user was indeed added to the team - the other values explain the type of failure that occurred, and include the email of the user for which the operation has failed.

Variants§

§

TeamLicenseLimit(EmailAddress)

Team is already full. The organization has no available licenses.

§

FreeTeamMemberLimitReached(EmailAddress)

Team is already full. The free team member limit has been reached.

§

UserAlreadyOnTeam(EmailAddress)

User is already on this team. The provided email address is associated with a user who is already a member of (including in recoverable state) or invited to the team.

§

UserOnAnotherTeam(EmailAddress)

User is already on another team. The provided email address is associated with a user that is already a member or invited to another team.

§

UserAlreadyPaired(EmailAddress)

User is already paired.

§

UserMigrationFailed(EmailAddress)

User migration has failed.

§

DuplicateExternalMemberId(EmailAddress)

A user with the given external member ID already exists on the team (including in recoverable state).

§

DuplicateMemberPersistentId(EmailAddress)

A user with the given persistent ID already exists on the team (including in recoverable state).

§

PersistentIdDisabled(EmailAddress)

Persistent ID is only available to teams with persistent ID SAML configuration. Please contact Dropbox for more information.

§

UserCreationFailed(EmailAddress)

User creation has failed.

§

Success(TeamMemberInfo)

Describes a user that was successfully added to the team.

Trait Implementations§

source§

impl Clone for MemberAddResult

Available on crate feature dbx_team only.
source§

fn clone(&self) -> MemberAddResult

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for MemberAddResult

Available on crate feature dbx_team only.
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for MemberAddResult

Available on crate feature dbx_team only.
source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<MemberAddResultBase> for MemberAddResult

Available on crate feature dbx_team only.
source§

fn from(parent: MemberAddResultBase) -> Self

Converts to this type from the input type.
source§

impl PartialEq for MemberAddResult

Available on crate feature dbx_team only.
source§

fn eq(&self, other: &MemberAddResult) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for MemberAddResult

Available on crate feature dbx_team only.
source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for MemberAddResult

Available on crate feature dbx_team only.
source§

impl StructuralEq for MemberAddResult

Available on crate feature dbx_team only.
source§

impl StructuralPartialEq for MemberAddResult

Available on crate feature dbx_team only.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,