Skip to main content

GuardCondition

Trait GuardCondition 

Source
pub trait GuardCondition: Send + Sync {
    // Required methods
    fn evaluate(&self, input: &Value) -> bool;
    fn name(&self) -> &str;
}
Expand description

Guard condition for FSM transitions.

Required Methods§

Source

fn evaluate(&self, input: &Value) -> bool

Evaluate guard condition.

Source

fn name(&self) -> &str

Guard name for error messages.

Implementors§