Struct google_oauth::AsyncClient
source · pub struct AsyncClient { /* private fields */ }
Expand description
AsyncClient is an async client to do verification.
Implementations§
source§impl AsyncClient
impl AsyncClient
sourcepub fn timeout(self, d: Duration) -> Self
pub fn timeout(self, d: Duration) -> Self
Set the timeout (used in fetching google certs). Default timeout is 5 seconds. Zero timeout will be ignored.
sourcepub async fn validate_id_token<S>(&self, id_token: S) -> Result<GooglePayload>where
S: AsRef<str>,
pub async fn validate_id_token<S>(&self, id_token: S) -> Result<GooglePayload>where S: AsRef<str>,
Do verification with id_token
. If succeed, return the user data.
Trait Implementations§
source§impl Clone for AsyncClient
impl Clone for AsyncClient
source§fn clone(&self) -> AsyncClient
fn clone(&self) -> AsyncClient
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 moreAuto Trait Implementations§
impl RefUnwindSafe for AsyncClient
impl Send for AsyncClient
impl Sync for AsyncClient
impl Unpin for AsyncClient
impl UnwindSafe for AsyncClient
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