pub struct OldEpochMemberData {
pub conversation_id: ConversationId,
pub epoch: u64,
pub leaf_node_index: u32,
pub credential: Vec<u8>,
pub signature_key: Vec<u8>,
}Expand description
Member data for TNT messages, keyed by (ConversationId, epoch, leaf_node_index).
Fields§
§conversation_id: ConversationId§epoch: u64§leaf_node_index: u32§credential: Vec<u8>§signature_key: Vec<u8>Trait Implementations§
Source§impl BorrowPrimaryKey for OldEpochMemberData
impl BorrowPrimaryKey for OldEpochMemberData
type BorrowedPrimaryKey<'a> = OldEpochMemberDataPkRef<'a>
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 OldEpochMemberData
impl Clone for OldEpochMemberData
Source§fn clone(&self) -> OldEpochMemberData
fn clone(&self) -> OldEpochMemberData
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 OldEpochMemberData
impl Debug for OldEpochMemberData
Source§impl DeletableBySearchKey<ConversationEpochsOlderThan<'_>> for OldEpochMemberData
impl DeletableBySearchKey<ConversationEpochsOlderThan<'_>> for OldEpochMemberData
Source§fn delete_all_matching<'a, Tx>(
tx: &'a Tx,
conversation_epoch: &ConversationEpochsOlderThan<'_>,
) -> CryptoKeystoreResult<()>
fn delete_all_matching<'a, Tx>( tx: &'a Tx, conversation_epoch: &ConversationEpochsOlderThan<'_>, ) -> CryptoKeystoreResult<()>
Delete all entities matching the search key. Read more
Source§impl Entity for OldEpochMemberData
impl Entity for OldEpochMemberData
Source§const TABLE_NAME: &str = Self::OLD_EPOCH_MEMBER_DATA
const TABLE_NAME: &str = Self::OLD_EPOCH_MEMBER_DATA
The name of the SQL table for this entity
Source§fn get(
conn: &Connection,
key: &OldEpochMemberDataPk,
) -> CryptoKeystoreResult<Option<Self>>
fn get( conn: &Connection, key: &OldEpochMemberDataPk, ) -> 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 OldEpochMemberData
impl EntityDatabaseMutation for OldEpochMemberData
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,
key: &OldEpochMemberDataPk,
) -> CryptoKeystoreResult<bool>
fn delete<'a, Tx>( tx: &'a Tx, key: &OldEpochMemberDataPk, ) -> CryptoKeystoreResult<bool>
Use the transaction’s inteface to delete this entity from the database. Read more
Source§impl EntityDeleteBorrowed for OldEpochMemberData
impl EntityDeleteBorrowed for OldEpochMemberData
Source§fn delete_borrowed<'a, Tx>(
tx: &'a Tx,
key: Self::BorrowedPrimaryKey<'_>,
) -> CryptoKeystoreResult<bool>
fn delete_borrowed<'a, Tx>( tx: &'a Tx, key: Self::BorrowedPrimaryKey<'_>, ) -> CryptoKeystoreResult<bool>
Delete an entity by a borrowed form of its primary key.
Source§impl EntityGetBorrowed for OldEpochMemberData
impl EntityGetBorrowed for OldEpochMemberData
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 OldEpochMemberData
Source§impl PartialEq for OldEpochMemberData
impl PartialEq for OldEpochMemberData
Source§impl PrimaryKey for OldEpochMemberData
impl PrimaryKey for OldEpochMemberData
Source§type PrimaryKey = OldEpochMemberDataPk
type PrimaryKey = OldEpochMemberDataPk
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 SearchableEntity<ConversationEpochsOlderThan<'_>> for OldEpochMemberData
impl SearchableEntity<ConversationEpochsOlderThan<'_>> for OldEpochMemberData
Source§fn find_all_matching(
conn: &Connection,
conversation_epoch: &ConversationEpochsOlderThan<'_>,
) -> CryptoKeystoreResult<Vec<Self>>
fn find_all_matching( conn: &Connection, conversation_epoch: &ConversationEpochsOlderThan<'_>, ) -> CryptoKeystoreResult<Vec<Self>>
Find all entities matching the search key. Read more
impl StructuralPartialEq for OldEpochMemberData
Auto Trait Implementations§
impl Freeze for OldEpochMemberData
impl RefUnwindSafe for OldEpochMemberData
impl Send for OldEpochMemberData
impl Sync for OldEpochMemberData
impl Unpin for OldEpochMemberData
impl UnsafeUnpin for OldEpochMemberData
impl UnwindSafe for OldEpochMemberData
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<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