pub trait Repository<AR: AggregateRoot> {
// Required methods
fn load(&self, id: AR::Id) -> Result<AR>;
fn save(&self, root: &mut AR) -> Result<()>;
}Expand description
Repository returns AggregateRoot to a client. Repository should not be invoked on Entity.