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

use crate::value_objects::{BudgetReservationId, MaxParallel, RoleId, StepId, StepLease};

/// Take a step to run under a lease.
///
/// `role_id` names the seat taking it and is checked against the
/// definition; absent, the engine takes the step and the event names
/// the seat the definition assigns to it.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct StartStep {
    pub role_id: Option<RoleId>,
    pub step_id: StepId,
    pub lease: StepLease,
    pub now: OffsetDateTime,
    pub max_parallel_ceiling: MaxParallel,
    pub budget_reservation_id: Option<BudgetReservationId>,
}