pub struct Snapshot {
pub tag: String,
pub last_updated: i64,
}
Fields§
§tag: String
Tag - a unique identifier of the current snapshot
last_updated: i64
Timestamp for the latest update of the current snapshot
Trait Implementations§
source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'insert> Insertable<table> for &'insert Snapshot
impl<'insert> Insertable<table> for &'insert Snapshot
§type Values = <(Option<Eq<tag, <&'insert String as AsExpression<<tag as Expression>::SqlType>>::Expression>>, Option<Eq<last_updated, <&'insert i64 as AsExpression<<last_updated as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<tag, <&'insert String as AsExpression<<tag as Expression>::SqlType>>::Expression>>, Option<Eq<last_updated, <&'insert i64 as AsExpression<<last_updated as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read more§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moresource§impl<'insert> Insertable<table> for Snapshot
impl<'insert> Insertable<table> for Snapshot
§type Values = <(Option<Eq<tag, <String as AsExpression<<tag as Expression>::SqlType>>::Expression>>, Option<Eq<last_updated, <i64 as AsExpression<<last_updated as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<tag, <String as AsExpression<<tag as Expression>::SqlType>>::Expression>>, Option<Eq<last_updated, <i64 as AsExpression<<last_updated as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read more§fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where
Self: Sized,
fn insert_into( self, table: T ) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>where Self: Sized,
Insert
self
into a given table. Read moresource§impl PartialEq<Snapshot> for Snapshot
impl PartialEq<Snapshot> for Snapshot
source§impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Snapshotwhere
(String, i64): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Snapshotwhere (String, i64): Queryable<__ST, __DB>,
impl Eq for Snapshot
impl StructuralEq for Snapshot
impl StructuralPartialEq for Snapshot
impl<'insert> UndecoratedInsertRecord<table> for Snapshot
Auto Trait Implementations§
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnwindSafe for Snapshot
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.