[−][src]Struct yup_oauth2::ServiceAccountAccess
A token source (GetToken
) yielding OAuth tokens for services that use ServiceAccount authorization.
This token source caches token and automatically renews expired ones, meaning you do not need
(and you also should not) use this with Authenticator
. Just use it directly.
Methods
impl ServiceAccountAccess<DefaultHyperClient>
[src]
pub fn new(key: ServiceAccountKey) -> Self
[src]
Create a new ServiceAccountAccess with the provided key.
impl<C> ServiceAccountAccess<C> where
C: HyperClientBuilder,
C::Connector: 'static,
[src]
C: HyperClientBuilder,
C::Connector: 'static,
pub fn hyper_client<NewC: HyperClientBuilder>(
self,
hyper_client: NewC
) -> ServiceAccountAccess<NewC>
[src]
self,
hyper_client: NewC
) -> ServiceAccountAccess<NewC>
Use the provided hyper client.
pub fn sub(self, sub: String) -> Self
[src]
Use the provided sub.
pub fn build(self) -> impl GetToken
[src]
Build the configured ServiceAccountAccess.
Trait Implementations
impl<C: Clone> Clone for ServiceAccountAccess<C>
[src]
fn clone(&self) -> ServiceAccountAccess<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<C> Send for ServiceAccountAccess<C> where
C: Send,
C: Send,
impl<C> Unpin for ServiceAccountAccess<C> where
C: Unpin,
C: Unpin,
impl<C> Sync for ServiceAccountAccess<C> where
C: Sync,
C: Sync,
impl<C> UnwindSafe for ServiceAccountAccess<C> where
C: UnwindSafe,
C: UnwindSafe,
impl<C> RefUnwindSafe for ServiceAccountAccess<C> where
C: RefUnwindSafe,
C: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,