[][src]Struct influx_db_client::keys::Point

pub struct Point {
    pub measurement: String,
    pub tags: HashMap<String, Value>,
    pub fields: HashMap<String, Value>,
    pub timestamp: Option<i64>,
}

influxdb point

Fields

measurement: String

measurement

tags: HashMap<String, Value>

tags

fields: HashMap<String, Value>

fields

timestamp: Option<i64>

timestamp

Implementations

impl Point[src]

pub fn new(measurement: &str) -> Point[src]

Create a new point

pub fn add_tag<T: Into<String>>(self, tag: T, value: Value) -> Self[src]

Add a tag and its value

pub fn add_field<T: Into<String>>(self, field: T, value: Value) -> Self[src]

Add a field and its value

pub fn add_timestamp(self, timestamp: i64) -> Self[src]

Set the specified timestamp

Trait Implementations

impl Clone for Point[src]

impl Debug for Point[src]

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

impl FromIterator<Point> for Points[src]

impl PartialEq<Point> for Point[src]

impl Serialize for Point[src]

impl StructuralPartialEq for Point[src]

Auto Trait Implementations

impl RefUnwindSafe for Point

impl Send for Point

impl Sync for Point

impl Unpin for Point

impl UnwindSafe for Point

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> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.