pub enum CeremonyRecordRef {
Step {
step_id: StepId,
},
AgendaItem {
agenda_item: CeremonyInterventionId,
},
Contribution {
agenda_item: CeremonyInterventionId,
ordinal: u32,
},
GuardDecision {
guard_name: GuardName,
},
Transition {
ordinal: u32,
},
}Expand description
Something a session produced that another thing can point at.
Typed rather than a string, because the aggregate can then check that both ends of a reason exist. Memory cannot — an edge there may legitimately reach an entry written an hour ago — but a session knows everything it has done, and declining to use that would be letting a reason cite something that never happened.
Variants§
Step
A step this session ran.
AgendaItem
An agenda item somebody opened.
Fields
agenda_item: CeremonyInterventionIdContribution
One contribution to an agenda item, by its place in the order they were made.
GuardDecision
A human decision on a guard — an approval or a deferral.
Transition
The nth move this session made, counting from one.
By position rather than by trigger: a session may fire the same trigger more than once, and “the move that ended it” has to name one of them.
Implementations§
Source§impl CeremonyRecordRef
impl CeremonyRecordRef
pub fn step(step_id: StepId) -> Self
pub fn agenda_item(agenda_item: CeremonyInterventionId) -> Self
pub fn contribution(agenda_item: CeremonyInterventionId, ordinal: u32) -> Self
pub fn guard_decision(guard_name: GuardName) -> Self
pub const fn transition(ordinal: u32) -> Self
Trait Implementations§
Source§impl Clone for CeremonyRecordRef
impl Clone for CeremonyRecordRef
Source§fn clone(&self) -> CeremonyRecordRef
fn clone(&self) -> CeremonyRecordRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more