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 Forget for BranchOne
impl Freeze for BranchOnewhere
*const u8 is !null: Freeze,
PhantomData<BranchOneBranchesInner>: Freeze,
PhantomData<FlowModule>: Freeze,
impl Move for BranchOne
impl RefUnwindSafe for BranchOne
impl Send for BranchOnewhere
RawVecInner: Send,
BoxRaw<FlowModuleValue>: Send,
BoxRaw<StopAfterIf>: Send,
BoxRaw<FlowModuleSkipIf>: Send,
BoxRaw<InputTransform>: Send,
BoxRaw<FlowModuleMock>: Send,
BoxRaw<FlowModuleSuspend>: Send,
BoxRaw<Retry>: Send,
BoxRaw<FlowModuleDebouncing>: Send,
impl Sync for BranchOnewhere
RawVecInner: Sync,
BoxRaw<FlowModuleValue>: Sync,
BoxRaw<StopAfterIf>: Sync,
BoxRaw<FlowModuleSkipIf>: Sync,
BoxRaw<InputTransform>: Sync,
BoxRaw<FlowModuleMock>: Sync,
BoxRaw<FlowModuleSuspend>: Sync,
BoxRaw<Retry>: Sync,
BoxRaw<FlowModuleDebouncing>: Sync,
impl Unpin for BranchOnewhere
*const u8 is !null: Unpin,
Box<FlowModuleValue>: Unpin,
Box<StopAfterIf>: Unpin,
Box<FlowModuleSkipIf>: Unpin,
Box<InputTransform>: Unpin,
Box<FlowModuleMock>: Unpin,
Box<FlowModuleSuspend>: Unpin,
Box<Retry>: Unpin,
Box<FlowModuleDebouncing>: Unpin,
impl UnsafeUnpin for BranchOnewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<BranchOneBranchesInner>: UnsafeUnpin,
PhantomData<FlowModule>: UnsafeUnpin,
impl UnwindSafe for BranchOnewhere
RawVecInner: UnwindSafe,
BoxRaw<FlowModuleValue>: UnwindSafe,
BoxRaw<StopAfterIf>: UnwindSafe,
BoxRaw<FlowModuleSkipIf>: UnwindSafe,
BoxRaw<InputTransform>: UnwindSafe,
BoxRaw<FlowModuleMock>: UnwindSafe,
BoxRaw<FlowModuleSuspend>: UnwindSafe,
BoxRaw<Retry>: UnwindSafe,
BoxRaw<FlowModuleDebouncing>: UnwindSafe,
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