Trait core_crypto_keystore::entities::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 Types§
Required Associated Constants§
sourceconst COLLECTION_NAME: &'static str
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 Methods§
fn to_missing_key_err_kind() -> MissingKeyErrorKind
fn to_transaction_entity(self) -> Entity
Provided Methods§
fn downcast<T: EntityBase>(&self) -> Option<&T>
Object Safety§
This trait is not object safe.