pub struct FileRotationConfig {
pub max_size: String,
pub max_files: u32,
pub compress: bool,
}Expand description
File rotation configuration
Fields§
§max_size: StringMaximum file size (e.g., “100MB”, “1GB”)
max_files: u32Maximum number of files to keep
compress: boolWhether to compress rotated files
Trait Implementations§
Source§impl Clone for FileRotationConfig
impl Clone for FileRotationConfig
Source§fn clone(&self) -> FileRotationConfig
fn clone(&self) -> FileRotationConfig
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 FileRotationConfig
impl Debug for FileRotationConfig
Source§impl<'de> Deserialize<'de> for FileRotationConfig
impl<'de> Deserialize<'de> for FileRotationConfig
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 FileRotationConfig
impl RefUnwindSafe for FileRotationConfig
impl Send for FileRotationConfig
impl Sync for FileRotationConfig
impl Unpin for FileRotationConfig
impl UnsafeUnpin for FileRotationConfig
impl UnwindSafe for FileRotationConfig
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