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
14
15
16
use serde::{Deserialize, Serialize};
use time::OffsetDateTime;

use crate::value_objects::StateId;

/// The ceremony reached a terminal state.
///
/// Sealed in the same commit as the transition that got it there. A
/// fold stamps `completed_at` from here rather than deciding for itself
/// which states are terminal.
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
pub struct CeremonyCompleted {
    pub final_state: StateId,
    #[serde(with = "time::serde::rfc3339")]
    pub completed_at: OffsetDateTime,
}