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
14
use crate::entities::ceremony_events::MemoryRecalled;
use crate::entities::CeremonyInstance;

impl CeremonyInstance {
    /// What this session was told when it opened.
    ///
    /// Written once, at the opening, and never again: recalling is
    /// something a session does when it starts, and a second one would
    /// mean the session had been opened twice.
    pub(super) fn apply_memory_recalled(&mut self, recalled: &MemoryRecalled) {
        self.updated_at = recalled.recalled_at;
        self.recollection = Some(recalled.recollection.clone());
    }
}