cqrs-rust-lib 0.7.0

An opinionated implementation of CQRS/Event Sourcing with pluggable storage backends (InMemory, PostgreSQL, MongoDB, SurrealDB)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
mod audit_log_router;
mod helpers;
mod read_router;

use axum::response::{IntoResponse, Response};
use axum::Json;
pub use audit_log_router::*;
pub use read_router::*;
mod write_router;
use crate::CqrsError;
pub use write_router::*;

impl IntoResponse for CqrsError {
    fn into_response(self) -> Response {
        let status = self.http_status();
        (status, Json(self)).into_response()
    }
}