pub struct NuGetSourceChain {
pub key: String,
pub hops: Vec<ResolvedHop>,
pub implicit_public_fallback: bool,
}Expand description
One fully-resolved routing chain, produced by NuGetConfig::resolved_chains, consumed by
NuGetRegistry::register_chain. Mirrors deps_pypi::config::ResolvedChain exactly.
Fields§
§key: StringOpaque, hashed identity produced by deps_core::hash_routing_key ("nuget-chain")
over each hop’s URL and ResolvedHop::slot (never ResolvedHop::auth — FR-016)
plus Self::implicit_public_fallback. NuGetConfig::resolve_source_for and
NuGetConfig::resolved_chains recompute this independently and must agree.
hops: Vec<ResolvedHop>Ordered, already-validated hops. Never empty.
implicit_public_fallback: booltrue only for the plain (non-mapping) chain when no ancestor <clear/> removed the
implicit public fallback — the public hop is appended at registration time, never
present in Self::hops. Always false for a <packageSourceMapping>-derived
chain: a mapping is authoritative once it names a package, so the chain never appends
the public hop even when <clear/> is absent (this is the dependency-confusion leak
fix — see this module’s doc).
Trait Implementations§
Source§impl Clone for NuGetSourceChain
impl Clone for NuGetSourceChain
Source§fn clone(&self) -> NuGetSourceChain
fn clone(&self) -> NuGetSourceChain
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more