pub struct SensorReport {
pub type: String,
pub value: Option<f64>,
pub uom: Option<String>,
pub sensor_processor: Option<String>,
pub time: Option<DateTime<Utc>>,
pub microsecond_offset: Option<i32>,
pub chemical_substance: Option<String>,
pub data_value: Option<String>,
pub string_value: Option<String>,
pub boolean_value: Option<bool>,
pub hex_binary_value: Option<String>,
pub uri_value: Option<String>,
}Expand description
A specific sensor report (e.g., temperature reading).
Fields§
§type: StringType of measurement (e.g., temperature, relative humidity)
value: Option<f64>Numerical value of the sensor reading
uom: Option<String>Unit of measure (e.g. CEL)
sensor_processor: Option<String>Processor component responsible for the sensor reading
time: Option<DateTime<Utc>>Time when the reading occurred
microsecond_offset: Option<i32>Microsecond offset from event time
chemical_substance: Option<String>Chemical substance measured (if applicable)
data_value: Option<String>Data value in string/URI format
string_value: Option<String>String representation value
boolean_value: Option<bool>Boolean representation value
hex_binary_value: Option<String>Hex-binary value
uri_value: Option<String>URI value
Trait Implementations§
Source§impl Clone for SensorReport
impl Clone for SensorReport
Source§fn clone(&self) -> SensorReport
fn clone(&self) -> SensorReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SensorReport
impl Debug for SensorReport
Source§impl<'de> Deserialize<'de> for SensorReport
impl<'de> Deserialize<'de> for SensorReport
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 SensorReport
impl PartialEq for SensorReport
Source§fn eq(&self, other: &SensorReport) -> bool
fn eq(&self, other: &SensorReport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SensorReport
impl Serialize for SensorReport
impl StructuralPartialEq for SensorReport
Auto Trait Implementations§
impl Freeze for SensorReport
impl RefUnwindSafe for SensorReport
impl Send for SensorReport
impl Sync for SensorReport
impl Unpin for SensorReport
impl UnsafeUnpin for SensorReport
impl UnwindSafe for SensorReport
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