pub struct InstallationTokenGenerator {
pub installation_id: u64,
pub jwt_credential: Box<Credentials>,
/* private fields */
}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>Implementations§
Source§impl InstallationTokenGenerator
impl InstallationTokenGenerator
pub fn new( installation_id: u64, creds: JWTCredentials, ) -> InstallationTokenGenerator
Trait Implementations§
Source§impl Clone for InstallationTokenGenerator
impl Clone for InstallationTokenGenerator
Source§fn clone(&self) -> InstallationTokenGenerator
fn clone(&self) -> InstallationTokenGenerator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallationTokenGenerator
impl Debug for InstallationTokenGenerator
Auto Trait Implementations§
impl Freeze for InstallationTokenGenerator
impl RefUnwindSafe for InstallationTokenGenerator
impl Send for InstallationTokenGenerator
impl Sync for InstallationTokenGenerator
impl Unpin for InstallationTokenGenerator
impl UnwindSafe for InstallationTokenGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more