Struct k8s_openapi::api::resource::v1alpha3::AllocationResult
source · pub struct AllocationResult {
pub controller: Option<String>,
pub devices: Option<DeviceAllocationResult>,
pub node_selector: Option<NodeSelector>,
}
Expand description
AllocationResult contains attributes of an allocated resource.
Fields§
§controller: Option<String>
Controller is the name of the DRA driver which handled the allocation. That driver is also responsible for deallocating the claim. It is empty when the claim can be deallocated without involving a driver.
A driver may allocate devices provided by other drivers, so this driver name here can be different from the driver names listed for the results.
This is an alpha field and requires enabling the DRAControlPlaneController feature gate.
devices: Option<DeviceAllocationResult>
Devices is the result of allocating devices.
node_selector: Option<NodeSelector>
NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
Trait Implementations§
source§impl Clone for AllocationResult
impl Clone for AllocationResult
source§fn clone(&self) -> AllocationResult
fn clone(&self) -> AllocationResult
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 AllocationResult
impl Debug for AllocationResult
source§impl DeepMerge for AllocationResult
impl DeepMerge for AllocationResult
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for AllocationResult
impl Default for AllocationResult
source§fn default() -> AllocationResult
fn default() -> AllocationResult
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AllocationResult
impl<'de> Deserialize<'de> for AllocationResult
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 AllocationResult
impl PartialEq for AllocationResult
source§impl Serialize for AllocationResult
impl Serialize for AllocationResult
impl StructuralPartialEq for AllocationResult
Auto Trait Implementations§
impl Freeze for AllocationResult
impl RefUnwindSafe for AllocationResult
impl Send for AllocationResult
impl Sync for AllocationResult
impl Unpin for AllocationResult
impl UnwindSafe for AllocationResult
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
)