Struct k8s_openapi::api::resource::v1alpha3::DeviceClaim
source · pub struct DeviceClaim {
pub config: Option<Vec<DeviceClaimConfiguration>>,
pub constraints: Option<Vec<DeviceConstraint>>,
pub requests: Option<Vec<DeviceRequest>>,
}
Expand description
DeviceClaim defines how to request devices with a ResourceClaim.
Fields§
§config: Option<Vec<DeviceClaimConfiguration>>
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim.
constraints: Option<Vec<DeviceConstraint>>
These constraints must be satisfied by the set of devices that get allocated for the claim.
requests: Option<Vec<DeviceRequest>>
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated.
Trait Implementations§
source§impl Clone for DeviceClaim
impl Clone for DeviceClaim
source§fn clone(&self) -> DeviceClaim
fn clone(&self) -> DeviceClaim
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 DeviceClaim
impl Debug for DeviceClaim
source§impl DeepMerge for DeviceClaim
impl DeepMerge for DeviceClaim
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for DeviceClaim
impl Default for DeviceClaim
source§fn default() -> DeviceClaim
fn default() -> DeviceClaim
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceClaim
impl<'de> Deserialize<'de> for DeviceClaim
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 DeviceClaim
impl PartialEq for DeviceClaim
source§impl Serialize for DeviceClaim
impl Serialize for DeviceClaim
impl StructuralPartialEq for DeviceClaim
Auto Trait Implementations§
impl Freeze for DeviceClaim
impl RefUnwindSafe for DeviceClaim
impl Send for DeviceClaim
impl Sync for DeviceClaim
impl Unpin for DeviceClaim
impl UnwindSafe for DeviceClaim
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
)