1//! Domain entity contract.
23/// A domain object with a stable identity.
4pub trait Entity: Send + Sync {
5/// Identifier type used by the entity.
6type Id: Clone + Eq + Send + Sync;
78/// Returns the stable identifier of this entity.
9fn id(&self) -> &Self::Id;
10}