[][src]Struct my_iot::templates::Sensor

pub struct Sensor<'a> {
    pub crate_version: &'a str,
    pub sensor_id: String,
    pub reading: Reading,
}

Fields

crate_version: &'a strsensor_id: Stringreading: Reading

Methods

impl<'_> Sensor<'_>[src]

pub fn new<S: Into<String>>(sensor_id: S, reading: Reading) -> Self[src]

Trait Implementations

impl<'a> Display for Sensor<'a>[src]

impl<'a> Template for Sensor<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Sensor<'a>

impl<'a> Send for Sensor<'a>

impl<'a> Sync for Sensor<'a>

impl<'a> !Unpin for Sensor<'a>

impl<'a> !UnwindSafe for Sensor<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,