Enum dropbox_sdk::team::AddSecondaryEmailResult
source · [−]#[non_exhaustive]
pub enum AddSecondaryEmailResult {
Success(SecondaryEmail),
Unavailable(EmailAddress),
AlreadyPending(EmailAddress),
AlreadyOwnedByUser(EmailAddress),
ReachedLimit(EmailAddress),
TransientError(EmailAddress),
TooManyUpdates(EmailAddress),
UnknownError(EmailAddress),
RateLimited(EmailAddress),
Other,
}dbx_team only.Expand description
Result of trying to add a secondary email to a user. ‘success’ is the only value indicating that a secondary email was successfully added to a user. The other values explain the type of error that occurred, and include the email for which the error occurred.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Success(SecondaryEmail)
Describes a secondary email that was successfully added to a user.
Unavailable(EmailAddress)
Secondary email is not available to be claimed by the user.
AlreadyPending(EmailAddress)
Secondary email is already a pending email for the user.
AlreadyOwnedByUser(EmailAddress)
Secondary email is already a verified email for the user.
ReachedLimit(EmailAddress)
User already has the maximum number of secondary emails allowed.
TransientError(EmailAddress)
A transient error occurred. Please try again later.
TooManyUpdates(EmailAddress)
An error occurred due to conflicting updates. Please try again later.
UnknownError(EmailAddress)
An unknown error occurred.
RateLimited(EmailAddress)
Too many emails are being sent to this email address. Please try again later.
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 AddSecondaryEmailResult
impl Clone for AddSecondaryEmailResult
sourcefn clone(&self) -> AddSecondaryEmailResult
fn clone(&self) -> AddSecondaryEmailResult
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 AddSecondaryEmailResult
impl Debug for AddSecondaryEmailResult
sourceimpl<'de> Deserialize<'de> for AddSecondaryEmailResult
impl<'de> Deserialize<'de> for AddSecondaryEmailResult
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 PartialEq<AddSecondaryEmailResult> for AddSecondaryEmailResult
impl PartialEq<AddSecondaryEmailResult> for AddSecondaryEmailResult
sourcefn eq(&self, other: &AddSecondaryEmailResult) -> bool
fn eq(&self, other: &AddSecondaryEmailResult) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &AddSecondaryEmailResult) -> bool
fn ne(&self, other: &AddSecondaryEmailResult) -> bool
This method tests for !=.
sourceimpl Serialize for AddSecondaryEmailResult
impl Serialize for AddSecondaryEmailResult
impl Eq for AddSecondaryEmailResult
impl StructuralEq for AddSecondaryEmailResult
impl StructuralPartialEq for AddSecondaryEmailResult
Auto Trait Implementations
impl RefUnwindSafe for AddSecondaryEmailResult
impl Send for AddSecondaryEmailResult
impl Sync for AddSecondaryEmailResult
impl Unpin for AddSecondaryEmailResult
impl UnwindSafe for AddSecondaryEmailResult
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