pub struct GcConfig {
pub stale_threshold_days: u64,
pub stale_hint_days: u64,
pub health_check: bool,
}Expand description
Garbage collection / draft lifecycle configuration
Fields§
§stale_threshold_days: u64Number of days after which drafts in terminal states (Applied, Denied, Closed) become eligible for staging directory cleanup. Default: 7.
stale_hint_days: u64Number of days after which the startup hint fires for pending/approved drafts. Default: 3 (informational only — a Friday draft hints on Monday morning). Set higher (e.g., 5) to reduce noise. Must be ≤ stale_threshold_days.
health_check: boolEmit a one-line warning on ta startup if stale drafts exist. Default: true.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GcConfig
impl<'de> Deserialize<'de> for GcConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GcConfig
impl RefUnwindSafe for GcConfig
impl Send for GcConfig
impl Sync for GcConfig
impl Unpin for GcConfig
impl UnsafeUnpin for GcConfig
impl UnwindSafe for GcConfig
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
Mutably borrows from an owned value. Read more