pub struct ConnectionLogRetention {
pub days: u32,
pub max_file_size_mb: u32,
pub max_files: u32,
pub auto_purge: bool,
pub secure_delete: bool,
}Expand description
Connection log retention settings
Fields§
§days: u32Days to retain connection logs (0 = forever, but not recommended)
max_file_size_mb: u32Maximum log file size in MB before rotation (file mode only)
max_files: u32Number of rotated log files to keep
auto_purge: boolAutomatically purge logs older than retention period
secure_delete: boolSecure deletion (overwrite before delete) - slower but more secure
Trait Implementations§
Source§impl Clone for ConnectionLogRetention
impl Clone for ConnectionLogRetention
Source§fn clone(&self) -> ConnectionLogRetention
fn clone(&self) -> ConnectionLogRetention
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 ConnectionLogRetention
impl Debug for ConnectionLogRetention
Source§impl Default for ConnectionLogRetention
impl Default for ConnectionLogRetention
Source§impl<'de> Deserialize<'de> for ConnectionLogRetention
impl<'de> Deserialize<'de> for ConnectionLogRetention
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 ConnectionLogRetention
impl RefUnwindSafe for ConnectionLogRetention
impl Send for ConnectionLogRetention
impl Sync for ConnectionLogRetention
impl Unpin for ConnectionLogRetention
impl UnwindSafe for ConnectionLogRetention
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