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