Struct k8s_openapi::api::resource::v1alpha2::ResourceClaim
source · pub struct ResourceClaim {
pub metadata: ObjectMeta,
pub spec: ResourceClaimSpec,
pub status: Option<ResourceClaimStatus>,
}
Expand description
ResourceClaim describes which resources are needed by a resource consumer. Its status tracks whether the resource has been allocated and what the resulting attributes are.
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
Fields§
§metadata: ObjectMeta
Standard object metadata
spec: ResourceClaimSpec
Spec describes the desired attributes of a resource that then needs to be allocated. It can only be set once when creating the ResourceClaim.
status: Option<ResourceClaimStatus>
Status describes whether the resource is available and with which attributes.
Trait Implementations§
source§impl Clone for ResourceClaim
impl Clone for ResourceClaim
source§fn clone(&self) -> ResourceClaim
fn clone(&self) -> ResourceClaim
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 ResourceClaim
impl Debug for ResourceClaim
source§impl DeepMerge for ResourceClaim
impl DeepMerge for ResourceClaim
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ResourceClaim
impl Default for ResourceClaim
source§fn default() -> ResourceClaim
fn default() -> ResourceClaim
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourceClaim
impl<'de> Deserialize<'de> for ResourceClaim
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 ListableResource for ResourceClaim
impl ListableResource for ResourceClaim
source§impl Metadata for ResourceClaim
impl Metadata for ResourceClaim
source§impl PartialEq for ResourceClaim
impl PartialEq for ResourceClaim
source§fn eq(&self, other: &ResourceClaim) -> bool
fn eq(&self, other: &ResourceClaim) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Resource for ResourceClaim
impl Resource for ResourceClaim
source§const API_VERSION: &'static str = "resource.k8s.io/v1alpha2"
const API_VERSION: &'static str = "resource.k8s.io/v1alpha2"
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 = "resourceclaims"
const URL_PATH_SEGMENT: &'static str = "resourceclaims"
The URL path segment used to construct URLs related to this resource. Read more
§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 ResourceClaim
impl Serialize for ResourceClaim
impl StructuralPartialEq for ResourceClaim
Auto Trait Implementations§
impl RefUnwindSafe for ResourceClaim
impl Send for ResourceClaim
impl Sync for ResourceClaim
impl Unpin for ResourceClaim
impl UnwindSafe for ResourceClaim
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