pub struct Case {
pub id: String,
pub logical_operator: LogicalOp,
pub conditions: Vec<Condition>,
}Expand description
A named branch inside an "if-else" node.
A case is satisfied when its conditions evaluate to true according to
logical_operator. Cases are tested in order; the first match wins.
§Example
{
"id": "is_ok",
"logical_operator": "and",
"conditions": [
{ "from": "fetch", "path": "status", "op": "eq", "value": 200 }
]
}Fields§
§id: StringBranch identifier — returned as "branch" in the node output.
logical_operator: LogicalOpHow multiple conditions are combined (default: "and").
conditions: Vec<Condition>Conditions that must hold for this case to match.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Case
impl<'de> Deserialize<'de> for Case
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 Case
impl RefUnwindSafe for Case
impl Send for Case
impl Sync for Case
impl Unpin for Case
impl UnsafeUnpin for Case
impl UnwindSafe for Case
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