pub struct CrossDependency {
pub predecessor: SubWorkflowRef,
pub successor: SubWorkflowRef,
pub condition: Option<String>,
pub pass_variables: bool,
}Expand description
A dependency between two sub-workflows.
Fields§
§predecessor: SubWorkflowRefThe sub-workflow that must complete first.
successor: SubWorkflowRefThe sub-workflow that depends on the predecessor.
condition: Option<String>Optional condition: only start successor if this condition on the predecessor’s final variables is met.
pass_variables: boolWhether to pass variables from predecessor to successor.
Implementations§
Source§impl CrossDependency
impl CrossDependency
Sourcepub fn new(predecessor: SubWorkflowRef, successor: SubWorkflowRef) -> Self
pub fn new(predecessor: SubWorkflowRef, successor: SubWorkflowRef) -> Self
Create a simple ordering dependency.
Sourcepub fn with_condition(self, condition: impl Into<String>) -> Self
pub fn with_condition(self, condition: impl Into<String>) -> Self
Add a condition to this dependency.
Sourcepub fn with_variable_passing(self) -> Self
pub fn with_variable_passing(self) -> Self
Enable variable passing from predecessor to successor.
Trait Implementations§
Source§impl Clone for CrossDependency
impl Clone for CrossDependency
Source§fn clone(&self) -> CrossDependency
fn clone(&self) -> CrossDependency
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 CrossDependency
impl Debug for CrossDependency
Source§impl<'de> Deserialize<'de> for CrossDependency
impl<'de> Deserialize<'de> for CrossDependency
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
Auto Trait Implementations§
impl Freeze for CrossDependency
impl RefUnwindSafe for CrossDependency
impl Send for CrossDependency
impl Sync for CrossDependency
impl Unpin for CrossDependency
impl UnsafeUnpin for CrossDependency
impl UnwindSafe for CrossDependency
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