pub struct VolumeMount {
pub mount_path: Option<String>,
pub mount_propagation: Option<String>,
pub name: Option<String>,
pub read_only: Option<bool>,
pub sub_path: Option<String>,
pub sub_path_expr: Option<String>,
}Fields§
§mount_path: Option<String>Path within the container at which the volume should be mounted. Must not contain ‘:’.
mount_propagation: Option<String>+enum
name: Option<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. +optional
sub_path: Option<String>Path within the volume from which the container’s volume should be mounted. Defaults to "" (volume’s root). +optional
sub_path_expr: Option<String>Expanded path within the volume from which the container’s volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container’s environment. Defaults to "" (volume’s root). SubPathExpr and SubPath are mutually exclusive. +optional
Implementations§
Source§impl VolumeMount
impl VolumeMount
pub fn new() -> VolumeMount
Trait Implementations§
Source§impl Clone for VolumeMount
impl Clone for VolumeMount
Source§fn clone(&self) -> VolumeMount
fn clone(&self) -> VolumeMount
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl FromStr for VolumeMount
Converts Query Parameters representation (style=form, explode=false) to a VolumeMount value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for VolumeMount
Converts Query Parameters representation (style=form, explode=false) to a VolumeMount value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for VolumeMount
impl PartialEq for VolumeMount
Source§impl Serialize for VolumeMount
impl Serialize for VolumeMount
Source§impl ToString for VolumeMount
Converts the VolumeMount value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for VolumeMount
Converts the VolumeMount value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer