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
15
16
17
use time::OffsetDateTime;

use crate::value_objects::{CeremonyInterventionId, InterventionDeliveryAck};

/// Seal that a named live agent saw a named offer of an intervention.
///
/// The only transport-adjacent command the aggregate takes, and it is
/// here because what it seals is a statement by the host, not an
/// attempt by the engine. Queueing, leasing and expiry stay in the
/// ledger, where a retry is bookkeeping rather than a new fact about
/// the ceremony.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct AcknowledgeInterventionDelivery {
    pub intervention_id: CeremonyInterventionId,
    pub ack: InterventionDeliveryAck,
    pub now: OffsetDateTime,
}