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>>,
pub domainname: Option<String>,
pub entrypoint: Option<Vec<String>>,
pub env: Option<Vec<String>>,
pub exposed_ports: Option<HashMap<String, Object>>,
pub healthcheck: Option<HealthConfig>,
pub hostname: Option<String>,
pub image: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub mac_address: Option<String>,
pub network_disabled: Option<bool>,
pub on_build: Option<Vec<String>>,
pub open_stdin: Option<bool>,
pub shell: Option<Vec<String>>,
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, Object>>,
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>>We need to override the json decoder to accept both options.
domainname: Option<String>§entrypoint: Option<Vec<String>>We need to override the json decoder to accept both options.
env: Option<Vec<String>>§exposed_ports: Option<HashMap<String, Object>>PortSet is a collection of structs indexed by Port
healthcheck: Option<HealthConfig>§hostname: Option<String>§image: Option<String>§labels: Option<HashMap<String, String>>§mac_address: Option<String>§network_disabled: Option<bool>§on_build: Option<Vec<String>>§open_stdin: Option<bool>§shell: Option<Vec<String>>We need to override the json decoder to accept both options.
stdin_once: Option<bool>§stop_signal: Option<String>§stop_timeout: Option<i64>§tty: Option<bool>§user: Option<String>§volumes: Option<HashMap<String, Object>>§working_dir: Option<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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>,
Source§impl FromStr for Config
Converts Query Parameters representation (style=form, explode=false) to a Config value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for Config
Converts Query Parameters representation (style=form, explode=false) to a Config value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl ToString for Config
Converts the Config value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for Config
Converts the Config value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer