Trait eventually::aggregate::repository::Getter
source · pub trait Getter<T>: Send + Syncwhere
T: Aggregate,{
// Required method
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 T::Id
) -> Pin<Box<dyn Future<Output = Result<Root<T>, GetError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
Trait used to implement read access to a data store from which to load an aggregate::Root instance, given its id.
Required Methods§
sourcefn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 T::Id
) -> Pin<Box<dyn Future<Output = Result<Root<T>, GetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 T::Id
) -> Pin<Box<dyn Future<Output = Result<Root<T>, GetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Loads an aggregate::Root instance from the data store, referenced by its unique identifier.