pub struct StoredEpochEncryptionKeypair {
pub conversation_id: Vec<u8>,
pub own_leaf_idx: u32,
pub epoch: u64,
pub keypairs: Vec<u8>,
}Expand description
Entity representing a list of StoredEncryptionKeyPair
Fields§
§conversation_id: Vec<u8>§own_leaf_idx: u32§epoch: u64§keypairs: Vec<u8>Trait Implementations§
Source§impl BorrowPrimaryKey for StoredEpochEncryptionKeypair
impl BorrowPrimaryKey for StoredEpochEncryptionKeypair
type BorrowedPrimaryKey<'a> = StoredEpochEncryptionKeypairPkRef<'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 StoredEpochEncryptionKeypair
impl Clone for StoredEpochEncryptionKeypair
Source§fn clone(&self) -> StoredEpochEncryptionKeypair
fn clone(&self) -> StoredEpochEncryptionKeypair
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 StoredEpochEncryptionKeypair
impl Debug for StoredEpochEncryptionKeypair
Source§impl<'de> Deserialize<'de> for StoredEpochEncryptionKeypair
impl<'de> Deserialize<'de> for StoredEpochEncryptionKeypair
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 StoredEpochEncryptionKeypair
impl Entity for StoredEpochEncryptionKeypair
Source§const TABLE_NAME: &'static str = "epoch_encryption_keypairs"
const TABLE_NAME: &'static str = "epoch_encryption_keypairs"
The name of the SQL table for this entity
Source§fn get(
conn: &Connection,
key: &Self::PrimaryKey,
) -> CryptoKeystoreResult<Option<Self>>
fn get( conn: &Connection, key: &Self::PrimaryKey, ) -> 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 StoredEpochEncryptionKeypair
impl EntityDatabaseMutation for StoredEpochEncryptionKeypair
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,
id: &Self::PrimaryKey,
) -> CryptoKeystoreResult<bool>
fn delete<'a, Tx>( tx: &'a Tx, id: &Self::PrimaryKey, ) -> CryptoKeystoreResult<bool>
Use the transaction’s inteface to delete this entity from the database. Read more
Source§impl EntityDeleteBorrowed for StoredEpochEncryptionKeypair
impl EntityDeleteBorrowed for StoredEpochEncryptionKeypair
Source§fn delete_borrowed<'a, Tx>(
tx: &'a Tx,
key: <Self as BorrowPrimaryKey>::BorrowedPrimaryKey<'_>,
) -> CryptoKeystoreResult<bool>
fn delete_borrowed<'a, Tx>( tx: &'a Tx, key: <Self as BorrowPrimaryKey>::BorrowedPrimaryKey<'_>, ) -> CryptoKeystoreResult<bool>
Delete an entity by a borrowed form of its primary key.
Source§impl EntityGetBorrowed for StoredEpochEncryptionKeypair
impl EntityGetBorrowed for StoredEpochEncryptionKeypair
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.
Source§impl PartialEq for StoredEpochEncryptionKeypair
impl PartialEq for StoredEpochEncryptionKeypair
Source§fn eq(&self, other: &StoredEpochEncryptionKeypair) -> bool
fn eq(&self, other: &StoredEpochEncryptionKeypair) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PrimaryKey for StoredEpochEncryptionKeypair
impl PrimaryKey for StoredEpochEncryptionKeypair
Source§type PrimaryKey = StoredEpochEncryptionKeypairPk
type PrimaryKey = StoredEpochEncryptionKeypairPk
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 Zeroize for StoredEpochEncryptionKeypair
impl Zeroize for StoredEpochEncryptionKeypair
impl Eq for StoredEpochEncryptionKeypair
impl StructuralPartialEq for StoredEpochEncryptionKeypair
Auto Trait Implementations§
impl Freeze for StoredEpochEncryptionKeypair
impl RefUnwindSafe for StoredEpochEncryptionKeypair
impl Send for StoredEpochEncryptionKeypair
impl Sync for StoredEpochEncryptionKeypair
impl Unpin for StoredEpochEncryptionKeypair
impl UnsafeUnpin for StoredEpochEncryptionKeypair
impl UnwindSafe for StoredEpochEncryptionKeypair
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
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.