pub struct TntMessageTxCounter {
pub conversation_id: ConversationId,
pub count: u32,
}Fields§
§conversation_id: ConversationId§count: u32Trait Implementations§
Source§impl BorrowPrimaryKey for TntMessageTxCounter
impl BorrowPrimaryKey for TntMessageTxCounter
type BorrowedPrimaryKey<'a> = &'a ConversationIdRef
Source§fn borrow_primary_key(&self) -> Self::BorrowedPrimaryKey<'_>
fn borrow_primary_key(&self) -> Self::BorrowedPrimaryKey<'_>
Borrow this entity’s primary key without copying any data. Read more
Source§impl Clone for TntMessageTxCounter
impl Clone for TntMessageTxCounter
Source§fn clone(&self) -> TntMessageTxCounter
fn clone(&self) -> TntMessageTxCounter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TntMessageTxCounter
impl Debug for TntMessageTxCounter
Source§impl<'de> Deserialize<'de> for TntMessageTxCounter
impl<'de> Deserialize<'de> for TntMessageTxCounter
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 Entity for TntMessageTxCounter
impl Entity for TntMessageTxCounter
Source§const TABLE_NAME: &str = Self::TABLE_NAME
const TABLE_NAME: &str = Self::TABLE_NAME
The name of the SQL table for this entity
Source§fn get(
conn: &Connection,
key: &ConversationId,
) -> CryptoKeystoreResult<Option<Self>>
fn get( conn: &Connection, key: &ConversationId, ) -> CryptoKeystoreResult<Option<Self>>
Get an entity by its primary key. Read more
Source§fn count(conn: &Connection) -> CryptoKeystoreResult<u32>
fn count(conn: &Connection) -> CryptoKeystoreResult<u32>
Count the number of entities of this type in the database.
Source§fn load_all(conn: &Connection) -> CryptoKeystoreResult<Vec<Self>>
fn load_all(conn: &Connection) -> CryptoKeystoreResult<Vec<Self>>
Retrieve all entities of this type from the database.
Source§impl EntityDatabaseMutation for TntMessageTxCounter
impl EntityDatabaseMutation for TntMessageTxCounter
Source§fn save<'a, Tx>(&self, tx: &'a Tx) -> CryptoKeystoreResult<()>
fn save<'a, Tx>(&self, tx: &'a Tx) -> CryptoKeystoreResult<()>
Save this entity to the database in the context of this transaction. Read more
Source§fn delete<'a, Tx>(
tx: &'a Tx,
primary_key: &Self::PrimaryKey,
) -> CryptoKeystoreResult<bool>
fn delete<'a, Tx>( tx: &'a Tx, primary_key: &Self::PrimaryKey, ) -> CryptoKeystoreResult<bool>
Use the transaction’s inteface to delete this entity from the database. Read more
Source§impl EntityDeleteBorrowed for TntMessageTxCounter
impl EntityDeleteBorrowed for TntMessageTxCounter
Source§fn delete_borrowed<'a, Tx>(
tx: &'a Tx,
id: Self::BorrowedPrimaryKey<'_>,
) -> CryptoKeystoreResult<bool>
fn delete_borrowed<'a, Tx>( tx: &'a Tx, id: Self::BorrowedPrimaryKey<'_>, ) -> CryptoKeystoreResult<bool>
Delete an entity by a borrowed form of its primary key.
Source§impl EntityGetBorrowed for TntMessageTxCounter
impl EntityGetBorrowed for TntMessageTxCounter
Source§fn get_borrowed(
conn: &Connection,
key: Self::BorrowedPrimaryKey<'_>,
) -> CryptoKeystoreResult<Option<Self>>
fn get_borrowed( conn: &Connection, key: Self::BorrowedPrimaryKey<'_>, ) -> CryptoKeystoreResult<Option<Self>>
Get an entity by a borrowed form of its primary key.
impl Eq for TntMessageTxCounter
Source§impl PartialEq for TntMessageTxCounter
impl PartialEq for TntMessageTxCounter
Source§fn eq(&self, other: &TntMessageTxCounter) -> bool
fn eq(&self, other: &TntMessageTxCounter) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PrimaryKey for TntMessageTxCounter
impl PrimaryKey for TntMessageTxCounter
Source§type PrimaryKey = ConversationId
type PrimaryKey = ConversationId
Each distinct
PrimaryKey uniquely identifies either 0 or 1 instance. Read moreSource§fn primary_key(&self) -> Self::PrimaryKey
fn primary_key(&self) -> Self::PrimaryKey
Get this entity’s primary key. Read more
Source§impl Serialize for TntMessageTxCounter
impl Serialize for TntMessageTxCounter
impl StructuralPartialEq for TntMessageTxCounter
Auto Trait Implementations§
impl Freeze for TntMessageTxCounter
impl RefUnwindSafe for TntMessageTxCounter
impl Send for TntMessageTxCounter
impl Sync for TntMessageTxCounter
impl Unpin for TntMessageTxCounter
impl UnsafeUnpin for TntMessageTxCounter
impl UnwindSafe for TntMessageTxCounter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more