pub trait Aggregate: Send + Clone + Default + Unpin + 'static {
// Required method
fn identity() -> &'static str;
}
Expand description
Define an Aggregate
We don’t recommend implementing this trait directly. use the Aggregate
derive macro instead
#[derive(Debug, Clone, Default, Aggregate)]
#[aggregate(identity = "account")]
struct Account {
account_id: Option<uuid::Uuid>
}