pub trait WorkflowCondition: Send + Sync {
// Required method
fn evaluate(&self, input: &Value) -> Result<bool, WorkflowStepError>;
}Expand description
Pure, synchronous branch decision over canonical workflow data.
Required Methods§
Sourcefn evaluate(&self, input: &Value) -> Result<bool, WorkflowStepError>
fn evaluate(&self, input: &Value) -> Result<bool, WorkflowStepError>
Selects the true or false branch.
§Errors
Returns WorkflowStepError when the canonical input cannot be
evaluated safely.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".