Struct k8s_openapi::api::resource::v1alpha1::ResourceClaimSpec
source · pub struct ResourceClaimSpec {
pub allocation_mode: Option<String>,
pub parameters_ref: Option<ResourceClaimParametersReference>,
pub resource_class_name: String,
}
Expand description
ResourceClaimSpec defines how a resource is to be allocated.
Fields§
§allocation_mode: Option<String>
Allocation can start immediately or when a Pod wants to use the resource. “WaitForFirstConsumer” is the default.
parameters_ref: Option<ResourceClaimParametersReference>
ParametersRef references a separate object with arbitrary parameters that will be used by the driver when allocating a resource for the claim.
The object must be in the same namespace as the ResourceClaim.
resource_class_name: String
ResourceClassName references the driver and additional parameters via the name of a ResourceClass that was created as part of the driver deployment.
Trait Implementations§
source§impl Clone for ResourceClaimSpec
impl Clone for ResourceClaimSpec
source§fn clone(&self) -> ResourceClaimSpec
fn clone(&self) -> ResourceClaimSpec
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 ResourceClaimSpec
impl Debug for ResourceClaimSpec
source§impl DeepMerge for ResourceClaimSpec
impl DeepMerge for ResourceClaimSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ResourceClaimSpec
impl Default for ResourceClaimSpec
source§fn default() -> ResourceClaimSpec
fn default() -> ResourceClaimSpec
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ResourceClaimSpec
impl<'de> Deserialize<'de> for ResourceClaimSpec
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 PartialEq<ResourceClaimSpec> for ResourceClaimSpec
impl PartialEq<ResourceClaimSpec> for ResourceClaimSpec
source§fn eq(&self, other: &ResourceClaimSpec) -> bool
fn eq(&self, other: &ResourceClaimSpec) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.