Trait DataStore

Source
pub trait DataStore: Send + Sync {
    // Required methods
    fn entities<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Entities> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_entities<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Entities> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete_entities<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn update_entities<'life0, 'async_trait>(
        &'life0 self,
        entities: Entities,
        schema: Option<Schema>,
    ) -> Pin<Box<dyn Future<Output = Result<Entities, Box<dyn Error>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn entities<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Entities> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_entities<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Entities> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn delete_entities<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn update_entities<'life0, 'async_trait>( &'life0 self, entities: Entities, schema: Option<Schema>, ) -> Pin<Box<dyn Future<Output = Result<Entities, Box<dyn Error>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§