pub struct GhProvider;Expand description
Provider for GitHub CLI credentials (~/.config/gh/).
Trait Implementations§
Source§impl AuthProvider for GhProvider
impl AuthProvider for GhProvider
Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable display name.
Source§fn credential_files(&self) -> Vec<CredentialFile>
fn credential_files(&self) -> Vec<CredentialFile>
List of credential files/directories this provider manages.
Source§fn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ValidationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn validate<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ValidationResult> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Validate whether the current local credentials are still valid.
Defaults to
ValidationResult::Unknown.Source§impl Clone for GhProvider
impl Clone for GhProvider
Source§fn clone(&self) -> GhProvider
fn clone(&self) -> GhProvider
Returns a duplicate of the value. Read more
1.0.0 · 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 GhProvider
impl Debug for GhProvider
Source§impl Default for GhProvider
impl Default for GhProvider
Source§fn default() -> GhProvider
fn default() -> GhProvider
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GhProvider
impl RefUnwindSafe for GhProvider
impl Send for GhProvider
impl Sync for GhProvider
impl Unpin for GhProvider
impl UnsafeUnpin for GhProvider
impl UnwindSafe for GhProvider
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