pub struct DeviceSpec {
pub capabilities: Option<Vec<String>>,
pub driver: Option<String>,
pub count: Option<StringOrInt>,
pub device_ids: Option<Vec<String>>,
pub options: Option<HashMap<String, String>>,
}Expand description
Device specification.
Fields§
§capabilities: Option<Vec<String>>Device capabilities
driver: Option<String>Driver
count: Option<StringOrInt>Device count
device_ids: Option<Vec<String>>Device IDs
options: Option<HashMap<String, String>>Options
Trait Implementations§
Source§impl Clone for DeviceSpec
impl Clone for DeviceSpec
Source§fn clone(&self) -> DeviceSpec
fn clone(&self) -> DeviceSpec
Returns a duplicate 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 DeviceSpec
impl Debug for DeviceSpec
Source§impl Default for DeviceSpec
impl Default for DeviceSpec
Source§fn default() -> DeviceSpec
fn default() -> DeviceSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceSpec
impl<'de> Deserialize<'de> for DeviceSpec
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
Auto Trait Implementations§
impl Freeze for DeviceSpec
impl RefUnwindSafe for DeviceSpec
impl Send for DeviceSpec
impl Sync for DeviceSpec
impl Unpin for DeviceSpec
impl UnwindSafe for DeviceSpec
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