pub enum Edge {
Always {
to: String,
},
Conditional {
predicate: Arc<dyn Fn(&Value) -> bool + Send + Sync>,
on_true: String,
on_false: String,
},
}Expand description
Outgoing edge from a graph node.
Variants§
Always
Always route to to regardless of node output.
Conditional
Branch on a predicate over the source node’s output.
Auto Trait Implementations§
impl !RefUnwindSafe for Edge
impl !UnwindSafe for Edge
impl Freeze for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
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