Struct k8s_openapi::v1_8::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

Path within the container at which the volume should be mounted. Must not contain ':'.

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 alpha in 1.8 and can be reworked or removed in a future release.

This must match the Name of a Volume.

Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for VolumeMount
[src]

Formats the value using the given formatter. Read more

impl Default for VolumeMount
[src]

Returns the "default value" for a type. Read more

impl PartialEq for VolumeMount
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'de> Deserialize<'de> for VolumeMount
[src]

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for VolumeMount
[src]

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

impl Send for VolumeMount

impl Sync for VolumeMount