Struct compose_yml::v2::Network [] [src]

pub struct Network {
    pub driver: Option<RawOr<String>>,
    pub driver_opts: BTreeMap<String, RawOr<String>>,
    pub external: Option<ExternalNetwork>,
    pub internal: bool,
    pub enable_ipv6: bool,
    pub labels: BTreeMap<String, RawOr<String>>,
    // 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.

TODO LOW: Clear on merge if driver changes, like we do for Logging options.

Create a network which has no access to the outside world.

Enable IPv6 for this network.

Docker labels for this volume, specifying various sorts of custom metadata.

Trait Implementations

impl Debug for Network
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Network
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Network
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Network
[src]

impl Default for Network
[src]

[src]

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

impl InterpolateAll for Network
[src]

Recursive merge all fields in the structure.

[src]

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.

[src]

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

Auto Trait Implementations

impl Send for Network

impl Sync for Network