pub struct DeviceCounterConsumption {
pub counter_set: String,
pub counters: BTreeMap<String, Counter>,
}
Expand description
DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.
Fields§
§counter_set: String
CounterSet is the name of the set from which the counters defined will be consumed.
counters: BTreeMap<String, Counter>
Counters defines the counters that will be consumed by the device.
The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).
Trait Implementations§
Source§impl Clone for DeviceCounterConsumption
impl Clone for DeviceCounterConsumption
Source§fn clone(&self) -> DeviceCounterConsumption
fn clone(&self) -> DeviceCounterConsumption
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 DeviceCounterConsumption
impl Debug for DeviceCounterConsumption
Source§impl DeepMerge for DeviceCounterConsumption
impl DeepMerge for DeviceCounterConsumption
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceCounterConsumption
impl Default for DeviceCounterConsumption
Source§fn default() -> DeviceCounterConsumption
fn default() -> DeviceCounterConsumption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceCounterConsumption
impl<'de> Deserialize<'de> for DeviceCounterConsumption
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 DeviceCounterConsumption
impl PartialEq for DeviceCounterConsumption
Source§impl Serialize for DeviceCounterConsumption
impl Serialize for DeviceCounterConsumption
impl StructuralPartialEq for DeviceCounterConsumption
Auto Trait Implementations§
impl Freeze for DeviceCounterConsumption
impl RefUnwindSafe for DeviceCounterConsumption
impl Send for DeviceCounterConsumption
impl Sync for DeviceCounterConsumption
impl Unpin for DeviceCounterConsumption
impl UnwindSafe for DeviceCounterConsumption
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