#[non_exhaustive]pub enum CredentialService {
Git,
GitHub,
GitLab,
Gitea,
}Expand description
Which backend/tool is asking for a credential — lets a provider return
different secrets per service. #[non_exhaustive]: new backends may be added.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Git
A git remote operation (fetch/push/clone over HTTPS).
GitHub
A GitHub (gh) API operation.
GitLab
A GitLab (glab) API operation.
Gitea
A Gitea (tea) API operation. Reserved: tea has no per-operation token
mechanism today, so no backend currently emits this — it exists so a
provider can be written against it once tea gains support.
Trait Implementations§
Source§impl Clone for CredentialService
impl Clone for CredentialService
Source§fn clone(&self) -> CredentialService
fn clone(&self) -> CredentialService
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 moreimpl Copy for CredentialService
Source§impl Debug for CredentialService
impl Debug for CredentialService
impl Eq for CredentialService
Source§impl Hash for CredentialService
impl Hash for CredentialService
Source§impl Ord for CredentialService
impl Ord for CredentialService
Source§fn cmp(&self, other: &CredentialService) -> Ordering
fn cmp(&self, other: &CredentialService) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CredentialService
impl PartialEq for CredentialService
Source§fn eq(&self, other: &CredentialService) -> bool
fn eq(&self, other: &CredentialService) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CredentialService
impl PartialOrd for CredentialService
impl StructuralPartialEq for CredentialService
Auto Trait Implementations§
impl Freeze for CredentialService
impl RefUnwindSafe for CredentialService
impl Send for CredentialService
impl Sync for CredentialService
impl Unpin for CredentialService
impl UnsafeUnpin for CredentialService
impl UnwindSafe for CredentialService
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