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 ==
.impl StructuralPartialEq for RegistryCredentialConfig
Auto Trait Implementations§
impl RefUnwindSafe for RegistryCredentialConfig
impl Send for RegistryCredentialConfig
impl Sync for RegistryCredentialConfig
impl Unpin for RegistryCredentialConfig
impl UnwindSafe for RegistryCredentialConfig
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes
Size for each variant:
None
: 0 bytesToken
: 24 bytesProcess
: 48 bytesAsymmetricKey
: 48 bytes