Struct yup_oauth2::ServiceAccountAccess [−][src]
pub struct ServiceAccountAccess<C> { /* fields omitted */ }
A token source (GetToken
) yielding OAuth tokens for services that use ServiceAccount authorization.
This token source caches token and automatically renews expired ones.
Methods
impl<'a, C> ServiceAccountAccess<C> where
C: BorrowMut<Client>,
[src]
impl<'a, C> ServiceAccountAccess<C> where
C: BorrowMut<Client>,
pub fn new(key: ServiceAccountKey, client: C) -> ServiceAccountAccess<C>
[src]
pub fn new(key: ServiceAccountKey, client: C) -> ServiceAccountAccess<C>
Returns a new ServiceAccountAccess
token source.
pub fn with_sub(
key: ServiceAccountKey,
client: C,
sub: String
) -> ServiceAccountAccess<C>
[src]
pub fn with_sub(
key: ServiceAccountKey,
client: C,
sub: String
) -> ServiceAccountAccess<C>
Trait Implementations
impl<C: BorrowMut<Client>> GetToken for ServiceAccountAccess<C>
[src]
impl<C: BorrowMut<Client>> GetToken for ServiceAccountAccess<C>
Auto Trait Implementations
impl<C> Send for ServiceAccountAccess<C> where
C: Send,
impl<C> Send for ServiceAccountAccess<C> where
C: Send,
impl<C> Sync for ServiceAccountAccess<C> where
C: Sync,
impl<C> Sync for ServiceAccountAccess<C> where
C: Sync,