Trait Get

Source
pub trait Get<V: Identity>: Repository<V> {
    // Required method
    fn get_one<'life0, 'life1, 'async_trait>(
        &'life0 self,
        k: &'life1 V::Id,
    ) -> Pin<Box<dyn Future<Output = Result<Option<V>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn get_one<'life0, 'life1, 'async_trait>( &'life0 self, k: &'life1 V::Id, ) -> Pin<Box<dyn Future<Output = Result<Option<V>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§

Source§

impl<H, T, V, R> Get<V> for RepositoryWrapper<H, T, V, R>
where V: Identity + Sync, V::Id: Sync, H: Operation + Send + Sync, T: Send + Sync, R: Repository<V> + Repository<V> + Get<V> + Send + Sync,

Source§

impl<T, E> Get<T> for InMemoryRepository<T, E>
where E: Send + Sync + 'static, T: Identity + RefIdentity + Clone + Sync + Send, T::Id: Clone + Sync + Send + Eq,