pub struct LogConfigLibpod {
pub driver: Option<String>,
pub options: Option<HashMap<String, String>>,
pub path: Option<String>,
pub size: Option<i64>,
}
Available on crate feature
v5
only.Expand description
LogConfig describes the logging characteristics for a container
Fields§
§driver: Option<String>
LogDriver is the container’s log driver. Optional.
options: Option<HashMap<String, String>>
A set of options to accompany the log driver. Optional.
path: Option<String>
LogPath is the path the container’s logs will be stored at. Only available if LogDriver is set to “json-file” or “k8s-file”. Optional.
size: Option<i64>
Size is the maximum size of the log file Optional.
Trait Implementations§
Source§impl Debug for LogConfigLibpod
impl Debug for LogConfigLibpod
Source§impl Default for LogConfigLibpod
impl Default for LogConfigLibpod
Source§fn default() -> LogConfigLibpod
fn default() -> LogConfigLibpod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogConfigLibpod
impl<'de> Deserialize<'de> for LogConfigLibpod
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 LogConfigLibpod
impl RefUnwindSafe for LogConfigLibpod
impl Send for LogConfigLibpod
impl Sync for LogConfigLibpod
impl Unpin for LogConfigLibpod
impl UnwindSafe for LogConfigLibpod
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