pub struct BranchNode {
pub condition: BranchCondition,
pub then_edge: NodeId,
pub else_edge: Option<NodeId>,
}Expand description
A conditional routing node. Evaluates a condition and directs flow to one of two target nodes.
Fields§
§condition: BranchConditionThe condition to evaluate.
then_edge: NodeIdTarget node when condition is true.
else_edge: Option<NodeId>Target node when condition is false. None means the false branch is skipped (flow continues past the branch).
Trait Implementations§
Source§impl Clone for BranchNode
impl Clone for BranchNode
Source§fn clone(&self) -> BranchNode
fn clone(&self) -> BranchNode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BranchNode
impl Debug for BranchNode
Source§impl<'de> Deserialize<'de> for BranchNode
impl<'de> Deserialize<'de> for BranchNode
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
Source§impl PartialEq for BranchNode
impl PartialEq for BranchNode
Source§impl Serialize for BranchNode
impl Serialize for BranchNode
impl StructuralPartialEq for BranchNode
Auto Trait Implementations§
impl Freeze for BranchNode
impl RefUnwindSafe for BranchNode
impl Send for BranchNode
impl Sync for BranchNode
impl Unpin for BranchNode
impl UnsafeUnpin for BranchNode
impl UnwindSafe for BranchNode
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