pub struct RetentionConfig {
pub retention_days: u64,
pub max_size_bytes: u64,
pub archive_path: String,
pub tenant_id: Option<String>,
}Expand description
Configuration for receipt retention and archival.
When set on KernelConfig, the kernel can archive aged-out or oversized
receipt databases to a separate read-only SQLite file while keeping archived
receipts verifiable against their Merkle checkpoint roots.
Fields§
§retention_days: u64Number of days to retain receipts in the live database. Default: 90.
max_size_bytes: u64Maximum size in bytes before the live database is rotated. Default: 10 GB.
archive_path: StringPath for the archive SQLite file. Must be writable on first rotation.
tenant_id: Option<String>Optional tenant scope for retention. When set, rotation only archives receipts for this tenant and leaves other tenant evidence untouched.
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 · 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
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