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: PersistentVolumeClaimSpecThe 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 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<'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
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 UnsafeUnpin 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