#[non_exhaustive]pub struct RegistriesConfigValue {
pub index: Option<String>,
pub token: Option<String>,
pub credential_provider: Option<CredentialProvider>,
pub protocol: Option<RegistriesProtocol>,
}Expand description
A value of the [registries] table.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: Option<String>Specifies the URL of the git index for the registry.
token: Option<String>Specifies the authentication token for the given registry.
Note: This library does not read any values in the credentials file.
credential_provider: Option<CredentialProvider>Specifies the credential provider for the given registry.
protocol: Option<RegistriesProtocol>Specifies the protocol used to access crates.io. Not allowed for any registries besides crates.io.
Trait Implementations§
Source§impl Clone for RegistriesConfigValue
impl Clone for RegistriesConfigValue
Source§fn clone(&self) -> RegistriesConfigValue
fn clone(&self) -> RegistriesConfigValue
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 RegistriesConfigValue
impl Debug for RegistriesConfigValue
Source§impl Default for RegistriesConfigValue
impl Default for RegistriesConfigValue
Source§fn default() -> RegistriesConfigValue
fn default() -> RegistriesConfigValue
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RegistriesConfigValue
impl RefUnwindSafe for RegistriesConfigValue
impl Send for RegistriesConfigValue
impl Sync for RegistriesConfigValue
impl Unpin for RegistriesConfigValue
impl UnsafeUnpin for RegistriesConfigValue
impl UnwindSafe for RegistriesConfigValue
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