Repository

Trait Repository 

Source
pub trait Repository<T>: Send + Sync
where T: Send + Sync,
{ // Required methods fn find_by_id<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<Option<T>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn find_all<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, options: &'life1 QueryOptions, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<Vec<T>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn create<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, entity: &'life1 T, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<String>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn update<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: &'life1 str, entity: &'life2 T, context: &'life3 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait; fn delete<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn exists<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<bool>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; }

Required Methods§

Source

fn find_by_id<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<Option<T>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn find_all<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, options: &'life1 QueryOptions, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<Vec<T>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn create<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, entity: &'life1 T, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn update<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, id: &'life1 str, entity: &'life2 T, context: &'life3 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Source

fn delete<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source

fn exists<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, id: &'life1 str, context: &'life2 QueryContext, ) -> Pin<Box<dyn Future<Output = DatabaseResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§