core_crypto_keystore::entities

Trait EntityBase

source
pub trait EntityBase:
    Send
    + Sized
    + Clone
    + PartialEq
    + Eq
    + Debug {
    type ConnectionType: DatabaseConnection;
    type AutoGeneratedFields: Default;

    const COLLECTION_NAME: &'static str;

    // Required methods
    fn to_missing_key_err_kind() -> MissingKeyErrorKind;
    fn to_transaction_entity(self) -> Entity;

    // Provided method
    fn downcast<T: EntityBase>(&self) -> Option<&T> { ... }
}

Required Associated Constants§

source

const COLLECTION_NAME: &'static str

Beware: if you change the value of this constant on any WASM entity, you’ll need to do a data migration not only because it is used as reference to the object store names but also for the value of the aad.

Required Associated Types§

Required Methods§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl EntityBase for ConsumerData

source§

impl EntityBase for E2eiAcmeCA

source§

impl EntityBase for E2eiCrl

source§

impl EntityBase for E2eiEnrollment

source§

impl EntityBase for E2eiIntermediateCert

source§

impl EntityBase for E2eiRefreshToken

source§

impl EntityBase for MlsCredential

source§

impl EntityBase for MlsEncryptionKeyPair

source§

impl EntityBase for MlsEpochEncryptionKeyPair

source§

const COLLECTION_NAME: &'static str = "mls_epoch_encryption_keypairs"

source§

type ConnectionType = SqlCipherConnection

source§

type AutoGeneratedFields = ()

source§

impl EntityBase for MlsHpkePrivateKey

source§

impl EntityBase for MlsKeyPackage

source§

impl EntityBase for MlsPendingMessage

source§

impl EntityBase for MlsPskBundle

source§

impl EntityBase for MlsSignatureKeyPair

source§

impl EntityBase for PersistedMlsGroup

source§

impl EntityBase for PersistedMlsPendingGroup

source§

impl EntityBase for ProteusIdentity

source§

impl EntityBase for ProteusPrekey

source§

impl EntityBase for ProteusSession