Struct k8s_openapi::api::core::v1::PersistentVolumeClaimVolumeSource
source · 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
This method 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