pub struct NodeInfo<'a> {
pub name: &'a str,
pub params: Vec<&'a str>,
pub annotations: &'a [Annotation],
pub is_entry: bool,
pub resumes_ask: bool,
pub jumps_to: Vec<&'a str>,
pub asks: Vec<AskInfo<'a>>,
pub branch_count: usize,
}Expand description
What a builder or host can read about one node.
Fields§
§name: &'a strThe node’s name.
params: Vec<&'a str>The node’s parameter names, in order.
annotations: &'a [Annotation]The annotations on the node declaration.
is_entry: boolTrue when the flow lists the node under entry.
resumes_ask: boolTrue when an ask continues here.
jumps_to: Vec<&'a str>Nodes this node can jump to, in branch order, without repeats.
asks: Vec<AskInfo<'a>>Each ask in this node, in branch order.
branch_count: usizeNumber of branches, counting else or the single outcome.
Trait Implementations§
impl<'a> StructuralPartialEq for NodeInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for NodeInfo<'a>
impl<'a> RefUnwindSafe for NodeInfo<'a>
impl<'a> Send for NodeInfo<'a>
impl<'a> Sync for NodeInfo<'a>
impl<'a> Unpin for NodeInfo<'a>
impl<'a> UnsafeUnpin for NodeInfo<'a>
impl<'a> UnwindSafe for NodeInfo<'a>
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