pub struct PersistenceConfig {
pub log_dir: PathBuf,
pub file_prefix: String,
pub max_file_size: u64,
pub max_files: usize,
pub compress_rotated: bool,
}Expand description
Configuration for log file persistence
Fields§
§log_dir: PathBufDirectory where log files are stored
file_prefix: StringBase name for log files
max_file_size: u64Maximum file size before rotation (bytes)
max_files: usizeMaximum number of rotated files to keep
compress_rotated: boolWhether to compress rotated files
Trait Implementations§
Source§impl Clone for PersistenceConfig
impl Clone for PersistenceConfig
Source§fn clone(&self) -> PersistenceConfig
fn clone(&self) -> PersistenceConfig
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 PersistenceConfig
impl Debug for PersistenceConfig
Auto Trait Implementations§
impl Freeze for PersistenceConfig
impl RefUnwindSafe for PersistenceConfig
impl Send for PersistenceConfig
impl Sync for PersistenceConfig
impl Unpin for PersistenceConfig
impl UnwindSafe for PersistenceConfig
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