Struct firebase_auth::FirebaseAuth
source · pub struct FirebaseAuth { /* private fields */ }Expand description
Provide a service to automatically pull the new google public key based on the Cache-Control header. If there is an error during refreshing, automatically retry indefinitely every 10 seconds.
Implementations§
source§impl FirebaseAuth
impl FirebaseAuth
pub async fn new(project_id: &str) -> FirebaseAuth
pub fn verify(&self, token: &str) -> Option<FirebaseUser>
Trait Implementations§
source§impl Clone for FirebaseAuth
impl Clone for FirebaseAuth
source§fn clone(&self) -> FirebaseAuth
fn clone(&self) -> FirebaseAuth
Returns a copy 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 Drop for FirebaseAuth
impl Drop for FirebaseAuth
source§impl FromRef<FirebaseAuthState> for FirebaseAuth
impl FromRef<FirebaseAuthState> for FirebaseAuth
source§fn from_ref(state: &FirebaseAuthState) -> Self
fn from_ref(state: &FirebaseAuthState) -> Self
Converts to this type from a reference to the input type.
Auto Trait Implementations§
impl RefUnwindSafe for FirebaseAuth
impl Send for FirebaseAuth
impl Sync for FirebaseAuth
impl Unpin for FirebaseAuth
impl UnwindSafe for FirebaseAuth
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