pub struct IoK8sApiCoreV1PersistentVolumeClaimTemplate {
pub metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>,
pub spec: IoK8sApiCoreV1PersistentVolumeClaimSpec,
}Expand description
PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
Fields§
§metadata: Option<IoK8sApimachineryPkgApisMetaV1ObjectMeta>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: IoK8sApiCoreV1PersistentVolumeClaimSpecThe 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 IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl Clone for IoK8sApiCoreV1PersistentVolumeClaimTemplate
Source§fn clone(&self) -> IoK8sApiCoreV1PersistentVolumeClaimTemplate
fn clone(&self) -> IoK8sApiCoreV1PersistentVolumeClaimTemplate
Returns a duplicate 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<'de> Deserialize<'de> for IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl<'de> Deserialize<'de> for IoK8sApiCoreV1PersistentVolumeClaimTemplate
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 From<&IoK8sApiCoreV1PersistentVolumeClaimTemplate> for IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl From<&IoK8sApiCoreV1PersistentVolumeClaimTemplate> for IoK8sApiCoreV1PersistentVolumeClaimTemplate
Source§fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimTemplate) -> Self
fn from(value: &IoK8sApiCoreV1PersistentVolumeClaimTemplate) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl RefUnwindSafe for IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl Send for IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl Sync for IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl Unpin for IoK8sApiCoreV1PersistentVolumeClaimTemplate
impl UnwindSafe for IoK8sApiCoreV1PersistentVolumeClaimTemplate
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