pub struct BasicDevice {
pub attributes: Option<BTreeMap<String, DeviceAttribute>>,
pub capacity: Option<BTreeMap<String, Quantity>>,
}
Expand description
BasicDevice defines one device instance.
Fields§
§attributes: Option<BTreeMap<String, DeviceAttribute>>
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
The maximum number of attributes and capacities combined is 32.
capacity: Option<BTreeMap<String, Quantity>>
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
The maximum number of attributes and capacities combined is 32.
Trait Implementations§
Source§impl Clone for BasicDevice
impl Clone for BasicDevice
Source§fn clone(&self) -> BasicDevice
fn clone(&self) -> BasicDevice
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 BasicDevice
impl Debug for BasicDevice
Source§impl DeepMerge for BasicDevice
impl DeepMerge for BasicDevice
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for BasicDevice
impl Default for BasicDevice
Source§fn default() -> BasicDevice
fn default() -> BasicDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BasicDevice
impl<'de> Deserialize<'de> for BasicDevice
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 BasicDevice
impl PartialEq for BasicDevice
Source§impl Serialize for BasicDevice
impl Serialize for BasicDevice
impl StructuralPartialEq for BasicDevice
Auto Trait Implementations§
impl Freeze for BasicDevice
impl RefUnwindSafe for BasicDevice
impl Send for BasicDevice
impl Sync for BasicDevice
impl Unpin for BasicDevice
impl UnwindSafe for BasicDevice
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