pub enum SparseRegistryAuthProvider {
TokenNoEnvironment,
Token,
Wincred,
MacosKeychain,
Libsecret,
TokenFromStdout(Vec<String>),
Provider(Vec<String>),
}Expand description
https://doc.rust-lang.org/cargo/reference/registry-authentication.html
Variants§
TokenNoEnvironment
The default; does not read CARGO_REGISTRY_TOKEN or CARGO_REGISTRIES_{}_TOKEN environment variables.
Token
cargo:token
Wincred
cargo:wincred (Win32)
MacosKeychain
cargo:macos-keychain (Apple)
Libsecret
cargo:libsecret; this dlopen()s libsecret-1.so.0 on non-Apple UNIX.
TokenFromStdout(Vec<String>)
cargo:token-from-stdout prog arg arg
Provider(Vec<String>)
Not cargo:-prefixed
https://doc.rust-lang.org/cargo/reference/credential-provider-protocol.html
We do not care about "cache", "expiration", or "operation_independent",
always behaving as-if "never"/_/true.
We don’t provide the optional {"registry": {"headers": ...}} field.
Implementations§
Source§impl SparseRegistryAuthProvider
impl SparseRegistryAuthProvider
Sourcepub fn from_config(toks: Vec<String>) -> SparseRegistryAuthProvider
pub fn from_config(toks: Vec<String>) -> SparseRegistryAuthProvider
Parses a ["cargo:token-from-stdout", "whatever"]-style entry
Trait Implementations§
Source§impl Clone for SparseRegistryAuthProvider
impl Clone for SparseRegistryAuthProvider
Source§fn clone(&self) -> SparseRegistryAuthProvider
fn clone(&self) -> SparseRegistryAuthProvider
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 SparseRegistryAuthProvider
impl Debug for SparseRegistryAuthProvider
Source§impl Hash for SparseRegistryAuthProvider
impl Hash for SparseRegistryAuthProvider
Source§impl Ord for SparseRegistryAuthProvider
impl Ord for SparseRegistryAuthProvider
Source§fn cmp(&self, other: &SparseRegistryAuthProvider) -> Ordering
fn cmp(&self, other: &SparseRegistryAuthProvider) -> 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 PartialOrd for SparseRegistryAuthProvider
impl PartialOrd for SparseRegistryAuthProvider
impl Eq for SparseRegistryAuthProvider
impl StructuralPartialEq for SparseRegistryAuthProvider
Auto Trait Implementations§
impl Freeze for SparseRegistryAuthProvider
impl RefUnwindSafe for SparseRegistryAuthProvider
impl Send for SparseRegistryAuthProvider
impl Sync for SparseRegistryAuthProvider
impl Unpin for SparseRegistryAuthProvider
impl UnwindSafe for SparseRegistryAuthProvider
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.