Enum cargo::ops::RegistryCredentialConfig
source · pub enum RegistryCredentialConfig {
None,
Token(Secret<String>),
Process((PathBuf, Vec<String>)),
AsymmetricKey((Secret<String>, Option<String>)),
}
Expand description
Registry settings loaded from config files.
This is loaded based on the --registry
flag and the config settings.
Variants§
None
Token(Secret<String>)
The authentication token.
Process((PathBuf, Vec<String>))
Process used for fetching a token.
AsymmetricKey((Secret<String>, Option<String>))
Secret Key and subject for Asymmetric tokens.
Implementations§
source§impl RegistryCredentialConfig
impl RegistryCredentialConfig
Trait Implementations§
source§impl Debug for RegistryCredentialConfig
impl Debug for RegistryCredentialConfig
source§impl PartialEq<RegistryCredentialConfig> for RegistryCredentialConfig
impl PartialEq<RegistryCredentialConfig> for RegistryCredentialConfig
source§fn eq(&self, other: &RegistryCredentialConfig) -> bool
fn eq(&self, other: &RegistryCredentialConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.