pub struct ConfirmationResult { /* private fields */ }Implementations§
Source§impl ConfirmationResult
impl ConfirmationResult
Sourcepub fn new<F, Fut>(verification_id: String, confirm_handler: F) -> Selfwhere
F: Fn(&str) -> Fut + Send + Sync + 'static,
Fut: Future<Output = AuthResult<UserCredential>> + Send + 'static,
pub fn new<F, Fut>(verification_id: String, confirm_handler: F) -> Selfwhere
F: Fn(&str) -> Fut + Send + Sync + 'static,
Fut: Future<Output = AuthResult<UserCredential>> + Send + 'static,
Creates a confirmation result that can complete sign-in with the provided handler.
Sourcepub async fn confirm(
&self,
verification_code: &str,
) -> AuthResult<UserCredential>
pub async 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§
Auto 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