core_crypto_keystore::entities

Trait Entity

source
pub trait Entity: EntityBase {
    // Required methods
    fn id_raw(&self) -> &[u8] ;
    fn find_all<'life0, 'async_trait>(
        conn: &'life0 mut Self::ConnectionType,
        params: EntityFindParams,
    ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Vec<Self>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn find_one<'life0, 'life1, 'async_trait>(
        conn: &'life0 mut Self::ConnectionType,
        id: &'life1 StringEntityId<'_>,
    ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Option<Self>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn count<'life0, 'async_trait>(
        conn: &'life0 mut Self::ConnectionType,
    ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<usize>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn merge_key(&self) -> Vec<u8> { ... }
    fn find_many<'life0, 'life1, 'async_trait>(
        conn: &'life0 mut Self::ConnectionType,
        ids: &'life1 [StringEntityId<'_>],
    ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Vec<Self>>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

source

fn id_raw(&self) -> &[u8]

source

fn find_all<'life0, 'async_trait>( conn: &'life0 mut Self::ConnectionType, params: EntityFindParams, ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Vec<Self>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn find_one<'life0, 'life1, 'async_trait>( conn: &'life0 mut Self::ConnectionType, id: &'life1 StringEntityId<'_>, ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Option<Self>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn count<'life0, 'async_trait>( conn: &'life0 mut Self::ConnectionType, ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<usize>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

source

fn merge_key(&self) -> Vec<u8>

The query results that are obtained during a transaction from the transaction cache and the database are merged by this key.

source

fn find_many<'life0, 'life1, 'async_trait>( conn: &'life0 mut Self::ConnectionType, ids: &'life1 [StringEntityId<'_>], ) -> Pin<Box<dyn Future<Output = CryptoKeystoreResult<Vec<Self>>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§