Struct metrics_sqlite::Metric[][src]

pub struct Metric {
    pub id: i64,
    pub timestamp: f64,
    pub key: String,
    pub value: f64,
}

Metric model for existing entries in sqlite database

Fields

id: i64

Unique ID of sample

timestamp: f64

Timestamp of sample

key: String

Key/name of sample

value: f64

Value of sample

Trait Implementations

impl Debug for Metric[src]

impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Metric where
    (i64, f64, String, f64): Queryable<__ST, __DB>, 
[src]

type Row = <(i64, f64, String, f64) as Queryable<__ST, __DB>>::Row

The Rust type you’d like to map from. Read more

Auto Trait Implementations

impl RefUnwindSafe for Metric

impl Send for Metric

impl Sync for Metric

impl Unpin for Metric

impl UnwindSafe for Metric

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.