Struct cargo::ops::RegistryConfig
source · [−]pub struct RegistryConfig {
pub index: Option<String>,
pub token: Option<String>,
pub credential_process: Option<(PathBuf, Vec<String>)>,
}
Expand description
Registry settings loaded from config files.
This is loaded based on the --registry
flag and the config settings.
Fields
index: Option<String>
The index URL. If None
, use crates.io.
token: Option<String>
The authentication token.
credential_process: Option<(PathBuf, Vec<String>)>
Process used for fetching a token.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for RegistryConfig
impl Send for RegistryConfig
impl Sync for RegistryConfig
impl Unpin for RegistryConfig
impl UnwindSafe for RegistryConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more