pub struct LogFileConfig {
pub path: String,
pub max_size: String,
pub max_backups: u32,
pub compress: bool,
}Expand description
Log file configuration
Fields§
§path: String§max_size: String§max_backups: u32§compress: boolImplementations§
Source§impl LogFileConfig
impl LogFileConfig
Sourcepub fn max_size_bytes(&self) -> Result<usize>
pub fn max_size_bytes(&self) -> Result<usize>
Parse max file size to bytes
Trait Implementations§
Source§impl Clone for LogFileConfig
impl Clone for LogFileConfig
Source§fn clone(&self) -> LogFileConfig
fn clone(&self) -> LogFileConfig
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 LogFileConfig
impl Debug for LogFileConfig
Source§impl<'de> Deserialize<'de> for LogFileConfig
impl<'de> Deserialize<'de> for LogFileConfig
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 LogFileConfig
impl RefUnwindSafe for LogFileConfig
impl Send for LogFileConfig
impl Sync for LogFileConfig
impl Unpin for LogFileConfig
impl UnsafeUnpin for LogFileConfig
impl UnwindSafe for LogFileConfig
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