Struct k8s_openapi::api::resource::v1alpha1::ResourceClaimTemplateSpec
source · pub struct ResourceClaimTemplateSpec {
pub metadata: Option<ObjectMeta>,
pub spec: ResourceClaimSpec,
}
Expand description
ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
Fields§
§metadata: Option<ObjectMeta>
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: ResourceClaimSpec
Spec for the ResourceClaim. The entire content is copied unchanged into the ResourceClaim that gets created from this template. The same fields as in a ResourceClaim are also valid here.
Trait Implementations§
source§impl Clone for ResourceClaimTemplateSpec
impl Clone for ResourceClaimTemplateSpec
source§fn clone(&self) -> ResourceClaimTemplateSpec
fn clone(&self) -> ResourceClaimTemplateSpec
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 Debug for ResourceClaimTemplateSpec
impl Debug for ResourceClaimTemplateSpec
source§impl DeepMerge for ResourceClaimTemplateSpec
impl DeepMerge for ResourceClaimTemplateSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ResourceClaimTemplateSpec
impl Default for ResourceClaimTemplateSpec
source§fn default() -> ResourceClaimTemplateSpec
fn default() -> ResourceClaimTemplateSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourceClaimTemplateSpec
impl<'de> Deserialize<'de> for ResourceClaimTemplateSpec
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<ResourceClaimTemplateSpec> for ResourceClaimTemplateSpec
impl PartialEq<ResourceClaimTemplateSpec> for ResourceClaimTemplateSpec
source§fn eq(&self, other: &ResourceClaimTemplateSpec) -> bool
fn eq(&self, other: &ResourceClaimTemplateSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.