pub struct NodeIOBuilder {
pub layout: NodeLayout,
pub inputs: HashSet<Uuid>,
pub outputs: HashSet<Uuid>,
pub queries: HashSet<Uuid>,
pub queryables: HashSet<Uuid>,
pub labels: HashMap<Uuid, String>,
}
Expand description
This is the object passed to the user’s lambda function to build the node’s IO layout
Fields§
§layout: NodeLayout
The node layout this io builder is applied to
inputs: HashSet<Uuid>
The runtime only cares about input UUIDs
outputs: HashSet<Uuid>
The runtime only cares about output UUIDs
queries: HashSet<Uuid>
The runtime only cares about query UUIDs
queryables: HashSet<Uuid>
The runtime only cares about queryable UUIDs
labels: HashMap<Uuid, String>
Labels for the node’s IO, useful for debugging and visualization
Implementations§
Source§impl NodeIOBuilder
impl NodeIOBuilder
pub fn new(layout: &NodeLayout) -> NodeIOBuilder
Sourcepub fn input(&mut self, input: impl Into<String>) -> IOLayout
pub fn input(&mut self, input: impl Into<String>) -> IOLayout
Creates a new input layout with the given label
Sourcepub fn output(&mut self, output: impl Into<String>) -> IOLayout
pub fn output(&mut self, output: impl Into<String>) -> IOLayout
Creates a new output layout with the given label
Auto Trait Implementations§
impl Freeze for NodeIOBuilder
impl RefUnwindSafe for NodeIOBuilder
impl Send for NodeIOBuilder
impl Sync for NodeIOBuilder
impl Unpin for NodeIOBuilder
impl UnwindSafe for NodeIOBuilder
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