Struct github_auth::Builder [−][src]
pub struct Builder { /* fields omitted */ }
Create a new Authenticator
instance.
Methods
impl Builder
[src]
impl Builder
pub fn new(name: String) -> Self
[src]
pub fn new(name: String) -> Self
Create a new instance.
pub fn note(self, note: String) -> Self
[src]
pub fn note(self, note: String) -> Self
Set a custom note for the token stored on GitHub. Defaults to mentioning the token name.
pub fn scope(self, scope: Scope) -> Self
[src]
pub fn scope(self, scope: Scope) -> Self
Add a scope. Read more.
pub fn build(self) -> Authenticator
[src]
pub fn build(self) -> Authenticator
Finalize the builder, and return an Authenticator
instance.
Trait Implementations
impl Debug for Builder
[src]
impl Debug for Builder
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 Builder
[src]
impl Default for Builder