Struct github_auth::Authenticator [−][src]
pub struct Authenticator { /* fields omitted */ }A GitHub auth instance.
Methods
impl Authenticator[src]
impl Authenticatorpub fn new(name: String) -> Self[src]
pub fn new(name: String) -> SelfCreate a new instance with no scopes allowed.
pub fn builder(name: String) -> Builder[src]
pub fn builder(name: String) -> BuilderCreate a new instance and configure it.
pub fn location(&self) -> PathBuf[src]
pub fn location(&self) -> PathBufGet the location at which the token is stored.
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 Authenticatorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for Authenticator[src]
impl Default for AuthenticatorAuto Trait Implementations
impl Send for Authenticator
impl Send for Authenticatorimpl Sync for Authenticator
impl Sync for Authenticator