pub struct DockerRuntimeConfig {
pub image: String,
pub network: String,
pub memory_limit_mb: Option<u64>,
pub cpu_limit: Option<f64>,
pub read_only_rootfs: bool,
pub mount_workspace: bool,
pub allowed_workspace_roots: Vec<String>,
}Expand description
Docker runtime configuration.
Fields§
§image: StringDocker image to use (e.g., “alpine:3.20”).
network: StringDocker network mode (e.g., “none”, “bridge”, “host”).
memory_limit_mb: Option<u64>Memory limit in MB (optional).
cpu_limit: Option<f64>CPU limit (e.g., 1.5 = 1.5 CPUs).
read_only_rootfs: boolMount the root filesystem as read-only.
mount_workspace: boolMount the workspace directory into the container.
allowed_workspace_roots: Vec<String>Allowed workspace root paths (if empty, any path is allowed).
Trait Implementations§
Source§impl Clone for DockerRuntimeConfig
impl Clone for DockerRuntimeConfig
Source§fn clone(&self) -> DockerRuntimeConfig
fn clone(&self) -> DockerRuntimeConfig
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 DockerRuntimeConfig
impl Debug for DockerRuntimeConfig
Source§impl Default for DockerRuntimeConfig
impl Default for DockerRuntimeConfig
Source§impl<'de> Deserialize<'de> for DockerRuntimeConfig
impl<'de> Deserialize<'de> for DockerRuntimeConfig
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 DockerRuntimeConfig
impl RefUnwindSafe for DockerRuntimeConfig
impl Send for DockerRuntimeConfig
impl Sync for DockerRuntimeConfig
impl Unpin for DockerRuntimeConfig
impl UnsafeUnpin for DockerRuntimeConfig
impl UnwindSafe for DockerRuntimeConfig
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