made-core 0.7.4

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

impl CeremonyInstance {
    pub(super) fn apply_context_written(&mut self, written: &ContextWritten) {
        self.context = self
            .context
            .clone()
            .with_patch(&written.patch)
            .expect("a sealed context patch must remain valid");
        self.updated_at = written.written_at;
    }
}