a3s-boot 0.1.3

Adapter-first modular Rust web framework for A3S inspired by Nest.js
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Command message handled by [`crate::CommandBus`].
pub trait Command: Send + 'static {
    type Output: Send + 'static;
}

/// Query message handled by [`crate::QueryBus`].
pub trait Query: Send + 'static {
    type Output: Send + 'static;
}

/// Event message published through [`crate::EventBus`].
pub trait CqrsEvent: Clone + Send + Sync + 'static {}

impl<T> CqrsEvent for T where T: Clone + Send + Sync + 'static {}