Struct docker_compose::v2::Network
[−]
[src]
pub struct Network { pub driver: Option<RawOr<String>>, pub driver_opts: BTreeMap<String, RawOr<String>>, pub external: Option<ExternalNetwork>, // some fields omitted }
A service which will be managed by docker-compose
.
Fields
driver: Option<RawOr<String>>
The name of the network driver to use.
driver_opts: BTreeMap<String, RawOr<String>>
Options to pass to the network driver.
external: Option<ExternalNetwork>
Mutually-exclusive with all other options.
TODO LOW: We could represent Network
and ExternalNetwork
as
some kind of enum, but that might break in the future if things get
more complicated. For now, we're sticking close to the file
format even if it makes things a bit less idiomatic in Rust.
Trait Implementations
impl Default for Network
[src]
impl Eq for Network
[src]
impl PartialEq for Network
[src]
fn eq(&self, __arg_0: &Network) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Network) -> bool
This method tests for !=
.
impl Clone for Network
[src]
fn clone(&self) -> Network
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Network
[src]
impl InterpolateAll for Network
[src]
Recursive merge all fields in the structure.
fn interpolate_all(&mut self) -> Result<(), InterpolationError>
Recursively walk over this type, interpolating all RawOr
values containing references to the environment. The default implementation leaves a value unchanged. Read more
impl MergeOverride for Network
[src]
Recursive merge all fields in the structure.
fn merge_override(&self, ovr: &Self) -> Self
Given this value and an override value, merge the override value into this one, producing a new value. Read more