pub struct NewMetric {
pub timestamp: f64,
pub metric_key_id: i64,
pub value: f64,
}
Expand description
A new metric measurement for storing into sqlite database
Fields§
§timestamp: f64
Timestamp of sample
metric_key_id: i64
Key/name of sample
value: f64
Value of sample
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewMetric
impl RefUnwindSafe for NewMetric
impl Send for NewMetric
impl Sync for NewMetric
impl Unpin for NewMetric
impl UnwindSafe for NewMetric
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more