pub struct PersistentVolumeClaimVolumeSource {
pub claim_name: Option<String>,
pub read_only: Option<bool>,
}Expand description
This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).
Fields§
§claim_name: Option<String>ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims
read_only: Option<bool>Will force the ReadOnly setting in VolumeMounts. Default false. +optional
Implementations§
Trait Implementations§
Source§impl Clone for PersistentVolumeClaimVolumeSource
impl Clone for PersistentVolumeClaimVolumeSource
Source§fn clone(&self) -> PersistentVolumeClaimVolumeSource
fn clone(&self) -> PersistentVolumeClaimVolumeSource
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for PersistentVolumeClaimVolumeSource
impl<'de> Deserialize<'de> for PersistentVolumeClaimVolumeSource
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 PersistentVolumeClaimVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a PersistentVolumeClaimVolumeSource value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for PersistentVolumeClaimVolumeSource
Converts Query Parameters representation (style=form, explode=false) to a PersistentVolumeClaimVolumeSource value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for PersistentVolumeClaimVolumeSource
impl PartialEq for PersistentVolumeClaimVolumeSource
Source§fn eq(&self, other: &PersistentVolumeClaimVolumeSource) -> bool
fn eq(&self, other: &PersistentVolumeClaimVolumeSource) -> bool
self and other values to be equal, and is used by ==.Source§impl ToString for PersistentVolumeClaimVolumeSource
Converts the PersistentVolumeClaimVolumeSource 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 PersistentVolumeClaimVolumeSource
Converts the PersistentVolumeClaimVolumeSource 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