pub struct DhtDataRaw {
pub t: f32,
pub h: f32,
pub hi: f32,
}
Expand description
Serde JSON from the DHT sensor over serial.
Fields§
§t: f32
§h: f32
§hi: f32
Trait Implementations§
Source§impl Clone for DhtDataRaw
impl Clone for DhtDataRaw
Source§fn clone(&self) -> DhtDataRaw
fn clone(&self) -> DhtDataRaw
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 DhtDataRaw
impl Debug for DhtDataRaw
Source§impl<'de> Deserialize<'de> for DhtDataRaw
impl<'de> Deserialize<'de> for DhtDataRaw
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 From<DhtDataRaw> for SensorData
Convert the RAW Json to SensorData so it can be re-serialized with full field names.
impl From<DhtDataRaw> for SensorData
Convert the RAW Json to SensorData so it can be re-serialized with full field names.
Source§fn from(data: DhtDataRaw) -> Self
fn from(data: DhtDataRaw) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DhtDataRaw
impl RefUnwindSafe for DhtDataRaw
impl Send for DhtDataRaw
impl Sync for DhtDataRaw
impl Unpin for DhtDataRaw
impl UnwindSafe for DhtDataRaw
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