pub struct MultiFactorSession { /* private fields */ }Implementations§
Source§impl MultiFactorSession
impl MultiFactorSession
Sourcepub fn credential(&self) -> &str
pub fn credential(&self) -> &str
Returns the raw credential captured for this session.
For enrollment sessions this is the user’s ID token, while for sign-in sessions it represents
the mfaPendingCredential returned by the server.
Sourcepub fn session_type(&self) -> MultiFactorSessionType
pub fn session_type(&self) -> MultiFactorSessionType
Returns the type of multi-factor session that was established.
Sourcepub fn pending_credential(&self) -> Option<&str>
pub fn pending_credential(&self) -> Option<&str>
Returns the pending credential captured for sign-in sessions.
Trait Implementations§
Source§impl Clone for MultiFactorSession
impl Clone for MultiFactorSession
Source§fn clone(&self) -> MultiFactorSession
fn clone(&self) -> MultiFactorSession
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 moreAuto Trait Implementations§
impl Freeze for MultiFactorSession
impl RefUnwindSafe for MultiFactorSession
impl Send for MultiFactorSession
impl Sync for MultiFactorSession
impl Unpin for MultiFactorSession
impl UnwindSafe for MultiFactorSession
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