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: Client

The reqwest::blocking::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: Duration

This 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.

Get an HTTP authentication header for the installation access token.

This method is mutable because the installation access token must be periodically refreshed.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.