pub trait Repository<T>where
T: HexEntity,{
// Required method
fn save(&mut self, entity: T) -> HexResult<()>;
}Expand description
Trait for repository ports that abstract persistence save operations (v0.4+).
Starting in v0.4, id-centric methods were removed in favor of the generic,
filter-based QueryRepository API. This trait now focuses solely on the
write-side persistence concern of saving aggregates. For read operations and
deletions by criteria, implement QueryRepository on the same adapter.
§Type Parameters
T- The entity type this repository manages (must implementHexEntity)