Struct dht_logger::messages::SensorData
source · [−]Expand description
A single reading for a DHT sensor.
Fields
temperature: f32
humidity: f32
heat_index: f32
Trait Implementations
sourceimpl Clone for SensorData
impl Clone for SensorData
sourcefn clone(&self) -> SensorData
fn clone(&self) -> SensorData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SensorData
impl Debug for SensorData
sourceimpl<'de> Deserialize<'de> for SensorData
impl<'de> Deserialize<'de> for SensorData
sourcefn 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
sourceimpl From<DhtDataRaw> for SensorData
impl From<DhtDataRaw> for SensorData
Convert the RAW Json to SensorData so it can be re-serialized with full field names.
sourcefn from(data: DhtDataRaw) -> Self
fn from(data: DhtDataRaw) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SensorData> for SensorData
impl PartialEq<SensorData> for SensorData
sourcefn eq(&self, other: &SensorData) -> bool
fn eq(&self, other: &SensorData) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SensorData) -> bool
fn ne(&self, other: &SensorData) -> bool
This method tests for !=
.
sourceimpl Serialize for SensorData
impl Serialize for SensorData
impl Copy for SensorData
impl StructuralPartialEq for SensorData
Auto Trait Implementations
impl RefUnwindSafe for SensorData
impl Send for SensorData
impl Sync for SensorData
impl Unpin for SensorData
impl UnwindSafe for SensorData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more