Struct k8s_openapi::api::core::v1::PersistentVolumeClaimTemplate
source · 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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PersistentVolumeClaimTemplate
Auto Trait Implementations§
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