Struct k8s_openapi::v1_11::api::core::v1::VolumeMount [−][src]
pub struct VolumeMount { pub mount_path: String, pub mount_propagation: Option<String>, pub name: String, pub read_only: Option<bool>, pub sub_path: Option<String>, }
VolumeMount describes a mounting of a Volume within a container.
Fields
mount_path: String
Path within the container at which the volume should be mounted. Must not contain ':'.
mount_propagation: Option<String>
mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationHostToContainer is used. This field is beta in 1.10.
name: String
This must match the Name of a Volume.
read_only: Option<bool>
Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.
sub_path: Option<String>
Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
Trait Implementations
impl Clone for VolumeMount
[src]
impl Clone for VolumeMount
fn clone(&self) -> VolumeMount
[src]
fn clone(&self) -> VolumeMount
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for VolumeMount
[src]
impl Debug for VolumeMount
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for VolumeMount
[src]
impl Default for VolumeMount
fn default() -> VolumeMount
[src]
fn default() -> VolumeMount
Returns the "default value" for a type. Read more
impl PartialEq for VolumeMount
[src]
impl PartialEq for VolumeMount
fn eq(&self, other: &VolumeMount) -> bool
[src]
fn eq(&self, other: &VolumeMount) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &VolumeMount) -> bool
[src]
fn ne(&self, other: &VolumeMount) -> bool
This method tests for !=
.
impl<'de> Deserialize<'de> for VolumeMount
[src]
impl<'de> Deserialize<'de> for VolumeMount
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for VolumeMount
[src]
impl Serialize for VolumeMount
Auto Trait Implementations
impl Send for VolumeMount
impl Send for VolumeMount
impl Sync for VolumeMount
impl Sync for VolumeMount