pub struct LogConfig {
pub max_files: Option<i64>,
pub max_file_size_mb: Option<i64>,
pub enabled: Option<bool>,
pub disabled: Option<bool>,
}
Expand description
LogConfig provides configuration for log rotation
This struct was generated based on the Go types of the official Nomad API.
Fields§
§max_files: Option<i64>
§max_file_size_mb: Option<i64>
§enabled: Option<bool>
COMPAT(1.6.0): Enabled had to be swapped for Disabled to fix a backwards compatibility bug when restoring pre-1.5.4 jobs. Remove in 1.6.0
disabled: Option<bool>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogConfig
impl<'de> Deserialize<'de> for LogConfig
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
impl StructuralPartialEq for LogConfig
Auto Trait Implementations§
impl Freeze for LogConfig
impl RefUnwindSafe for LogConfig
impl Send for LogConfig
impl Sync for LogConfig
impl Unpin for LogConfig
impl UnwindSafe for LogConfig
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