rust_bus 3.0.6

bus — Lightweight CQRS Library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::contracts::enums::{Field, Period, Replace, State};

#[derive(serde::Serialize)]
#[serde(rename_all = "snake_case")]
pub struct Unique {
    pub period: Period,
    pub fields: &'static [Field],
    pub keys: &'static [&'static str],
    pub states: &'static [State],
    pub replace: &'static [Replace],
}