Struct docker_api::models::MountPoint
source · [−]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 givenName
.tmpfs
atmpfs
.npipe
a named pipe from the host into the container.
Trait Implementations
sourceimpl Clone for MountPoint
impl Clone for MountPoint
sourcefn clone(&self) -> MountPoint
fn clone(&self) -> MountPoint
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MountPoint
impl Debug for MountPoint
sourceimpl<'de> Deserialize<'de> for MountPoint
impl<'de> Deserialize<'de> for MountPoint
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<MountPoint, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<MountPoint, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<MountPoint> for MountPoint
impl PartialEq<MountPoint> for MountPoint
sourcefn eq(&self, other: &MountPoint) -> bool
fn eq(&self, other: &MountPoint) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for MountPoint
impl Serialize for MountPoint
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MountPoint
Auto Trait Implementations
impl RefUnwindSafe for MountPoint
impl Send for MountPoint
impl Sync for MountPoint
impl Unpin for MountPoint
impl UnwindSafe for MountPoint
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more