pub struct PersistentVolumeClaimVolumeSource {
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: 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>
readOnly Will force the ReadOnly setting in VolumeMounts. Default false.
Trait Implementations§
Source§impl Clone for PersistentVolumeClaimVolumeSource
impl Clone for PersistentVolumeClaimVolumeSource
Source§fn clone(&self) -> PersistentVolumeClaimVolumeSource
fn clone(&self) -> PersistentVolumeClaimVolumeSource
Returns a copy 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 DeepMerge for PersistentVolumeClaimVolumeSource
impl DeepMerge for PersistentVolumeClaimVolumeSource
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for PersistentVolumeClaimVolumeSource
impl Default for PersistentVolumeClaimVolumeSource
Source§fn default() -> PersistentVolumeClaimVolumeSource
fn default() -> PersistentVolumeClaimVolumeSource
Returns the “default value” for a type. Read more
Source§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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PersistentVolumeClaimVolumeSource
impl PartialEq for PersistentVolumeClaimVolumeSource
Source§fn eq(&self, other: &PersistentVolumeClaimVolumeSource) -> bool
fn eq(&self, other: &PersistentVolumeClaimVolumeSource) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PersistentVolumeClaimVolumeSource
Auto Trait Implementations§
impl Freeze for PersistentVolumeClaimVolumeSource
impl RefUnwindSafe for PersistentVolumeClaimVolumeSource
impl Send for PersistentVolumeClaimVolumeSource
impl Sync for PersistentVolumeClaimVolumeSource
impl Unpin for PersistentVolumeClaimVolumeSource
impl UnwindSafe for PersistentVolumeClaimVolumeSource
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