made-core 0.7.1

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
14
15
use crate::entities::AuditRecord;
use crate::value_objects::GlobalPosition;

/// A sealed record together with its place in the order every stream
/// shares.
///
/// The position is not part of the record: the digest covers what
/// happened in one ceremony, and where the store filed it among other
/// ceremonies is the store's business. Pairing them here is what a
/// cross-stream reader needs to keep a cursor.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct PositionedRecord {
    pub position: GlobalPosition,
    pub record: AuditRecord,
}