#[non_exhaustive]pub struct CliConfig {
pub policy: PolicyConfig,
pub update: UpdateConfig,
}Expand description
deps-cli’s own top-level configuration, loaded from deps.toml.
Composes the same PolicyConfig deps-lsp’s DepsConfig does via #[serde(flatten)],
reproducing that type’s deny_unknown_fields/flatten asymmetry exactly: an unknown
top-level key rejects the whole file, but an unknown key nested inside a known section
([cache], [network], …) is tolerated for forward-compatibility (spec 062 plan.md §3,
verified by deps-lsp’s own config.rs tests).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.policy: PolicyConfigThe shared policy sections (diagnostics, cache, freshness, supply_chain, registries, network, license_policy).
update: UpdateConfigThe [update] section (#1119) — deps-cli update’s ignore rules. Honored only when
loaded from an explicit --config <path>; never auto-discovered (FR-007) —
safe_auto_discovered_config drops it by omission for the check auto-discovery
path.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CliConfig
impl<'de> Deserialize<'de> for CliConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CliConfig
impl RefUnwindSafe for CliConfig
impl Send for CliConfig
impl Sync for CliConfig
impl Unpin for CliConfig
impl UnsafeUnpin for CliConfig
impl UnwindSafe for CliConfig
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more