[][src]Struct my_iot::core::message::Composer

pub struct Composer {
    message: Message,
}

Message builder. Prefer to use it instead of directly instantiating a Message.

Fields

message: Message

Methods

impl Composer[src]

pub fn new<S: Into<String>>(sensor: S) -> Self[src]

pub fn type_(self, type_: Type) -> Self[src]

pub fn timestamp<T: Into<DateTime<Local>>>(self, timestamp: T) -> Self[src]

pub fn value<V: Into<Value>>(self, value: V) -> Self[src]

Trait Implementations

impl From<Composer> for Message[src]

Auto Trait Implementations

impl Send for Composer

impl Unpin for Composer

impl Sync for Composer

impl UnwindSafe for Composer

impl RefUnwindSafe for Composer

Blanket Implementations

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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>,