pub struct IoK8sApiCoreV1PersistentVolumeClaimVolumeSource {
pub claim_name: String,
pub read_only: Option<bool>,
}Expand description
PersistentVolumeClaimVolumeSource references the user’s PVC in the same namespace. 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: StringClaimName 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.
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl Clone for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
Source§fn clone(&self) -> IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
fn clone(&self) -> IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl<'de> Deserialize<'de> for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&IoK8sApiCoreV1PersistentVolumeClaimVolumeSource> for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl From<&IoK8sApiCoreV1PersistentVolumeClaimVolumeSource> for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
Source§fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimVolumeSource) -> Self
fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimVolumeSource) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl RefUnwindSafe for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl Send for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl Sync for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl Unpin for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
impl UnwindSafe for IoK8sApiCoreV1PersistentVolumeClaimVolumeSource
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