pub struct TemplateConfig {
pub name: String,
pub image: String,
pub tag: String,
pub ports: Vec<(u16, u16)>,
pub env: HashMap<String, String>,
pub volumes: Vec<VolumeMount>,
pub network: Option<String>,
pub health_check: Option<HealthCheck>,
pub auto_remove: bool,
pub memory_limit: Option<String>,
pub cpu_limit: Option<String>,
pub platform: Option<String>,
}
Expand description
Configuration for a Docker template
Fields§
§name: String
Container name
image: String
Image to use
tag: String
Image tag
ports: Vec<(u16, u16)>
Port mappings (host -> container)
env: HashMap<String, String>
Environment variables
volumes: Vec<VolumeMount>
Volume mounts
network: Option<String>
Network to connect to
health_check: Option<HealthCheck>
Health check configuration
auto_remove: bool
Whether to remove container on stop
memory_limit: Option<String>
Memory limit
cpu_limit: Option<String>
CPU limit
platform: Option<String>
Platform specification (e.g., “linux/amd64”, “linux/arm64”)
Trait Implementations§
Source§impl Clone for TemplateConfig
impl Clone for TemplateConfig
Source§fn clone(&self) -> TemplateConfig
fn clone(&self) -> TemplateConfig
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 moreAuto Trait Implementations§
impl Freeze for TemplateConfig
impl RefUnwindSafe for TemplateConfig
impl Send for TemplateConfig
impl Sync for TemplateConfig
impl Unpin for TemplateConfig
impl UnwindSafe for TemplateConfig
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