pub enum TokenSource {
Environment,
GhCli,
Keyring,
}Expand description
Source of the GitHub authentication token.
Variants§
Environment
Token from GH_TOKEN or GITHUB_TOKEN environment variable.
GhCli
Token from gh auth token command.
Keyring
Token from system keyring (native aptu auth).
Trait Implementations§
Source§impl Clone for TokenSource
impl Clone for TokenSource
Source§fn clone(&self) -> TokenSource
fn clone(&self) -> TokenSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TokenSource
impl Debug for TokenSource
Source§impl Display for TokenSource
impl Display for TokenSource
Source§impl PartialEq for TokenSource
impl PartialEq for TokenSource
Source§fn eq(&self, other: &TokenSource) -> bool
fn eq(&self, other: &TokenSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TokenSource
impl Serialize for TokenSource
impl Copy for TokenSource
impl Eq for TokenSource
impl StructuralPartialEq for TokenSource
Auto Trait Implementations§
impl Freeze for TokenSource
impl RefUnwindSafe for TokenSource
impl Send for TokenSource
impl Sync for TokenSource
impl Unpin for TokenSource
impl UnsafeUnpin for TokenSource
impl UnwindSafe for TokenSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more