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]
C: BorrowMut<Client>,
fn new(key: ServiceAccountKey, client: C) -> ServiceAccountAccess<C>
Returns a new ServiceAccountAccess
token source.
fn with_sub(
key: ServiceAccountKey,
client: C,
sub: String
) -> ServiceAccountAccess<C>
key: ServiceAccountKey,
client: C,
sub: String
) -> ServiceAccountAccess<C>