tsuzuri 0.1.285

Tsuzuri is a Event Sourcing framework for Rust, designed to be simple and easy to use.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::aggregate_id::{AggregateId, HasIdPrefix};

#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct EventId;

impl HasIdPrefix for EventId {
    const PREFIX: &'static str = "evt";
}

pub type EventIdType = AggregateId<EventId>;