pub enum ConfigTier {
UserProfile,
Repo,
}Expand description
Which tier a parsed NuGet.Config file came from (issue #561, FR-001).
Diagnostics/gating metadata only — mirrors deps_cargo::config::Provenance’s “nothing
branches on this to widen trust” invariant. In particular, PackageSourceEntry::tier
is not consulted by the credential-binding logic in resolve_with_context (see that function’s
docs, §C2) — only by the resolve_with_context accumulation loop’s own gate (which contribution half
applies) and by tracing::debug! output.
Variants§
UserProfile
A user-profile-tier NuGet.Config (issue #561, FR-001) — not something a cloned
repository controls.
Repo
An in-repo NuGet.Config, discovered by the ancestor walk (spec 035 FR-001) —
attacker-controlled the moment a hostile repository is opened.
Trait Implementations§
Source§impl Clone for ConfigTier
impl Clone for ConfigTier
Source§fn clone(&self) -> ConfigTier
fn clone(&self) -> ConfigTier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConfigTier
Source§impl Debug for ConfigTier
impl Debug for ConfigTier
impl Eq for ConfigTier
Source§impl Hash for ConfigTier
impl Hash for ConfigTier
Source§impl PartialEq for ConfigTier
impl PartialEq for ConfigTier
Source§fn eq(&self, other: &ConfigTier) -> bool
fn eq(&self, other: &ConfigTier) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ConfigTier
Auto Trait Implementations§
impl Freeze for ConfigTier
impl RefUnwindSafe for ConfigTier
impl Send for ConfigTier
impl Sync for ConfigTier
impl Unpin for ConfigTier
impl UnsafeUnpin for ConfigTier
impl UnwindSafe for ConfigTier
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.