pub struct BranchOne {
pub branches: Vec<BranchOneBranchesInner>,
pub default: Vec<FlowModule>,
pub type: Type,
}Expand description
BranchOne : Conditional branching where only the first matching branch executes. Branches are evaluated in order, and the first one with a true expression runs. If no branches match, the default branch executes
Fields§
§branches: Vec<BranchOneBranchesInner>Array of branches to evaluate in order. The first branch with expr evaluating to true executes
default: Vec<FlowModule>Steps to execute if no branch expressions match
type: TypeImplementations§
Source§impl BranchOne
impl BranchOne
Sourcepub fn new(
branches: Vec<BranchOneBranchesInner>,
default: Vec<FlowModule>,
type: Type,
) -> BranchOne
pub fn new( branches: Vec<BranchOneBranchesInner>, default: Vec<FlowModule>, type: Type, ) -> BranchOne
Conditional branching where only the first matching branch executes. Branches are evaluated in order, and the first one with a true expression runs. If no branches match, the default branch executes
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BranchOne
impl<'de> Deserialize<'de> for BranchOne
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
impl StructuralPartialEq for BranchOne
Auto Trait Implementations§
impl Freeze for BranchOne
impl RefUnwindSafe for BranchOne
impl Send for BranchOne
impl Sync for BranchOne
impl Unpin for BranchOne
impl UnwindSafe for BranchOne
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