Struct k8s_openapi::api::resource::v1alpha2::ResourceClaimParameters
source · pub struct ResourceClaimParameters {
pub driver_requests: Option<Vec<DriverRequests>>,
pub generated_from: Option<ResourceClaimParametersReference>,
pub metadata: ObjectMeta,
pub shareable: Option<bool>,
}
Expand description
ResourceClaimParameters defines resource requests for a ResourceClaim in an in-tree format understood by Kubernetes.
Fields§
§driver_requests: Option<Vec<DriverRequests>>
DriverRequests describes all resources that are needed for the allocated claim. A single claim may use resources coming from different drivers. For each driver, this array has at most one entry which then may have one or more per-driver requests.
May be empty, in which case the claim can always be allocated.
generated_from: Option<ResourceClaimParametersReference>
If this object was created from some other resource, then this links back to that resource. This field is used to find the in-tree representation of the claim parameters when the parameter reference of the claim refers to some unknown type.
metadata: ObjectMeta
Standard object metadata
Shareable indicates whether the allocated claim is meant to be shareable by multiple consumers at the same time.
Trait Implementations§
source§impl Clone for ResourceClaimParameters
impl Clone for ResourceClaimParameters
source§fn clone(&self) -> ResourceClaimParameters
fn clone(&self) -> ResourceClaimParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceClaimParameters
impl Debug for ResourceClaimParameters
source§impl DeepMerge for ResourceClaimParameters
impl DeepMerge for ResourceClaimParameters
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for ResourceClaimParameters
impl Default for ResourceClaimParameters
source§fn default() -> ResourceClaimParameters
fn default() -> ResourceClaimParameters
source§impl<'de> Deserialize<'de> for ResourceClaimParameters
impl<'de> Deserialize<'de> for ResourceClaimParameters
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>,
source§impl Metadata for ResourceClaimParameters
impl Metadata for ResourceClaimParameters
source§impl PartialEq for ResourceClaimParameters
impl PartialEq for ResourceClaimParameters
source§fn eq(&self, other: &ResourceClaimParameters) -> bool
fn eq(&self, other: &ResourceClaimParameters) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Resource for ResourceClaimParameters
impl Resource for ResourceClaimParameters
source§const API_VERSION: &'static str = "resource.k8s.io/v1alpha2"
const API_VERSION: &'static str = "resource.k8s.io/v1alpha2"
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read more