Struct compose_yml::v2::VolumeMount [] [src]

pub struct VolumeMount {
    pub host: Option<HostVolume>,
    pub container: String,
    pub permissions: VolumePermissions,
    // some fields omitted
}

A volume associated with a service.

Fields

If this volume is external to the container, where should we find it?

Where should we mount this volume in the container? This must be an absolute path. This is a string, because on Windows, it will use a different path representation than the host OS.

What should the permissions of this volume be in the container?

Methods

impl VolumeMount
[src]

[src]

Map a host path to a container path.

use compose_yml::v2 as dc;
dc::VolumeMount::host("./src", "/app");

[src]

Map a named volume to a container path.

use compose_yml::v2 as dc;
dc::VolumeMount::named("pgvolume", "/app");

[src]

An anonymous persistent volume which will remain associated with this service when it is recreated.

Trait Implementations

impl Debug for VolumeMount
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for VolumeMount
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

impl Display for VolumeMount
[src]

[src]

Formats the value using the given formatter. Read more

impl FromStr for VolumeMount
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

Auto Trait Implementations

impl Send for VolumeMount

impl Sync for VolumeMount