pub struct TypesLogRotationConfig {
pub compress: Option<bool>,
pub directory: Option<String>,
pub filename: Option<String>,
pub max_age: Option<i64>,
pub max_backups: Option<i64>,
pub max_size: Option<i64>,
}Expand description
TypesLogRotationConfig
JSON schema
{
"type": "object",
"properties": {
"compress": {
"description": "Compress determines if the rotated log files should be compressed\nusing gzip. The default is not to perform compression.",
"type": "boolean"
},
"directory": {
"description": "Directory to log to when filelogging is enabled",
"type": "string"
},
"filename": {
"description": "Filename is the name of the logfile which will be placed inside the directory",
"type": "string"
},
"maxAge": {
"description": "MaxAge the max age in days to keep a logfile",
"type": "integer"
},
"maxBackups": {
"description": "MaxBackups the max number of rolled files to keep",
"type": "integer"
},
"maxSize": {
"description": "MaxSize the max size in MB of the logfile before it's rolled",
"type": "integer"
}
}
}Fields§
§compress: Option<bool>Compress determines if the rotated log files should be compressed using gzip. The default is not to perform compression.
directory: Option<String>Directory to log to when filelogging is enabled
filename: Option<String>Filename is the name of the logfile which will be placed inside the directory
max_age: Option<i64>MaxAge the max age in days to keep a logfile
max_backups: Option<i64>MaxBackups the max number of rolled files to keep
max_size: Option<i64>MaxSize the max size in MB of the logfile before it’s rolled
Trait Implementations§
source§impl Clone for TypesLogRotationConfig
impl Clone for TypesLogRotationConfig
source§fn clone(&self) -> TypesLogRotationConfig
fn clone(&self) -> TypesLogRotationConfig
Returns a copy 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 TypesLogRotationConfig
impl Debug for TypesLogRotationConfig
source§impl<'de> Deserialize<'de> for TypesLogRotationConfig
impl<'de> Deserialize<'de> for TypesLogRotationConfig
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
source§impl From<&TypesLogRotationConfig> for TypesLogRotationConfig
impl From<&TypesLogRotationConfig> for TypesLogRotationConfig
source§fn from(value: &TypesLogRotationConfig) -> Self
fn from(value: &TypesLogRotationConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TypesLogRotationConfig
impl RefUnwindSafe for TypesLogRotationConfig
impl Send for TypesLogRotationConfig
impl Sync for TypesLogRotationConfig
impl Unpin for TypesLogRotationConfig
impl UnwindSafe for TypesLogRotationConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)