pub struct ResolvedHop {
pub url: NuGetFeedUrl,
pub slot: Option<String>,
pub auth: Option<NuGetAuth>,
}Expand description
One resolved hop in a NuGetSourceChain (issue #561, FR-016).
Replaces the plain NuGetFeedUrl a hop used to be, so NuGetConfig::resolve_source_for and
NuGetConfig::resolved_chains (both of which reach NuGetSourceChain::chain exclusively
through NuGetConfig::valid_hops/NuGetConfig::hops_for_mapping_keys) necessarily agree on
each hop’s credential data — there is no second, independently-maintained argument for it to
disagree with.
Fields§
§url: NuGetFeedUrl§slot: Option<String>The lowercased declared <add key> that supplied Self::auth, or None when this
hop carries no credential. Used (not the credential value) by
NuGetSourceChain::chain’s hash and by NuGetRegistry::register_chain’s
rotation-detection, so a chain’s identity is stable across a credential value
rotation under the same declared key.
auth: Option<NuGetAuth>Never hashed (see NuGetSourceChain::chain) and never fully Debug-printed
(NuGetAuth redacts).
Trait Implementations§
Source§impl Clone for ResolvedHop
impl Clone for ResolvedHop
Source§fn clone(&self) -> ResolvedHop
fn clone(&self) -> ResolvedHop
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more