pub struct DockerConfig {Show 14 fields
pub image: String,
pub memory: String,
pub cpus: String,
pub network_mode: String,
pub startup_timeout: f64,
pub pull_policy: String,
pub server_port: u16,
pub environment: HashMap<String, String>,
pub shell_init: String,
pub volumes: Vec<VolumeMount>,
pub runtime_type: RuntimeType,
pub remote_host: Option<String>,
pub remote_user: Option<String>,
pub ssh_key_path: Option<String>,
}Expand description
Top-level Docker configuration (mirrors Python DockerConfig).
Fields§
§image: StringContainer image.
memory: StringMemory limit.
cpus: StringCPU limit.
network_mode: StringDocker network mode.
startup_timeout: f64Maximum seconds to wait for the container to become ready.
pull_policy: StringImage pull policy: always, never, or if-not-present.
server_port: u16Port the server listens on inside the container.
environment: HashMap<String, String>Extra environment variables.
shell_init: StringShell init command prepended to every command.
volumes: Vec<VolumeMount>Volume mounts.
runtime_type: RuntimeTypeRuntime type (local or remote Docker daemon).
remote_host: Option<String>Remote host for SSH-based Docker access.
remote_user: Option<String>SSH user for remote Docker.
ssh_key_path: Option<String>SSH key path.
Trait Implementations§
Source§impl Clone for DockerConfig
impl Clone for DockerConfig
Source§fn clone(&self) -> DockerConfig
fn clone(&self) -> DockerConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 DockerConfig
impl Debug for DockerConfig
Source§impl Default for DockerConfig
impl Default for DockerConfig
Source§impl<'de> Deserialize<'de> for DockerConfig
impl<'de> Deserialize<'de> for DockerConfig
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
Auto Trait Implementations§
impl Freeze for DockerConfig
impl RefUnwindSafe for DockerConfig
impl Send for DockerConfig
impl Sync for DockerConfig
impl Unpin for DockerConfig
impl UnsafeUnpin for DockerConfig
impl UnwindSafe for DockerConfig
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