pub struct WorkflowDefinition { /* private fields */ }Expand description
Defines the complete state machine.
Implementations§
Source§impl WorkflowDefinition
impl WorkflowDefinition
Sourcepub fn transitions(&self) -> &[Transition]
pub fn transitions(&self) -> &[Transition]
Returns a slice of all transitions in the workflow.
Trait Implementations§
Source§impl Clone for WorkflowDefinition
impl Clone for WorkflowDefinition
Source§fn clone(&self) -> WorkflowDefinition
fn clone(&self) -> WorkflowDefinition
Returns a duplicate of the value. Read more
1.0.0 · 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 WorkflowDefinition
impl Debug for WorkflowDefinition
Source§impl<'de> Deserialize<'de> for WorkflowDefinition
impl<'de> Deserialize<'de> for WorkflowDefinition
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
Source§impl Serialize for WorkflowDefinition
impl Serialize for WorkflowDefinition
Source§impl TryFrom<WorkflowBuilder> for WorkflowDefinition
impl TryFrom<WorkflowBuilder> for WorkflowDefinition
Source§type Error = ValidationErrors
type Error = ValidationErrors
The type returned in the event of a conversion error.
Source§impl Validate for WorkflowDefinition
impl Validate for WorkflowDefinition
Source§impl<'v_a> ValidateArgs<'v_a> for WorkflowDefinition
impl<'v_a> ValidateArgs<'v_a> for WorkflowDefinition
Source§impl WorkflowGraph for WorkflowDefinition
impl WorkflowGraph for WorkflowDefinition
Source§fn can_transition(&self, current_phase: &str, target_phase: &str) -> bool
fn can_transition(&self, current_phase: &str, target_phase: &str) -> bool
Returns true if a transition exists from
current_phase to target_phase.Source§fn get_phase(&self, phase_id: &str) -> Option<&Phase>
fn get_phase(&self, phase_id: &str) -> Option<&Phase>
Returns the Phase definition for a given ID.
Source§fn get_start_phase(&self) -> Option<&Phase>
fn get_start_phase(&self) -> Option<&Phase>
Returns the starting phase of the workflow.
Auto Trait Implementations§
impl Freeze for WorkflowDefinition
impl RefUnwindSafe for WorkflowDefinition
impl Send for WorkflowDefinition
impl Sync for WorkflowDefinition
impl Unpin for WorkflowDefinition
impl UnwindSafe for WorkflowDefinition
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