Trait esrs::aggregate::Eraser [−][src]
pub trait Eraser<Event: Serialize + DeserializeOwned + Send + Sync, Error: From<Error> + From<Error> + Send + Sync> {
fn delete<'life0, 'async_trait>(
&'life0 self,
aggregate_id: Uuid
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
The Eraser trait is responsible for erasing an aggregate instance from history.
Required methods
delete
should either complete the aggregate instance, along with all its associated events, or fail.
If the deletion succeeds only partially, it must return an error.