podman_rest_client/v5/models/container_cgroup_config.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// ContainerCgroupConfig contains configuration information about a container's
4/// cgroups.
5pub struct ContainerCgroupConfig {
6 /// CgroupParent is the container's Cgroup parent.
7 /// If not set, the default for the current cgroup driver will be used.
8 /// Optional.
9 pub cgroup_parent: Option<String>,
10 pub cgroupns: Option<crate::v5::models::Namespace>,
11 /// CgroupsMode sets a policy for how cgroups will be created for the
12 /// container, including the ability to disable creation entirely.
13 /// Optional.
14 pub cgroups_mode: Option<String>,
15}