pub struct CeremonyTransitionRecord { /* private fields */ }Expand description
One move a session made, and who made it.
A session used to keep only the state it was in, which answers where it is and never how it got there. Nothing could be said about a move — not that it happened, not who fired it, and above all not why — because there was nothing to point at.
The author is optional and that is not a gap. A transition fired by a seat has one; a transition the engine took because its guards came true does not, and naming someone would be inventing them.
Implementations§
Source§impl CeremonyTransitionRecord
impl CeremonyTransitionRecord
pub fn record( trigger: TransitionTrigger, from_state: StateId, to_state: StateId, applied_by: Option<RoleId>, applied_at: OffsetDateTime, ) -> Self
pub fn trigger(&self) -> &TransitionTrigger
pub fn from_state(&self) -> &StateId
pub fn to_state(&self) -> &StateId
Sourcepub fn applied_by(&self) -> Option<&RoleId>
pub fn applied_by(&self) -> Option<&RoleId>
The seat that fired it, where one did.
pub fn applied_at(&self) -> OffsetDateTime
Trait Implementations§
Source§impl Clone for CeremonyTransitionRecord
impl Clone for CeremonyTransitionRecord
Source§fn clone(&self) -> CeremonyTransitionRecord
fn clone(&self) -> CeremonyTransitionRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CeremonyTransitionRecord
impl Debug for CeremonyTransitionRecord
Source§impl<'de> Deserialize<'de> for CeremonyTransitionRecord
impl<'de> Deserialize<'de> for CeremonyTransitionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for CeremonyTransitionRecord
Source§impl PartialEq for CeremonyTransitionRecord
impl PartialEq for CeremonyTransitionRecord
Source§impl Serialize for CeremonyTransitionRecord
impl Serialize for CeremonyTransitionRecord
impl StructuralPartialEq for CeremonyTransitionRecord
Auto Trait Implementations§
impl Freeze for CeremonyTransitionRecord
impl RefUnwindSafe for CeremonyTransitionRecord
impl Send for CeremonyTransitionRecord
impl Sync for CeremonyTransitionRecord
impl Unpin for CeremonyTransitionRecord
impl UnsafeUnpin for CeremonyTransitionRecord
impl UnwindSafe for CeremonyTransitionRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more