pub struct PhoneAuthCredential { /* private fields */ }Expand description
Represents a credential produced during a phone verification flow.
Implementations§
Source§impl PhoneAuthCredential
impl PhoneAuthCredential
Sourcepub fn new(
verification_id: impl Into<String>,
verification_code: impl Into<String>,
) -> Self
pub fn new( verification_id: impl Into<String>, verification_code: impl Into<String>, ) -> Self
Creates a credential from a verification ID and SMS verification code.
Sourcepub fn verification_id(&self) -> &str
pub fn verification_id(&self) -> &str
Returns the verification identifier issued by Firebase Auth.
Sourcepub fn verification_code(&self) -> &str
pub fn verification_code(&self) -> &str
Returns the SMS verification code supplied by the user.
Trait Implementations§
Source§impl Clone for PhoneAuthCredential
impl Clone for PhoneAuthCredential
Source§fn clone(&self) -> PhoneAuthCredential
fn clone(&self) -> PhoneAuthCredential
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 PhoneAuthCredential
impl RefUnwindSafe for PhoneAuthCredential
impl Send for PhoneAuthCredential
impl Sync for PhoneAuthCredential
impl Unpin for PhoneAuthCredential
impl UnwindSafe for PhoneAuthCredential
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