Struct influx_db_client::keys::Point
source · pub struct Point {
pub measurement: String,
pub tags: HashMap<String, Value>,
pub fields: HashMap<String, Value>,
pub timestamp: Option<i64>,
}
Expand description
influxdb point
Fields§
§measurement: String
measurement
tags
fields: HashMap<String, Value>
fields
timestamp: Option<i64>
timestamp
Implementations§
source§impl Point
impl Point
sourcepub fn add_tag<T: ToString>(&mut self, tag: T, value: Value) -> &mut Self
pub fn add_tag<T: ToString>(&mut self, tag: T, value: Value) -> &mut Self
Add a tag and its value
sourcepub fn add_field<T: ToString>(&mut self, field: T, value: Value) -> &mut Self
pub fn add_field<T: ToString>(&mut self, field: T, value: Value) -> &mut Self
Add a field and its value
sourcepub fn add_timestamp(&mut self, timestamp: i64) -> &mut Self
pub fn add_timestamp(&mut self, timestamp: i64) -> &mut Self
Set the specified timestamp
Trait Implementations§
source§impl<'de> Deserialize<'de> for Point
impl<'de> Deserialize<'de> for Point
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more