podman_rest_client/v5/models/
log_config_libpod.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// LogConfig describes the logging characteristics for a container
4pub struct LogConfigLibpod {
5    /// LogDriver is the container's log driver.
6    /// Optional.
7    pub driver: Option<String>,
8    /// A set of options to accompany the log driver.
9    /// Optional.
10    pub options: Option<std::collections::HashMap<String, String>>,
11    /// LogPath is the path the container's logs will be stored at.
12    /// Only available if LogDriver is set to "json-file" or "k8s-file".
13    /// Optional.
14    pub path: Option<String>,
15    /// Size is the maximum size of the log file
16    /// Optional.
17    pub size: Option<i64>,
18}