Struct podman_api::models::IdMappingOptions [−][src]
pub struct IdMappingOptions {
pub auto_user_ns: Option<bool>,
pub auto_user_ns_opts: Option<AutoUserNsOptions>,
pub gid_map: Option<Vec<IdMap, Global>>,
pub host_gid_mapping: Option<bool>,
pub host_uid_mapping: Option<bool>,
pub uid_map: Option<Vec<IdMap, Global>>,
}
Expand description
IDMappingOptions are used for specifying how ID mapping should be set up for a layer or container.
Fields
auto_user_ns: Option<bool>
auto_user_ns_opts: Option<AutoUserNsOptions>
gid_map: Option<Vec<IdMap, Global>>
host_gid_mapping: Option<bool>
host_uid_mapping: Option<bool>
UIDMap and GIDMap are used for setting up a layer’s root filesystem for use inside of a user namespace where ID mapping is being used. If HostUIDMapping/HostGIDMapping is true, no mapping of the respective type will be used. Otherwise, if UIDMap and/or GIDMap contain at least one mapping, one or both will be used. By default, if neither of those conditions apply, if the layer has a parent layer, the parent layer’s mapping will be used, and if it does not have a parent layer, the mapping which was passed to the Store object when it was initialized will be used.
uid_map: Option<Vec<IdMap, Global>>
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<IdMappingOptions, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<IdMappingOptions, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for IdMappingOptions
impl Send for IdMappingOptions
impl Sync for IdMappingOptions
impl Unpin for IdMappingOptions
impl UnwindSafe for IdMappingOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more