[−][src]Struct my_iot::measurement::Measurement
A sensor measurement.
Fields
sensor: StringA sensor. For example: buienradar::6240::wind_speed_bft.
value: ValueAn attached typed value.
timestamp: DateTime<Local>Timestamp when the value was actually measured.
Methods
impl Measurement[src]
pub fn new(
sensor: String,
value: Value,
timestamp: Option<DateTime<Local>>
) -> Self[src]
sensor: String,
value: Value,
timestamp: Option<DateTime<Local>>
) -> Self
Create a new measurement.
Trait Implementations
impl<'_, '_> From<&'_ Row<'_>> for Measurement[src]
impl Debug for Measurement[src]
Auto Trait Implementations
impl Send for Measurement
impl Sync for Measurement
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,