pub struct ContainerConfig {
pub args: Vec<String>,
pub env: HashMap<String, String>,
pub handle: String,
pub name: String,
pub source: Source,
pub version: String,
pub ports: Option<Vec<(u32, u32)>>,
pub wait: Option<Box<dyn WaitFor>>,
pub bind_mounts: HashMap<String, String>,
}
Expand description
A helper struct for creating Compositions from a set of common configuration parameters.
This type can be freely cast into a Composition. It is only intended for basic use-cases where limited control over how the Composition is configured is acceptable.
Fields§
§args: Vec<String>
§env: HashMap<String, String>
§handle: String
§name: String
§source: Source
§version: String
§ports: Option<Vec<(u32, u32)>>
§wait: Option<Box<dyn WaitFor>>
§bind_mounts: HashMap<String, String>
Trait Implementations§
Source§impl Into<Composition> for ContainerConfig
impl Into<Composition> for ContainerConfig
Source§fn into(self) -> Composition
fn into(self) -> Composition
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for ContainerConfig
impl !RefUnwindSafe for ContainerConfig
impl Send for ContainerConfig
impl Sync for ContainerConfig
impl Unpin for ContainerConfig
impl !UnwindSafe for ContainerConfig
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