esrs 0.18.0

A Prima.it-opinionated library to achieve cqrs/es
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

pub enum TestCommand {
    Single,
    Multi,
}

#[derive(Clone, Serialize, Deserialize, Debug)]
pub struct TestEvent {
    pub add: i32,
}

#[cfg(feature = "upcasting")]
impl esrs::event::Upcaster for TestEvent {}

#[derive(Debug, thiserror::Error)]
pub enum TestError {}