Skip to main content

made_core/ports/
positioned_record.rs

1use crate::entities::AuditRecord;
2use crate::value_objects::GlobalPosition;
3
4/// A sealed record together with its place in the order every stream
5/// shares.
6///
7/// The position is not part of the record: the digest covers what
8/// happened in one ceremony, and where the store filed it among other
9/// ceremonies is the store's business. Pairing them here is what a
10/// cross-stream reader needs to keep a cursor.
11#[derive(Debug, Clone, PartialEq, Eq)]
12pub struct PositionedRecord {
13    pub position: GlobalPosition,
14    pub record: AuditRecord,
15}