pub struct ImageConfig {
pub command: Vec<String>,
pub env: BTreeMap<String, String>,
pub workdir: String,
pub uid: u32,
pub gid: u32,
pub additional_gids: Vec<u32>,
}Fields§
§command: Vec<String>§env: BTreeMap<String, String>§workdir: String§uid: u32§gid: u32§additional_gids: Vec<u32>Implementations§
Source§impl ImageConfig
impl ImageConfig
pub fn from_state(state: &ContainerState) -> Self
Trait Implementations§
Source§impl Clone for ImageConfig
impl Clone for ImageConfig
Source§fn clone(&self) -> ImageConfig
fn clone(&self) -> ImageConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageConfig
impl Debug for ImageConfig
Source§impl<'de> Deserialize<'de> for ImageConfig
impl<'de> Deserialize<'de> for ImageConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ImageConfig
Source§impl PartialEq for ImageConfig
impl PartialEq for ImageConfig
Source§fn eq(&self, other: &ImageConfig) -> bool
fn eq(&self, other: &ImageConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ImageConfig
impl Serialize for ImageConfig
impl StructuralPartialEq for ImageConfig
Auto Trait Implementations§
impl Freeze for ImageConfig
impl RefUnwindSafe for ImageConfig
impl Send for ImageConfig
impl Sync for ImageConfig
impl Unpin for ImageConfig
impl UnsafeUnpin for ImageConfig
impl UnwindSafe for ImageConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more