Enum octorust::auth::Credentials
source · pub enum Credentials {
Token(String),
Client(String, String),
JWT(JWTCredentials),
InstallationToken(InstallationTokenGenerator),
}
Expand description
Various forms of authentication credentials supported by GitHub.
Variants§
Token(String)
Oauth token string https://developer.github.com/v3/#oauth2-token-sent-in-a-header
Client(String, String)
Oauth client id and secret https://developer.github.com/v3/#oauth2-keysecret
JWT(JWTCredentials)
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/
InstallationToken(InstallationTokenGenerator)
JWT-based App Installation Token https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/
Trait Implementations§
source§impl Clone for Credentials
impl Clone for Credentials
source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
Returns a copy 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 Credentials
impl Debug for Credentials
source§impl PartialEq<Credentials> for Credentials
impl PartialEq<Credentials> for Credentials
source§fn eq(&self, other: &Credentials) -> bool
fn eq(&self, other: &Credentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Credentials
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§
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