1 2 3 4 5 6 7
use crate::models::Timestamp; pub trait PointSerialize { fn serialize(&self) -> String; fn serialize_with_timestamp(&self, timestamp: Option<Timestamp>) -> String; }
1 2 3 4 5 6 7
use crate::models::Timestamp; pub trait PointSerialize { fn serialize(&self) -> String; fn serialize_with_timestamp(&self, timestamp: Option<Timestamp>) -> String; }