Struct bollard::models::MountPoint
source · pub struct MountPoint {
pub typ: Option<MountPointTypeEnum>,
pub name: Option<String>,
pub source: Option<String>,
pub destination: Option<String>,
pub driver: Option<String>,
pub mode: Option<String>,
pub rw: Option<bool>,
pub propagation: 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§
§typ: Option<MountPointTypeEnum>
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.
name: Option<String>
Name is the name reference to the underlying data defined by Source
e.g., the volume name.
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.
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).
rw: Option<bool>
Whether the mount is mounted writable (read-write).
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.
Trait Implementations§
source§impl Clone for MountPoint
impl Clone for MountPoint
source§fn clone(&self) -> MountPoint
fn clone(&self) -> MountPoint
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MountPoint
impl Debug for MountPoint
source§impl Default for MountPoint
impl Default for MountPoint
source§fn default() -> MountPoint
fn default() -> MountPoint
source§impl<'de> Deserialize<'de> for MountPoint
impl<'de> Deserialize<'de> for MountPoint
source§fn 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>,
source§impl PartialEq for MountPoint
impl PartialEq for MountPoint
source§impl Serialize for MountPoint
impl Serialize for MountPoint
source§fn 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,
impl StructuralPartialEq for MountPoint
Auto Trait Implementations§
impl Freeze for MountPoint
impl RefUnwindSafe for MountPoint
impl Send for MountPoint
impl Sync for MountPoint
impl Unpin for MountPoint
impl UnwindSafe for MountPoint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)