Struct google_oauth::Client
source · pub struct Client { /* private fields */ }
Expand description
Client is a blocking client to do verification.
Implementations§
source§impl Client
impl Client
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 fn validate_id_token<S: AsRef<str>>(
&self,
id_token: S
) -> Result<GooglePayload>
pub fn validate_id_token<S: AsRef<str>>( &self, id_token: S ) -> Result<GooglePayload>
Do verification with id_token
. If succeed, return the user data.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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