[][src]Trait dendrite::axon_utils::AggregateRegistry

pub trait AggregateRegistry {
    pub fn insert(
        &mut self,
        aggregate_handle: Box<dyn AggregateHandle>
    ) -> Result<()>;
pub fn get(&self, name: &str) -> Option<&Box<dyn AggregateHandle>>;
pub fn register(
        &self,
        commands: &mut Vec<String>,
        command_to_aggregate_mapping: &mut HashMap<String, String>
    ); }

Trait that needs to be implemented by the aggregate registry.

Required methods

pub fn insert(
    &mut self,
    aggregate_handle: Box<dyn AggregateHandle>
) -> Result<()>
[src]

pub fn get(&self, name: &str) -> Option<&Box<dyn AggregateHandle>>[src]

pub fn register(
    &self,
    commands: &mut Vec<String>,
    command_to_aggregate_mapping: &mut HashMap<String, String>
)
[src]

Loading content...

Implementors

impl AggregateRegistry for TheAggregateRegistry[src]

Loading content...