[][src]Trait emseries::Recordable

pub trait Recordable {
    fn timestamp(&self) -> DateTime<Utc>;
fn tags(&self) -> Vec<String>; }

Any element to be put into the database needs to be Recordable. This is the common API that will aid in searching and later in indexing records.

Required methods

fn timestamp(&self) -> DateTime<Utc>

The timestamp for the record.

fn tags(&self) -> Vec<String>

A list of string tags that can be used for indexing. This list defined per-type.

Loading content...

Implementors

impl<T> Recordable for Record<T> where
    T: Clone + Recordable
[src]

Loading content...