pub struct VolumeMount {
pub source: String,
pub target: String,
pub read_only: bool,
pub kind: String,
}Expand description
A storage mount.
Fields§
§source: StringHost path (Docker) or PVC/ConfigMap name (Kubernetes).
target: StringMount path inside the workload.
read_only: boolWhether the mount is read-only.
kind: StringMount kind: "bind", "volume", "configmap", "secret", "pvc" ("bind" when empty).
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 (const: unstable) · 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 Default for VolumeMount
impl Default for VolumeMount
Source§fn default() -> VolumeMount
fn default() -> VolumeMount
Returns the “default value” for a type. Read more
impl Eq for VolumeMount
Source§impl PartialEq for VolumeMount
impl PartialEq for VolumeMount
impl StructuralPartialEq for VolumeMount
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