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: Stringname: Stringsource: Sourceversion: Stringports: Option<Vec<(u32, u32)>>wait: Option<Box<dyn WaitFor>>bind_mounts: HashMap<String, String>

Trait Implementations

Converts this type into the (usually inferred) input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more