#[non_exhaustive]pub enum AddSecondaryEmailResult {
Success(SecondaryEmail),
Unavailable(EmailAddress),
AlreadyPending(EmailAddress),
AlreadyOwnedByUser(EmailAddress),
ReachedLimit(EmailAddress),
TransientError(EmailAddress),
TooManyUpdates(EmailAddress),
UnknownError(EmailAddress),
RateLimited(EmailAddress),
Other,
}
async_routes
and 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.
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§
Source§impl Clone for AddSecondaryEmailResult
impl Clone for AddSecondaryEmailResult
Source§fn clone(&self) -> AddSecondaryEmailResult
fn clone(&self) -> AddSecondaryEmailResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for AddSecondaryEmailResult
impl Debug for AddSecondaryEmailResult
Source§impl<'de> Deserialize<'de> for AddSecondaryEmailResult
impl<'de> Deserialize<'de> for AddSecondaryEmailResult
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 PartialEq for AddSecondaryEmailResult
impl PartialEq for AddSecondaryEmailResult
Source§impl Serialize for AddSecondaryEmailResult
impl Serialize for AddSecondaryEmailResult
impl Eq for AddSecondaryEmailResult
impl StructuralPartialEq for AddSecondaryEmailResult
Auto Trait Implementations§
impl Freeze for AddSecondaryEmailResult
impl RefUnwindSafe for AddSecondaryEmailResult
impl Send for AddSecondaryEmailResult
impl Sync for AddSecondaryEmailResult
impl Unpin for AddSecondaryEmailResult
impl UnwindSafe for AddSecondaryEmailResult
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.