Trait Identifier

Source
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§

Source

fn identifier(&self) -> String

Returns the identifier of the state/command/event

Implementors§

Source§

impl<A, B> Identifier for Sum<A, B>
where A: Identifier, B: Identifier,