#[repr(C)]pub struct WitnessLogPolicy {
pub max_entries: u64,
pub max_size_bytes: u64,
pub retention_seconds: u64,
pub compression: WitnessCompression,
pub export_policy: WitnessExportPolicy,
pub hash_chain: bool,
}Expand description
Witness log policy configuration.
Fields§
§max_entries: u64Maximum entries to retain before rotation.
max_size_bytes: u64Maximum size in bytes before rotation.
retention_seconds: u64Retention period in seconds (0 = forever).
compression: WitnessCompressionCompression algorithm.
export_policy: WitnessExportPolicyExport policy.
hash_chain: boolWhether to hash-chain entries for integrity.
Trait Implementations§
Source§impl Clone for WitnessLogPolicy
impl Clone for WitnessLogPolicy
Source§fn clone(&self) -> WitnessLogPolicy
fn clone(&self) -> WitnessLogPolicy
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 WitnessLogPolicy
impl Debug for WitnessLogPolicy
Source§impl Default for WitnessLogPolicy
impl Default for WitnessLogPolicy
Source§impl PartialEq for WitnessLogPolicy
impl PartialEq for WitnessLogPolicy
impl Copy for WitnessLogPolicy
impl Eq for WitnessLogPolicy
impl StructuralPartialEq for WitnessLogPolicy
Auto Trait Implementations§
impl Freeze for WitnessLogPolicy
impl RefUnwindSafe for WitnessLogPolicy
impl Send for WitnessLogPolicy
impl Sync for WitnessLogPolicy
impl Unpin for WitnessLogPolicy
impl UnsafeUnpin for WitnessLogPolicy
impl UnwindSafe for WitnessLogPolicy
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