Struct podman_api_stubs::models::ImageConfig
source · [−]pub struct ImageConfig {
pub cmd: Option<Vec<String>>,
pub entrypoint: Option<Vec<String>>,
pub env: Option<Vec<String>>,
pub exposed_ports: Option<HashMap<String, Value>>,
pub labels: Option<HashMap<String, String>>,
pub stop_signal: Option<String>,
pub user: Option<String>,
pub volumes: Option<HashMap<String, Value>>,
pub working_dir: Option<String>,
}
Fields
cmd: Option<Vec<String>>
Cmd defines the default arguments to the entrypoint of the container.
entrypoint: Option<Vec<String>>
Entrypoint defines a list of arguments to use as the command to execute when the container starts.
env: Option<Vec<String>>
Env is a list of environment variables to be used in a container.
exposed_ports: Option<HashMap<String, Value>>
ExposedPorts a set of ports to expose from a container running this image.
labels: Option<HashMap<String, String>>
Labels contains arbitrary metadata for the container.
stop_signal: Option<String>
StopSignal contains the system call signal that will be sent to the container to exit.
user: Option<String>
User defines the username or UID which the process in the container should run as.
volumes: Option<HashMap<String, Value>>
Volumes is a set of directories describing where the process is likely write data specific to a container instance.
working_dir: Option<String>
WorkingDir sets the current working directory of the entrypoint process in the container.
Trait Implementations
sourceimpl Clone for ImageConfig
impl Clone for ImageConfig
sourcefn clone(&self) -> ImageConfig
fn clone(&self) -> ImageConfig
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 ImageConfig
impl Debug for ImageConfig
sourceimpl<'de> Deserialize<'de> for ImageConfig
impl<'de> Deserialize<'de> for ImageConfig
sourcefn 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
sourceimpl PartialEq<ImageConfig> for ImageConfig
impl PartialEq<ImageConfig> for ImageConfig
sourcefn eq(&self, other: &ImageConfig) -> bool
fn eq(&self, other: &ImageConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImageConfig) -> bool
fn ne(&self, other: &ImageConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for ImageConfig
impl Serialize for ImageConfig
impl StructuralPartialEq for ImageConfig
Auto Trait Implementations
impl RefUnwindSafe for ImageConfig
impl Send for ImageConfig
impl Sync for ImageConfig
impl Unpin for ImageConfig
impl UnwindSafe for ImageConfig
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> 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