Struct influxc::Measurement[][src]

pub struct Measurement { /* fields omitted */ }

The smallest unit of recording. Multiple of these Measurements are fit in a Record, which in turn is submitted to InfluxDB.

Implementations

impl Measurement[src]

pub fn timestamp(&mut self, timestamp: DateTime<Utc>) -> &mut Self[src]

Set datetime of this Measurement

pub fn tag(&mut self, key: &str, value: &str) -> &mut Self[src]

Add a tag to this Measurement

pub fn field<V: Into<Value>>(&mut self, key: &str, value: V) -> &mut Self[src]

Add a value field to this Measurement

Trait Implementations

impl Debug for Measurement[src]

impl<'de> Deserialize<'de> for Measurement[src]

impl Serialize for Measurement[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.