pub struct SparseRegistryConfig {
pub global_credential_providers: Vec<SparseRegistryAuthProvider>,
pub crates_io_credential_provider: Option<SparseRegistryAuthProvider>,
pub crates_io_token_env: Option<String>,
pub crates_io_token: Option<String>,
pub registry_tokens_env: BTreeMap<CargoConfigEnvironmentNormalisedString, String>,
pub registry_tokens: BTreeMap<String, String>,
pub credential_aliases: BTreeMap<CargoConfigEnvironmentNormalisedString, Vec<String>>,
}Expand description
https://github.com/nabijaczleweli/cargo-update/issues/300
Fields§
§global_credential_providers: Vec<SparseRegistryAuthProvider>§crates_io_credential_provider: Option<SparseRegistryAuthProvider>§crates_io_token_env: Option<String>§crates_io_token: Option<String>§registry_tokens_env: BTreeMap<CargoConfigEnvironmentNormalisedString, String>§registry_tokens: BTreeMap<String, String>§credential_aliases: BTreeMap<CargoConfigEnvironmentNormalisedString, Vec<String>>Implementations§
Source§impl SparseRegistryConfig
impl SparseRegistryConfig
pub fn credential_provider( &self, v: Value, ) -> Option<SparseRegistryAuthProvider>
Trait Implementations§
Source§impl Clone for SparseRegistryConfig
impl Clone for SparseRegistryConfig
Source§fn clone(&self) -> SparseRegistryConfig
fn clone(&self) -> SparseRegistryConfig
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 SparseRegistryConfig
impl Debug for SparseRegistryConfig
Source§impl Hash for SparseRegistryConfig
impl Hash for SparseRegistryConfig
Source§impl Ord for SparseRegistryConfig
impl Ord for SparseRegistryConfig
Source§fn cmp(&self, other: &SparseRegistryConfig) -> Ordering
fn cmp(&self, other: &SparseRegistryConfig) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SparseRegistryConfig
impl PartialEq for SparseRegistryConfig
Source§impl PartialOrd for SparseRegistryConfig
impl PartialOrd for SparseRegistryConfig
impl Eq for SparseRegistryConfig
impl StructuralPartialEq for SparseRegistryConfig
Auto Trait Implementations§
impl Freeze for SparseRegistryConfig
impl RefUnwindSafe for SparseRegistryConfig
impl Send for SparseRegistryConfig
impl Sync for SparseRegistryConfig
impl Unpin for SparseRegistryConfig
impl UnwindSafe for SparseRegistryConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.