pub struct NodeConfig {
pub id: NodeId,
pub name: String,
pub description: Option<String>,
pub input_ports: Vec<Port>,
pub output_ports: Vec<Port>,
pub function: NodeFunction,
}Expand description
Configuration for a node in the graph
Fields§
§id: NodeIdUnique identifier for the node
name: StringHuman-readable name
description: Option<String>Node description
input_ports: Vec<Port>Input ports
output_ports: Vec<Port>Output ports
function: NodeFunctionExecution function
Implementations§
Source§impl NodeConfig
impl NodeConfig
Trait Implementations§
Source§impl Clone for NodeConfig
impl Clone for NodeConfig
Source§fn clone(&self) -> NodeConfig
fn clone(&self) -> NodeConfig
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 moreAuto Trait Implementations§
impl Freeze for NodeConfig
impl !RefUnwindSafe for NodeConfig
impl Send for NodeConfig
impl Sync for NodeConfig
impl Unpin for NodeConfig
impl !UnwindSafe for NodeConfig
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