[−][src]Struct hubcaps::InstallationTokenGenerator
A caching token "generator" which contains JWT credentials.
The authentication mechanism in the GitHub client library determines if the token is stale, and if so, uses the contained JWT credentials to fetch a new installation token.
The Mutex
Fields
installation_id: u64
jwt_credential: Box<Credentials>
Implementations
impl InstallationTokenGenerator
[src]
pub fn new(
installation_id: u64,
creds: JWTCredentials
) -> InstallationTokenGenerator
[src]
installation_id: u64,
creds: JWTCredentials
) -> InstallationTokenGenerator
Trait Implementations
impl Clone for InstallationTokenGenerator
[src]
fn clone(&self) -> InstallationTokenGenerator
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for InstallationTokenGenerator
[src]
impl PartialEq<InstallationTokenGenerator> for InstallationTokenGenerator
[src]
Auto Trait Implementations
impl RefUnwindSafe for InstallationTokenGenerator
impl Send for InstallationTokenGenerator
impl Sync for InstallationTokenGenerator
impl Unpin for InstallationTokenGenerator
impl UnwindSafe for InstallationTokenGenerator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,