Struct k8s_openapi::api::resource::v1alpha3::ResourceClaimSpec
source · pub struct ResourceClaimSpec {
pub controller: Option<String>,
pub devices: Option<DeviceClaim>,
}
Expand description
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
Fields§
§controller: Option<String>
Controller is the name of the DRA driver that is meant to handle allocation of this claim. If empty, allocation is handled by the scheduler while scheduling a pod.
Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver.
This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
devices: Option<DeviceClaim>
Devices defines how to request devices.
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 for ResourceClaimSpec
impl PartialEq for ResourceClaimSpec
source§impl Serialize for ResourceClaimSpec
impl Serialize for ResourceClaimSpec
impl StructuralPartialEq for ResourceClaimSpec
Auto Trait Implementations§
impl Freeze for ResourceClaimSpec
impl RefUnwindSafe for ResourceClaimSpec
impl Send for ResourceClaimSpec
impl Sync for ResourceClaimSpec
impl Unpin for ResourceClaimSpec
impl UnwindSafe for ResourceClaimSpec
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
)