pub trait Identifier {
// Required method
fn identifier(&self) -> String;
}
Expand description
Identify the state/command/event.
It is used to identify the concept to what the state/command/event belongs to. For example, the order_id
or restaurant_id
.
Required Methods§
Sourcefn identifier(&self) -> String
fn identifier(&self) -> String
Returns the identifier of the state/command/event