pub struct PersistentVolumeClaimTemplate {
pub metadata: Option<ObjectMeta>,
pub spec: PersistentVolumeClaimSpec,
}
Expand description
PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
Fields§
§metadata: Option<ObjectMeta>
May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
spec: PersistentVolumeClaimSpec
The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.
Trait Implementations§
Source§impl Clone for PersistentVolumeClaimTemplate
impl Clone for PersistentVolumeClaimTemplate
Source§fn clone(&self) -> PersistentVolumeClaimTemplate
fn clone(&self) -> PersistentVolumeClaimTemplate
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 PersistentVolumeClaimTemplate
impl DeepMerge for PersistentVolumeClaimTemplate
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for PersistentVolumeClaimTemplate
impl Default for PersistentVolumeClaimTemplate
Source§fn default() -> PersistentVolumeClaimTemplate
fn default() -> PersistentVolumeClaimTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PersistentVolumeClaimTemplate
impl<'de> Deserialize<'de> for PersistentVolumeClaimTemplate
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 PersistentVolumeClaimTemplate
impl PartialEq for PersistentVolumeClaimTemplate
Source§fn eq(&self, other: &PersistentVolumeClaimTemplate) -> bool
fn eq(&self, other: &PersistentVolumeClaimTemplate) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for PersistentVolumeClaimTemplate
Auto Trait Implementations§
impl Freeze for PersistentVolumeClaimTemplate
impl RefUnwindSafe for PersistentVolumeClaimTemplate
impl Send for PersistentVolumeClaimTemplate
impl Sync for PersistentVolumeClaimTemplate
impl Unpin for PersistentVolumeClaimTemplate
impl UnwindSafe for PersistentVolumeClaimTemplate
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