made-core 0.8.0

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::entities::CeremonyInstance;
use crate::value_objects::StreamVersion;

/// A ceremony's state as folded from its stream up to `version`.
///
/// A snapshot is a cache of the fold, never the truth: loading a
/// ceremony is the latest snapshot plus the events after its version,
/// and dropping every snapshot changes nothing but speed.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CeremonySnapshot {
    pub version: StreamVersion,
    pub instance: CeremonyInstance,
}