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 JsonSchema for ResourceClaim
impl JsonSchema for ResourceClaim
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§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/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
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
)