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

use crate::value_objects::{RoleId, TransitionTrigger};

/// Move the session along a transition.
///
/// `role_id` is absent when the engine takes the move itself; the
/// record then names nobody rather than inventing someone.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ApplyTransition {
    pub role_id: Option<RoleId>,
    pub trigger: TransitionTrigger,
    pub now: OffsetDateTime,
}