Struct github_auth::Authenticator [−][src]
pub struct Authenticator { /* fields omitted */ }
A GitHub auth instance.
Methods
impl Authenticator
[src]
impl Authenticator
pub fn new(name: String) -> Self
[src]
pub fn new(name: String) -> Self
Create a new instance with no scopes allowed.
pub fn builder(name: String) -> Builder
[src]
pub fn builder(name: String) -> Builder
Create a new instance and configure it.
pub fn location(&self) -> Result<PathBuf, Error>
[src]
pub fn location(&self) -> Result<PathBuf, Error>
Get the location at which the token is stored.
pub fn delete(&self) -> Result<(), Error>
[src]
pub fn delete(&self) -> Result<(), Error>
Remove the token from the local storage.
pub fn auth(&self) -> Result<Token, Error>
[src]
pub fn auth(&self) -> Result<Token, Error>
Authenticate with GitHub.
Trait Implementations
impl Debug for Authenticator
[src]
impl Debug for Authenticator
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Authenticator
[src]
impl Default for Authenticator
Auto Trait Implementations
impl Send for Authenticator
impl Send for Authenticator
impl Sync for Authenticator
impl Sync for Authenticator