Enum octorust::auth::Credentials [−][src]
pub enum Credentials { Token(String), Client(String, String), JWT(JWTCredentials), InstallationToken(InstallationTokenGenerator), }
Expand description
Various forms of authentication credentials supported by GitHub.
Variants
Oauth token string https://developer.github.com/v3/#oauth2-token-sent-in-a-header
Tuple Fields of Token
0: String
Oauth client id and secret https://developer.github.com/v3/#oauth2-keysecret
JWT token exchange, to be performed transparently in the background. app-id, DER key-file. https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/
Tuple Fields of JWT
JWT-based App Installation Token https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/
Tuple Fields of InstallationToken
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more