podman_rest_client/v5/models/id_mapping_options.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// IDMappingOptions are used for specifying how ID mapping should be set up for
4/// a layer or container.
5pub struct IdMappingOptions {
6 #[serde(rename = "AutoUserNs")]
7 pub auto_user_ns: Option<bool>,
8 #[serde(rename = "AutoUserNsOpts")]
9 pub auto_user_ns_opts: Option<crate::v5::models::AutoUserNsOptions>,
10 #[serde(rename = "GIDMap")]
11 pub gid_map: Option<Vec<crate::v5::models::IdMap>>,
12 #[serde(rename = "HostGIDMapping")]
13 pub host_gid_mapping: Option<bool>,
14 /// UIDMap and GIDMap are used for setting up a layer's root filesystem
15 /// for use inside of a user namespace where ID mapping is being used.
16 /// If HostUIDMapping/HostGIDMapping is true, no mapping of the
17 /// respective type will be used. Otherwise, if UIDMap and/or GIDMap
18 /// contain at least one mapping, one or both will be used. By default,
19 /// if neither of those conditions apply, if the layer has a parent
20 /// layer, the parent layer's mapping will be used, and if it does not
21 /// have a parent layer, the mapping which was passed to the Store
22 /// object when it was initialized will be used.
23 #[serde(rename = "HostUIDMapping")]
24 pub host_uid_mapping: Option<bool>,
25 #[serde(rename = "UIDMap")]
26 pub uid_map: Option<Vec<crate::v5::models::IdMap>>,
27}