podman_rest_client/v5/models/
auto_user_ns_options.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// AutoUserNsOptions defines how to automatically create a user namespace.
4pub struct AutoUserNsOptions {
5    /// AdditionalGIDMappings specified additional GID mappings to include in
6    /// the generated user namespace.
7    #[serde(rename = "AdditionalGIDMappings")]
8    pub additional_gid_mappings: Option<Vec<crate::v5::models::IdMap>>,
9    /// AdditionalUIDMappings specified additional UID mappings to include in
10    /// the generated user namespace.
11    #[serde(rename = "AdditionalUIDMappings")]
12    pub additional_uid_mappings: Option<Vec<crate::v5::models::IdMap>>,
13    /// GroupFile to use if the container uses a volume.
14    #[serde(rename = "GroupFile")]
15    pub group_file: Option<String>,
16    /// InitialSize defines the minimum size for the user namespace.
17    /// The created user namespace will have at least this size.
18    #[serde(rename = "InitialSize")]
19    pub initial_size: Option<u32>,
20    /// PasswdFile to use if the container uses a volume.
21    #[serde(rename = "PasswdFile")]
22    pub passwd_file: Option<String>,
23    /// Size defines the size for the user namespace.  If it is set to a
24    /// value bigger than 0, the user namespace will have exactly this size.
25    /// If it is not set, some heuristics will be used to find its size.
26    #[serde(rename = "Size")]
27    pub size: Option<u32>,
28}