pub struct NodeMetadata {Show 14 fields
pub name: String,
pub type_name: Option<String>,
pub category: NodeCategory,
pub description: String,
pub author: String,
pub version: String,
pub signal_inputs: usize,
pub signal_outputs: usize,
pub control_inputs: usize,
pub control_outputs: usize,
pub clock_inputs: usize,
pub clock_outputs: usize,
pub feedback_ports: usize,
pub parameters: Vec<ParamMetadata>,
}Expand description
Metadata about a node
Fields§
§name: StringName of the node
type_name: Option<String>Canonical type name used for serialization / factory lookup
(e.g. Some("rill/sine_osc")). When None, [name] is used instead.
category: NodeCategoryCategory of the node
description: StringDescription of what the node does
Author of the node
version: StringVersion of the node
signal_inputs: usizeNumber of signal input ports
signal_outputs: usizeNumber of signal output ports
control_inputs: usizeNumber of control input ports
control_outputs: usizeNumber of control output ports
clock_inputs: usizeNumber of clock input ports
clock_outputs: usizeNumber of clock output ports
feedback_ports: usizeNumber of feedback ports
parameters: Vec<ParamMetadata>Parameters exposed by the node
Implementations§
Source§impl NodeMetadata
impl NodeMetadata
Sourcepub fn new(name: &str, category: NodeCategory) -> NodeMetadata
pub fn new(name: &str, category: NodeCategory) -> NodeMetadata
Create new node metadata with minimal info
Trait Implementations§
Source§impl Clone for NodeMetadata
impl Clone for NodeMetadata
Source§fn clone(&self) -> NodeMetadata
fn clone(&self) -> NodeMetadata
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 NodeMetadata
impl RefUnwindSafe for NodeMetadata
impl Send for NodeMetadata
impl Sync for NodeMetadata
impl Unpin for NodeMetadata
impl UnsafeUnpin for NodeMetadata
impl UnwindSafe for NodeMetadata
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