Struct github_auth::Builder [−][src]
pub struct Builder { /* fields omitted */ }Create a new Authenticator instance.
Methods
impl Builder[src]
impl Builderpub fn new(name: String) -> Self[src]
pub fn new(name: String) -> SelfCreate a new instance.
pub fn note(self, note: String) -> Self[src]
pub fn note(self, note: String) -> SelfSet 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) -> SelfAdd a scope. Read more.
pub fn build(self) -> Authenticator[src]
pub fn build(self) -> AuthenticatorFinalize the builder, and return an Authenticator instance.
Trait Implementations
impl Debug for Builder[src]
impl Debug for Builderfn 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 Builder[src]
impl Default for Builder