Struct github_auth::Authenticator
[−]
[src]
pub struct Authenticator { /* fields omitted */ }A GitHub auth instance.
Methods
impl Authenticator[src]
pub fn new(name: String) -> Self[src]
Create a new instance.
pub fn with_config(name: String, config: Config) -> Self[src]
Create a new instance and configure it.
pub fn location(&self) -> PathBuf[src]
Get the location at which the token is stored.
pub fn auth(&self) -> Result<Token, Error>[src]
Authenticate with GitHub.
Trait Implementations
impl Debug for Authenticator[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more