pub struct DeviceConfig {
pub file: String,
pub manufacturer: String,
pub manufacturer_id: u16,
pub label: String,
pub description: String,
pub devices: Vec<(u16, u16)>,
pub firmware: (String, String),
pub associations: BTreeMap<u8, AssociationConfig>,
pub params: Vec<ParamConfig>,
pub compat: Option<Value>,
pub endpoints: Option<Value>,
pub metadata: Option<Value>,
}Expand description
A device file evaluated for one device.
Fields§
§file: StringThe file it came from.
manufacturer: StringManufacturer name.
manufacturer_id: u16Manufacturer id.
label: StringProduct label.
description: StringProduct description.
devices: Vec<(u16, u16)>Product type and id pairs.
firmware: (String, String)Firmware range.
associations: BTreeMap<u8, AssociationConfig>Association groups.
params: Vec<ParamConfig>Parameters, in file order, keyed as in the file.
compat: Option<Value>Compatibility flags (as in the file, conditions applied).
endpoints: Option<Value>Endpoint definitions (conditions applied).
metadata: Option<Value>Inclusion, exclusion and reset instructions (conditions applied).
Implementations§
Trait Implementations§
Source§impl Clone for DeviceConfig
impl Clone for DeviceConfig
Source§impl Debug for DeviceConfig
impl Debug for DeviceConfig
Source§impl PartialEq for DeviceConfig
impl PartialEq for DeviceConfig
impl StructuralPartialEq for DeviceConfig
Auto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnsafeUnpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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