[][src]Crate influxdb_line_protocol

Rust implementation of InfluxDB's line protocol

Example

use influxdb_line_protocol::{DataPoint, FieldValue};

let data_point = DataPoint {
    measurement: "myMeasurement",
    tag_set: vec![("tag1", "value1"), ("tag2", "value2")],
    field_set: vec![("fieldKey", FieldValue::String("fieldValue"))],
    timestamp: Some(1556813561098000000),
};
print!("{}", data_point.into_string().unwrap());

Structs

DataPoint

Enums

Error
FieldValue