pub struct VolumeMount {
pub mount_type: MountType,
pub host_path: Option<String>,
pub volume_name: Option<String>,
pub container_path: String,
pub read_only: bool,
pub driver: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub consistency: Option<Consistency>,
pub tmpfs_size: Option<u64>,
pub tmpfs_mode: Option<u32>,
}Expand description
卷挂载
Fields§
§mount_type: MountType挂载类型
host_path: Option<String>主机路径(对于绑定挂载)
volume_name: Option<String>卷名称(对于卷挂载)
container_path: String容器路径
read_only: bool读写模式
driver: Option<String>驱动名称(对于卷挂载)
labels: Option<HashMap<String, String>>卷标签(对于卷挂载)
consistency: Option<Consistency>绑定挂载一致性选项
tmpfs_size: Option<u64>tmpfs 大小(对于 tmpfs 挂载)
tmpfs_mode: Option<u32>tmpfs 模式(对于 tmpfs 挂载)
Trait Implementations§
Source§impl Clone for VolumeMount
impl Clone for VolumeMount
Source§fn clone(&self) -> VolumeMount
fn clone(&self) -> VolumeMount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VolumeMount
impl Debug for VolumeMount
Source§impl<'de> Deserialize<'de> for VolumeMount
impl<'de> Deserialize<'de> for VolumeMount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VolumeMount
impl RefUnwindSafe for VolumeMount
impl Send for VolumeMount
impl Sync for VolumeMount
impl Unpin for VolumeMount
impl UnsafeUnpin for VolumeMount
impl UnwindSafe for VolumeMount
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
Mutably borrows from an owned value. Read more