Struct influx_db_client::Point
[−]
[src]
pub struct Point { pub measurement: String, pub tags: BTreeMap<String, Value>, pub fields: BTreeMap<String, Value>, pub timestamp: Option<i64>, }
Fields
measurement: String
fields: BTreeMap<String, Value>
timestamp: Option<i64>
Methods
impl Point
[src]
fn new(measurement: &str) -> Point
Create a new point
fn add_tag(&mut self, tag: &str, value: Value)
Add a tag and its value
fn add_field(&mut self, field: &str, value: Value)
Add a field and its value
fn add_timestamp(&mut self, timestamp: i64)
Set the specified timestamp
Trait Implementations
impl Debug for Point
[src]
impl Clone for Point
[src]
fn clone(&self) -> Point
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more