pub struct NuGetParseContext {
pub policy: Arc<RegistryAccessPolicy>,
pub config_cache: Arc<NuGetConfigCache>,
pub user_profile_config: Option<PathBuf>,
pub user_profile_sources: Arc<AtomicBool>,
}Expand description
Owned by NuGetEcosystem, shared across every document it parses.
Fields§
§policy: Arc<RegistryAccessPolicy>Gates every workspace-declared NuGetFeedUrl this parse constructs.
config_cache: Arc<NuGetConfigCache>Memoizes each distinct NuGet.Config file’s raw, unvalidated contents.
user_profile_config: Option<PathBuf>The resolved user-profile-tier NuGet.Config path (issue #561, FR-001), resolved once
at construction — never re-walked per parse (a profile created after server start is
picked up only on restart, a documented limitation, not a bug). None when no
candidate exists; NuGetParseContext::default leaves this None, so tests that
don’t care about the user-profile tier are unaffected.
user_profile_sources: Arc<AtomicBool>Live-updatable registries.nuget_user_profile_sources setting (FR-006) — gates only the
routing half of a user-profile file’s contribution (see resolve_with_context’s doc); the
credential half always applies regardless of this flag.
Implementations§
Source§impl NuGetParseContext
impl NuGetParseContext
Sourcepub fn new(
policy: Arc<RegistryAccessPolicy>,
config_cache: Arc<NuGetConfigCache>,
user_profile_sources: Arc<AtomicBool>,
) -> Self
pub fn new( policy: Arc<RegistryAccessPolicy>, config_cache: Arc<NuGetConfigCache>, user_profile_sources: Arc<AtomicBool>, ) -> Self
Production constructor: discovers the user-profile-tier config path once (FR-001) and
wires it alongside policy/config_cache/user_profile_sources.
Trait Implementations§
Source§impl Clone for NuGetParseContext
impl Clone for NuGetParseContext
Source§fn clone(&self) -> NuGetParseContext
fn clone(&self) -> NuGetParseContext
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more