Struct k8s_openapi::api::resource::v1alpha3::DeviceAllocationConfiguration
source · pub struct DeviceAllocationConfiguration {
pub opaque: Option<OpaqueDeviceConfiguration>,
pub requests: Option<Vec<String>>,
pub source: String,
}
Expand description
DeviceAllocationConfiguration gets embedded in an AllocationResult.
Fields§
§opaque: Option<OpaqueDeviceConfiguration>
Opaque provides driver-specific configuration parameters.
requests: Option<Vec<String>>
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests.
source: String
Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim.
Trait Implementations§
source§impl Clone for DeviceAllocationConfiguration
impl Clone for DeviceAllocationConfiguration
source§fn clone(&self) -> DeviceAllocationConfiguration
fn clone(&self) -> DeviceAllocationConfiguration
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 DeepMerge for DeviceAllocationConfiguration
impl DeepMerge for DeviceAllocationConfiguration
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for DeviceAllocationConfiguration
impl Default for DeviceAllocationConfiguration
source§fn default() -> DeviceAllocationConfiguration
fn default() -> DeviceAllocationConfiguration
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceAllocationConfiguration
impl<'de> Deserialize<'de> for DeviceAllocationConfiguration
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 DeviceAllocationConfiguration
impl PartialEq for DeviceAllocationConfiguration
source§fn eq(&self, other: &DeviceAllocationConfiguration) -> bool
fn eq(&self, other: &DeviceAllocationConfiguration) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for DeviceAllocationConfiguration
Auto Trait Implementations§
impl Freeze for DeviceAllocationConfiguration
impl RefUnwindSafe for DeviceAllocationConfiguration
impl Send for DeviceAllocationConfiguration
impl Sync for DeviceAllocationConfiguration
impl Unpin for DeviceAllocationConfiguration
impl UnwindSafe for DeviceAllocationConfiguration
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
)