Struct podman_api::models::Config

source ·
pub struct Config {
Show 25 fields pub args_escaped: Option<bool>, pub attach_stderr: Option<bool>, pub attach_stdin: Option<bool>, pub attach_stdout: Option<bool>, pub cmd: Option<Vec<String, Global>>, pub domainname: Option<String>, pub entrypoint: Option<Vec<String, Global>>, pub env: Option<Vec<String, Global>>, pub exposed_ports: Option<HashMap<String, Value, RandomState>>, pub healthcheck: Option<HealthConfig>, pub hostname: Option<String>, pub image: Option<String>, pub labels: Option<HashMap<String, String, RandomState>>, pub mac_address: Option<String>, pub network_disabled: Option<bool>, pub on_build: Option<Vec<String, Global>>, pub open_stdin: Option<bool>, pub shell: Option<Vec<String, Global>>, pub stdin_once: Option<bool>, pub stop_signal: Option<String>, pub stop_timeout: Option<i64>, pub tty: Option<bool>, pub user: Option<String>, pub volumes: Option<HashMap<String, Value, RandomState>>, pub working_dir: Option<String>,
}
Expand description

It should hold only portable information about the container. Here, “portable” means “independent from the host we are running on”. Non-portable information should appear in HostConfig. All fields added to this struct must be marked omitempty to keep getting predictable hashes from the old v1Compatibility configuration.

Fields§

§args_escaped: Option<bool>§attach_stderr: Option<bool>§attach_stdin: Option<bool>§attach_stdout: Option<bool>§cmd: Option<Vec<String, Global>>§domainname: Option<String>§entrypoint: Option<Vec<String, Global>>§env: Option<Vec<String, Global>>§exposed_ports: Option<HashMap<String, Value, RandomState>>§healthcheck: Option<HealthConfig>§hostname: Option<String>§image: Option<String>§labels: Option<HashMap<String, String, RandomState>>§mac_address: Option<String>§network_disabled: Option<bool>§on_build: Option<Vec<String, Global>>§open_stdin: Option<bool>§shell: Option<Vec<String, Global>>§stdin_once: Option<bool>§stop_signal: Option<String>§stop_timeout: Option<i64>§tty: Option<bool>§user: Option<String>§volumes: Option<HashMap<String, Value, RandomState>>§working_dir: Option<String>

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
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 !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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