pub struct MultiFactorAuthError { /* private fields */ }Expand description
Represents a typed multi-factor error emitted by Firebase Auth REST endpoints.
Implementations§
Source§impl MultiFactorAuthError
impl MultiFactorAuthError
Sourcepub fn new(
code: MultiFactorAuthErrorCode,
server_message: Option<String>,
) -> Self
pub fn new( code: MultiFactorAuthErrorCode, server_message: Option<String>, ) -> Self
Creates a new error with the provided code and optional server-supplied message detail.
Sourcepub fn code(&self) -> MultiFactorAuthErrorCode
pub fn code(&self) -> MultiFactorAuthErrorCode
Returns the structured multi-factor error code.
Sourcepub fn server_message(&self) -> Option<&str>
pub fn server_message(&self) -> Option<&str>
Returns the raw server message if Firebase sent extra context.
Trait Implementations§
Source§impl Clone for MultiFactorAuthError
impl Clone for MultiFactorAuthError
Source§fn clone(&self) -> MultiFactorAuthError
fn clone(&self) -> MultiFactorAuthError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MultiFactorAuthError
impl Debug for MultiFactorAuthError
Source§impl Display for MultiFactorAuthError
impl Display for MultiFactorAuthError
Source§impl PartialEq for MultiFactorAuthError
impl PartialEq for MultiFactorAuthError
impl Eq for MultiFactorAuthError
impl StructuralPartialEq for MultiFactorAuthError
Auto Trait Implementations§
impl Freeze for MultiFactorAuthError
impl RefUnwindSafe for MultiFactorAuthError
impl Send for MultiFactorAuthError
impl Sync for MultiFactorAuthError
impl Unpin for MultiFactorAuthError
impl UnwindSafe for MultiFactorAuthError
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.