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
driver: Option<RawOr<String>>
The name of the Docker volume driver to use. Defaults to
"local"
.
driver_opts: BTreeMap<String, RawOr<String>>
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.
external: Option<bool>
If this is true, then the volume was created outside of
docker-compose
. This option is mutually exclusive with the
driver
options.
labels: BTreeMap<String, RawOr<String>>
Docker labels for this volume, specifying various sorts of custom metadata.
Trait Implementations
impl Debug for Volume
[src]
impl Clone for Volume
[src]
fn clone(&self) -> Volume
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Volume
[src]
fn eq(&self, __arg_0: &Volume) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Volume) -> bool
[src]
This method tests for !=
.
impl Eq for Volume
[src]
impl Default for Volume
[src]
impl InterpolateAll for Volume
[src]
Recursive merge all fields in the structure.
fn interpolate_all(&mut self) -> Result<()>
[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 Volume
[src]
Recursive merge all fields in the structure.
fn merge_override(&self, ovr: &Self) -> Self
[src]
Given this value and an override value, merge the override value into this one, producing a new value. Read more