pub struct RetentionConfig {
pub hot_days: u32,
pub warm_days: u32,
pub cold_action: ColdAction,
pub archive_url: Option<String>,
pub schedule: String,
pub dry_run: bool,
}Expand description
Hot / warm / cold audit-event lifecycle parameters.
Defaults align with the SOC 2 / ISO 27001 reference window from the
Epic 18 spec: 30 days fully indexed (hot), 90 days
compressed-but-queryable (warm), then cold_action decides. The
schedule is a UTC cron expression — default 0 3 * * * runs the
retention sweep at 03:00 UTC daily.
Fields§
§hot_days: u32Days of hot-tier retention — rows are kept fully indexed.
warm_days: u32Days of warm-tier retention before cold_action kicks in.
cold_action: ColdActionWhat to do with rows past the warm tier.
archive_url: Option<String>Required when cold_action = Archive; ignored otherwise.
schedule: StringUTC cron expression for the retention sweep job.
dry_run: boolWhen true, the retention task logs what it would do without
touching any data — used by operators to validate new policies
before turning them on.
Trait Implementations§
Source§impl Clone for RetentionConfig
impl Clone for RetentionConfig
Source§fn clone(&self) -> RetentionConfig
fn clone(&self) -> RetentionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetentionConfig
impl Debug for RetentionConfig
Source§impl Default for RetentionConfig
impl Default for RetentionConfig
impl Eq for RetentionConfig
Source§impl PartialEq for RetentionConfig
impl PartialEq for RetentionConfig
Source§fn eq(&self, other: &RetentionConfig) -> bool
fn eq(&self, other: &RetentionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RetentionConfig
Auto Trait Implementations§
impl Freeze for RetentionConfig
impl RefUnwindSafe for RetentionConfig
impl Send for RetentionConfig
impl Sync for RetentionConfig
impl Unpin for RetentionConfig
impl UnsafeUnpin for RetentionConfig
impl UnwindSafe for RetentionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.