pub struct ConfidenceConfig {
pub shadow_retention_days: Option<i64>,
}Expand description
v0.7.0 Cluster G (#767) — [confidence] config block. Carries the
retention window for confidence_shadow_observations consumed by
the periodic GC sweep wired into daemon_runtime::spawn_gc_loop.
Wire format:
[confidence]
shadow_retention_days = 30None → the compiled default
(crate::confidence::shadow::DEFAULT_SHADOW_RETENTION_DAYS = 30)
applies. Set to 0 or a negative value to disable the sweep
(matches the audit-honest “do-nothing-on-zero” convention used by
archive_max_days).
Fields§
§shadow_retention_days: Option<i64>Retention window (in days) for shadow-mode observation rows.
Rows whose observed_at is older than now - N days are
deleted by the GC sweep. None → compiled default of 30 days.
Some(0) or Some(<0) → sweep is a no-op (operator opt-out
for compliance / forensic-retention scenarios).
Implementations§
Source§impl ConfidenceConfig
impl ConfidenceConfig
Sourcepub fn effective_shadow_retention_days(&self) -> i64
pub fn effective_shadow_retention_days(&self) -> i64
Effective retention window, honoring the compiled default when
the config block is absent or shadow_retention_days is unset.
Trait Implementations§
Source§impl Clone for ConfidenceConfig
impl Clone for ConfidenceConfig
Source§fn clone(&self) -> ConfidenceConfig
fn clone(&self) -> ConfidenceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConfidenceConfig
impl Debug for ConfidenceConfig
Source§impl Default for ConfidenceConfig
impl Default for ConfidenceConfig
Source§fn default() -> ConfidenceConfig
fn default() -> ConfidenceConfig
Source§impl<'de> Deserialize<'de> for ConfidenceConfig
impl<'de> Deserialize<'de> for ConfidenceConfig
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>,
Source§impl PartialEq for ConfidenceConfig
impl PartialEq for ConfidenceConfig
Source§fn eq(&self, other: &ConfidenceConfig) -> bool
fn eq(&self, other: &ConfidenceConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ConfidenceConfig
impl Serialize for ConfidenceConfig
impl StructuralPartialEq for ConfidenceConfig
Auto Trait Implementations§
impl Freeze for ConfidenceConfig
impl RefUnwindSafe for ConfidenceConfig
impl Send for ConfidenceConfig
impl Sync for ConfidenceConfig
impl Unpin for ConfidenceConfig
impl UnsafeUnpin for ConfidenceConfig
impl UnwindSafe for ConfidenceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
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