Struct octorust::auth::InstallationTokenGenerator [−][src]
pub struct InstallationTokenGenerator {
pub installation_id: u64,
pub jwt_credential: Box<Credentials>,
pub access_key: Arc<Mutex<Option<String>>>,
}
Expand description
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>
access_key: Arc<Mutex<Option<String>>>
Implementations
Trait Implementations
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
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more