pub struct ConfirmationResult { /* private fields */ }Implementations§
Source§impl ConfirmationResult
impl ConfirmationResult
Sourcepub fn new<F>(verification_id: String, confirm_handler: F) -> Self
pub fn new<F>(verification_id: String, confirm_handler: F) -> Self
Creates a confirmation result that can complete sign-in with the provided handler.
Sourcepub fn confirm(&self, verification_code: &str) -> AuthResult<UserCredential>
pub fn confirm(&self, verification_code: &str) -> AuthResult<UserCredential>
Finalizes authentication by providing the SMS verification code.
Sourcepub fn verification_id(&self) -> &str
pub fn verification_id(&self) -> &str
Returns the verification ID that should be paired with the SMS code.
Trait Implementations§
Source§impl Clone for ConfirmationResult
impl Clone for ConfirmationResult
Source§fn clone(&self) -> ConfirmationResult
fn clone(&self) -> ConfirmationResult
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 ConfirmationResult
impl !RefUnwindSafe for ConfirmationResult
impl Send for ConfirmationResult
impl Sync for ConfirmationResult
impl Unpin for ConfirmationResult
impl !UnwindSafe for ConfirmationResult
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