pub struct WorkflowState {
pub id: String,
pub name: String,
pub is_terminal: bool,
pub on_enter: Option<String>,
pub on_exit: Option<String>,
}Expand description
A single state in the FSM.
Fields§
§id: StringUnique identifier for this state.
name: StringHuman-readable label.
is_terminal: boolIf true the FSM stops accepting transitions once in this state.
on_enter: Option<String>Optional action identifier to invoke on entry.
on_exit: Option<String>Optional action identifier to invoke on exit.
Implementations§
Source§impl WorkflowState
impl WorkflowState
Trait Implementations§
Source§impl Clone for WorkflowState
impl Clone for WorkflowState
Source§fn clone(&self) -> WorkflowState
fn clone(&self) -> WorkflowState
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 moreAuto Trait Implementations§
impl Freeze for WorkflowState
impl RefUnwindSafe for WorkflowState
impl Send for WorkflowState
impl Sync for WorkflowState
impl Unpin for WorkflowState
impl UnsafeUnpin for WorkflowState
impl UnwindSafe for WorkflowState
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