#[non_exhaustive]pub enum CredentialProvider {
CargoToken,
CargoWincred,
CargoMacosKeychain,
CargoLibsecret,
CargoTokenFromStdout(PathAndArgs),
Plugin(PathAndArgs),
Alias(String),
}Expand description
The kind of a registry’s credential provider.
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.
CargoToken
Uses Cargo’s credentials file to store tokens unencrypted in plain text.
CargoWincred
Uses the Windows Credential Manager to store tokens.
CargoMacosKeychain
Uses the macOS Keychain to store tokens.
CargoLibsecret
Uses libsecret to store tokens.
CargoTokenFromStdout(PathAndArgs)
Launch a subprocess that returns a token on stdout. Newlines will be trimmed.
Plugin(PathAndArgs)
For credential provider plugins that follow Cargo’s credential provider protocol, the configuration value should be a string with the path to the executable (or the executable name if on the PATH).
Alias(String)
An alias, to be looked up in the [credential-alias] table.
Trait Implementations§
Source§impl Clone for CredentialProvider
impl Clone for CredentialProvider
Source§fn clone(&self) -> CredentialProvider
fn clone(&self) -> CredentialProvider
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 CredentialProvider
impl Debug for CredentialProvider
Source§impl PartialEq for CredentialProvider
impl PartialEq for CredentialProvider
Source§impl Serialize for CredentialProvider
impl Serialize for CredentialProvider
impl StructuralPartialEq for CredentialProvider
Auto Trait Implementations§
impl Freeze for CredentialProvider
impl RefUnwindSafe for CredentialProvider
impl Send for CredentialProvider
impl Sync for CredentialProvider
impl Unpin for CredentialProvider
impl UnsafeUnpin for CredentialProvider
impl UnwindSafe for CredentialProvider
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