pub struct ResourceClaimTemplate {
pub metadata: ObjectMeta,
pub spec: ResourceClaimTemplateSpec,
}
Expand description
ResourceClaimTemplate is used to produce ResourceClaim objects.
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
Fields§
§metadata: ObjectMeta
Standard object metadata
spec: ResourceClaimTemplateSpec
Describes the ResourceClaim that is to be generated.
This field is immutable. A ResourceClaim will get created by the control plane for a Pod when needed and then not get updated anymore.
Trait Implementations§
Source§impl Clone for ResourceClaimTemplate
impl Clone for ResourceClaimTemplate
Source§fn clone(&self) -> ResourceClaimTemplate
fn clone(&self) -> ResourceClaimTemplate
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 ResourceClaimTemplate
impl Debug for ResourceClaimTemplate
Source§impl DeepMerge for ResourceClaimTemplate
impl DeepMerge for ResourceClaimTemplate
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ResourceClaimTemplate
impl Default for ResourceClaimTemplate
Source§fn default() -> ResourceClaimTemplate
fn default() -> ResourceClaimTemplate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceClaimTemplate
impl<'de> Deserialize<'de> for ResourceClaimTemplate
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 Metadata for ResourceClaimTemplate
impl Metadata for ResourceClaimTemplate
Source§impl PartialEq for ResourceClaimTemplate
impl PartialEq for ResourceClaimTemplate
Source§impl Resource for ResourceClaimTemplate
impl Resource for ResourceClaimTemplate
Source§const API_VERSION: &'static str = "resource.k8s.io/v1beta1"
const API_VERSION: &'static str = "resource.k8s.io/v1beta1"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moreSource§const GROUP: &'static str = "resource.k8s.io"
const GROUP: &'static str = "resource.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
Source§const URL_PATH_SEGMENT: &'static str = "resourceclaimtemplates"
const URL_PATH_SEGMENT: &'static str = "resourceclaimtemplates"
The URL path segment used to construct URLs related to this resource. Read more
Source§type Scope = NamespaceResourceScope
type Scope = NamespaceResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
Source§impl Serialize for ResourceClaimTemplate
impl Serialize for ResourceClaimTemplate
impl StructuralPartialEq for ResourceClaimTemplate
Auto Trait Implementations§
impl Freeze for ResourceClaimTemplate
impl RefUnwindSafe for ResourceClaimTemplate
impl Send for ResourceClaimTemplate
impl Sync for ResourceClaimTemplate
impl Unpin for ResourceClaimTemplate
impl UnwindSafe for ResourceClaimTemplate
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