Struct influent::serializer::line::LineSerializer [] [src]

pub struct LineSerializer;

Methods

impl LineSerializer
[src]

Line spec Measurement serializer.

Constructs new LineSerializer.

Examples

use influent::serializer::Serializer;
use influent::serializer::line::LineSerializer;
use influent::measurement::{Measurement, Value};

let serializer = LineSerializer::new();
let mut measurement = Measurement::new("key");

measurement.add_field("field", Value::String("value"));
measurement.add_tag("tag", "value");

assert_eq!("key,tag=value field=\"value\"", serializer.serialize(&measurement));

Trait Implementations

impl Serializer for LineSerializer
[src]

Serializes measurement to String.