Struct github_app_auth::InstallationAccessToken [−][src]
pub struct InstallationAccessToken {
pub client: Client,
pub refresh_safety_margin: Duration,
// some fields omitted
}Expand description
An installation access token is the primary method for authenticating with the GitHub API as an application.
Fields
client: ClientThe reqwest::Client used to periodically refresh
the token.
This is made public so that users of the library can re-use this client for sending requests, but this is not required.
refresh_safety_margin: DurationThis time is subtracted from the expiration time to make it less likely that the token goes out of date just as a request is sent.
Implementations
Fetch an installation access token using the provided authentication parameters.
Auto Trait Implementations
impl !RefUnwindSafe for InstallationAccessToken
impl Send for InstallationAccessToken
impl Sync for InstallationAccessToken
impl Unpin for InstallationAccessToken
impl !UnwindSafe for InstallationAccessToken
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more