Struct compose_yml::v2::Volume [] [src]

pub struct Volume {
    pub driver: Option<RawOr<String>>,
    pub driver_opts: BTreeMap<String, RawOr<String>>,
    pub external: Option<bool>,
    pub labels: BTreeMap<String, RawOr<String>>,
    // some fields omitted
}

Where can we find the volume we want to map into a container?

Fields

The name of the Docker volume driver to use. Defaults to "local".

Key-value options to pass to the volume driver.

TODO LOW: We probably shouldn't allow the "list" variant here, but we're lazy and we want the reset of the machinery provided by deserialize_map_or_key_value_list.

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

If this is true, then the volume was created outside of docker-compose. This option is mutually exclusive with the driver options.

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

Trait Implementations

impl Default for Volume
[src]

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

impl Eq for Volume
[src]

impl PartialEq for Volume
[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 Volume
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Volume
[src]

Formats the value using the given formatter.

impl InterpolateAll for Volume
[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 Volume
[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