pub struct ClusterWalStoragePvcTemplateDataSource {
pub api_group: Option<String>,
pub kind: String,
pub name: String,
}Expand description
dataSource field can be used to specify either:
- An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot)
- An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. If the namespace is specified, then dataSourceRef will not be copied to dataSource.
Fields§
§api_group: Option<String>APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind: StringKind is the type of resource being referenced
name: StringName is the name of resource being referenced
Trait Implementations§
Source§impl Clone for ClusterWalStoragePvcTemplateDataSource
impl Clone for ClusterWalStoragePvcTemplateDataSource
Source§fn clone(&self) -> ClusterWalStoragePvcTemplateDataSource
fn clone(&self) -> ClusterWalStoragePvcTemplateDataSource
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 Default for ClusterWalStoragePvcTemplateDataSource
impl Default for ClusterWalStoragePvcTemplateDataSource
Source§fn default() -> ClusterWalStoragePvcTemplateDataSource
fn default() -> ClusterWalStoragePvcTemplateDataSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClusterWalStoragePvcTemplateDataSource
impl<'de> Deserialize<'de> for ClusterWalStoragePvcTemplateDataSource
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 ClusterWalStoragePvcTemplateDataSource
impl PartialEq for ClusterWalStoragePvcTemplateDataSource
Source§fn eq(&self, other: &ClusterWalStoragePvcTemplateDataSource) -> bool
fn eq(&self, other: &ClusterWalStoragePvcTemplateDataSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClusterWalStoragePvcTemplateDataSource
Auto Trait Implementations§
impl Freeze for ClusterWalStoragePvcTemplateDataSource
impl RefUnwindSafe for ClusterWalStoragePvcTemplateDataSource
impl Send for ClusterWalStoragePvcTemplateDataSource
impl Sync for ClusterWalStoragePvcTemplateDataSource
impl Unpin for ClusterWalStoragePvcTemplateDataSource
impl UnwindSafe for ClusterWalStoragePvcTemplateDataSource
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