pub struct SensorDefinition {
pub id: u8,
pub kind: SensorType,
pub unit: SensorUnit,
pub prefix: SensorUnitPrefix,
pub range_minimum_value: i16,
pub range_maximum_value: i16,
pub normal_minimum_value: i16,
pub normal_maximum_value: i16,
pub is_lowest_highest_detected_value_supported: bool,
pub is_recorded_value_supported: bool,
pub description: String,
}
Fields§
§id: u8
§kind: SensorType
§unit: SensorUnit
§prefix: SensorUnitPrefix
§range_minimum_value: i16
§range_maximum_value: i16
§normal_minimum_value: i16
§normal_maximum_value: i16
§is_lowest_highest_detected_value_supported: bool
§is_recorded_value_supported: bool
§description: String
Trait Implementations§
Source§impl Clone for SensorDefinition
impl Clone for SensorDefinition
Source§fn clone(&self) -> SensorDefinition
fn clone(&self) -> SensorDefinition
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 SensorDefinition
impl Debug for SensorDefinition
Source§impl PartialEq for SensorDefinition
impl PartialEq for SensorDefinition
impl StructuralPartialEq for SensorDefinition
Auto Trait Implementations§
impl Freeze for SensorDefinition
impl RefUnwindSafe for SensorDefinition
impl Send for SensorDefinition
impl Sync for SensorDefinition
impl Unpin for SensorDefinition
impl UnwindSafe for SensorDefinition
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