Struct k8s_openapi::api::resource::v1alpha3::ResourceClaim
source · pub struct ResourceClaim {
pub metadata: ObjectMeta,
pub spec: ResourceClaimSpec,
pub status: Option<ResourceClaimStatus>,
}
Expand description
ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.
This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.
Fields§
§metadata: ObjectMeta
Standard object metadata
spec: ResourceClaimSpec
Spec describes what is being requested and how to configure it. The spec is immutable.
status: Option<ResourceClaimStatus>
Status describes whether the claim is ready to use and what has been allocated.
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§impl Resource for ResourceClaim
impl Resource for ResourceClaim
source§const API_VERSION: &'static str = "resource.k8s.io/v1alpha3"
const API_VERSION: &'static str = "resource.k8s.io/v1alpha3"
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
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 ResourceClaim
impl Serialize for ResourceClaim
impl StructuralPartialEq for ResourceClaim
Auto Trait Implementations§
impl Freeze for ResourceClaim
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)