distributed 4.0.2

CQRS/ES framework for Rust using Plain Old Rust Structs — append-only events, replay, snapshots, outbox, service bus, and pluggable infrastructure
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ClientManifestError(pub String);

impl std::fmt::Display for ClientManifestError {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        f.write_str(&self.0)
    }
}

impl std::error::Error for ClientManifestError {}

impl From<serde_json::Error> for ClientManifestError {
    fn from(error: serde_json::Error) -> Self {
        Self(format!("client manifest serialization failed: {error}"))
    }
}