Trait krill::commons::eventsourcing::InitCommandDetails
source · pub trait InitCommandDetails: Clone + Display + Send + Sync + 'static {
type StorableDetails: WithStorableDetails;
// Required method
fn store(&self) -> Self::StorableDetails;
}
Expand description
Implement this for an enum with CommandDetails, so you you can reuse the id and version boilerplate from [‘SentCommand’].
Required Associated Types§
Required Methods§
fn store(&self) -> Self::StorableDetails
Object Safety§
This trait is not object safe.