pub trait Entity: Send + Sync {
type Id: Clone + Eq + Send + Sync;
// Required method
fn id(&self) -> &Self::Id;
}Expand description
A domain object with a stable identity.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".