Struct docker_compose::v2::Network [] [src]

pub struct Network {
    pub driver: Option<RawOr<String>>,
    pub driver_opts: BTreeMap<StringRawOr<String>>,
    pub external: Option<ExternalNetwork>,
    // some fields omitted
}

A service which will be managed by docker-compose.

Fields

The name of the network driver to use.

Options to pass to the network driver.

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]

Returns the "default value" for a type. Read more

impl Eq for Network
[src]

impl PartialEq for Network
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Network
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Network
[src]

Formats the value using the given formatter.

impl InterpolateAll for Network
[src]

Recursive merge all fields in the structure.

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.

Given this value and an override value, merge the override value into this one, producing a new value. Read more