Enum hubcaps::Credentials
[−]
[src]
pub enum Credentials { None, Token(String), Client(String, String), }
Various forms of authentication credentials supported by Github
Variants
None
No authentication (the default)
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
Trait Implementations
impl Debug for Credentials
[src]
impl PartialEq for Credentials
[src]
fn eq(&self, __arg_0: &Credentials) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Credentials) -> bool
This method tests for !=
.
impl Default for Credentials
[src]
fn default() -> Credentials
Returns the "default value" for a type. Read more