Struct dockertest_server::server::ContainerConfig
source · [−]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
sourceimpl Into<Composition> for ContainerConfig
impl Into<Composition> for ContainerConfig
sourcefn into(self) -> Composition
fn into(self) -> Composition
Converts this type into the (usually inferred) input type.
Auto Trait Implementations
impl !RefUnwindSafe for ContainerConfig
impl Send for ContainerConfig
impl Sync for ContainerConfig
impl Unpin for ContainerConfig
impl !UnwindSafe for ContainerConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more