Enum hubcaps::Credentials
[−]
[src]
pub enum Credentials { Token(String), Client(String, String), }
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
Trait Implementations
impl Debug for Credentials
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Credentials
[src]
fn eq(&self, __arg_0: &Credentials) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Credentials) -> bool
[src]
This method tests for !=
.
impl Clone for Credentials
[src]
fn clone(&self) -> Credentials
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more