nomad_client/models/log_config.rs
1/*
2 * Nomad
3 *
4 * Nomad OpenApi specification
5 *
6 * The version of the OpenAPI document: 0.11.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct LogConfig {
16 #[serde(rename = "MaxFiles", skip_serializing_if = "Option::is_none")]
17 pub max_files: Option<i32>,
18 #[serde(rename = "MaxFileSizeMB", skip_serializing_if = "Option::is_none")]
19 pub max_file_size_mb: Option<i32>,
20}
21
22impl LogConfig {
23 pub fn new() -> LogConfig {
24 LogConfig {
25 max_files: None,
26 max_file_size_mb: None,
27 }
28 }
29}
30
31