Struct podman_api::models::IdMappingOptions
source · [−]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
sourceimpl Clone for IdMappingOptions
impl Clone for IdMappingOptions
sourcefn clone(&self) -> IdMappingOptions
fn clone(&self) -> IdMappingOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for IdMappingOptions
impl Debug for IdMappingOptions
sourceimpl<'de> Deserialize<'de> for IdMappingOptions
impl<'de> Deserialize<'de> for IdMappingOptions
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<IdMappingOptions, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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
sourceimpl PartialEq<IdMappingOptions> for IdMappingOptions
impl PartialEq<IdMappingOptions> for IdMappingOptions
sourcefn eq(&self, other: &IdMappingOptions) -> bool
fn eq(&self, other: &IdMappingOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &IdMappingOptions) -> bool
fn ne(&self, other: &IdMappingOptions) -> bool
This method tests for !=
.
sourceimpl Serialize for IdMappingOptions
impl Serialize for IdMappingOptions
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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
impl StructuralPartialEq for IdMappingOptions
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more