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: Stringmeasurement
tags
fields: HashMap<String, Value>fields
timestamp: Option<i64>timestamp
Implementations§
Source§impl Point
impl Point
Sourcepub fn add_tag<T: Into<String>, F: Into<Value>>(self, tag: T, value: F) -> Self
pub fn add_tag<T: Into<String>, F: Into<Value>>(self, tag: T, value: F) -> Self
Add a tag and its value
Sourcepub fn add_field<T: Into<String>, F: Into<Value>>(
self,
field: T,
value: F,
) -> Self
pub fn add_field<T: Into<String>, F: Into<Value>>( self, field: T, value: F, ) -> Self
Add a field and its value
Sourcepub fn add_timestamp(self, timestamp: i64) -> Self
pub fn add_timestamp(self, timestamp: i64) -> 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
Source§impl FromIterator<Point> for Points
impl FromIterator<Point> for Points
impl StructuralPartialEq for Point
Auto Trait Implementations§
impl Freeze for Point
impl RefUnwindSafe for Point
impl Send for Point
impl Sync for Point
impl Unpin for Point
impl UnwindSafe for Point
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more