pub struct DaemonAuditConfig {
pub retain_days: Option<u32>,
pub prune_interval_minutes: Option<u64>,
}Expand description
Audit log retention configuration for the daemon.
Controls automatic pruning of old audit log entries.
When retain_days is set and a Postgres store is attached, the daemon
spawns a background task that deletes entries older than retain_days.
Fields§
§retain_days: Option<u32>Number of days to retain audit log entries. Entries older than this
are deleted by the background prune task. None disables pruning.
prune_interval_minutes: Option<u64>Interval in minutes between prune runs. Defaults to 60 (hourly).
Trait Implementations§
Source§impl Clone for DaemonAuditConfig
impl Clone for DaemonAuditConfig
Source§fn clone(&self) -> DaemonAuditConfig
fn clone(&self) -> DaemonAuditConfig
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 DaemonAuditConfig
impl Debug for DaemonAuditConfig
Source§impl Default for DaemonAuditConfig
impl Default for DaemonAuditConfig
Source§fn default() -> DaemonAuditConfig
fn default() -> DaemonAuditConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DaemonAuditConfig
impl<'de> Deserialize<'de> for DaemonAuditConfig
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 DaemonAuditConfig
impl RefUnwindSafe for DaemonAuditConfig
impl Send for DaemonAuditConfig
impl Sync for DaemonAuditConfig
impl Unpin for DaemonAuditConfig
impl UnsafeUnpin for DaemonAuditConfig
impl UnwindSafe for DaemonAuditConfig
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