pub struct MountPoint {
    pub destination: Option<String>,
    pub driver: Option<String>,
    pub mode: Option<String>,
    pub name: Option<String>,
    pub propagation: Option<String>,
    pub rw: Option<bool>,
    pub source: Option<String>,
    pub type_: Option<String>,
}
Expand description

MountPoint represents a mount point configuration inside the container. This is used for reporting the mountpoints in use by a container.

Fields

destination: Option<String>

Destination is the path relative to the container root (/) where the Source is mounted inside the container.

driver: Option<String>

Driver is the volume driver used to create the volume (if it is a volume).

mode: Option<String>

Mode is a comma separated list of options supplied by the user when creating the bind/volume mount.

The default is platform-specific ("z" on Linux, empty on Windows).

name: Option<String>

Name is the name reference to the underlying data defined by Source e.g., the volume name.

propagation: Option<String>

Propagation describes how mounts are propagated from the host into the mount point, and vice-versa. Refer to the Linux kernel documentation for details. This field is not used on Windows.

rw: Option<bool>

Whether the mount is mounted writable (read-write).

source: Option<String>

Source location of the mount.

For volumes, this contains the storage location of the volume (within /var/lib/docker/volumes/). For bind-mounts, and npipe, this contains the source (host) part of the bind-mount. For tmpfs mount points, this field is empty.

type_: Option<String>

The mount type:

  • bind a mount of a file or directory from the host into the container.
  • volume a docker volume with the given Name.
  • tmpfs a tmpfs.
  • npipe a named pipe from the host into the container.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more