pub struct NodeMetadataBuilder { /* private fields */ }Expand description
Builder for NodeMetadata
Implementations§
Source§impl NodeMetadataBuilder
impl NodeMetadataBuilder
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Set the node description
Sourcepub fn input(self, name: &str, accepts_types: &[PacketType]) -> Self
pub fn input(self, name: &str, accepts_types: &[PacketType]) -> Self
Add an input pin
Sourcepub fn output(self, name: &str, produces_type: PacketType) -> Self
pub fn output(self, name: &str, produces_type: PacketType) -> Self
Add an output pin
Sourcepub fn param_schema(self, schema: Value) -> Self
pub fn param_schema(self, schema: Value) -> Self
Set parameter schema
Sourcepub fn build(self) -> NodeMetadata
pub fn build(self) -> NodeMetadata
Build the metadata
Auto Trait Implementations§
impl Freeze for NodeMetadataBuilder
impl RefUnwindSafe for NodeMetadataBuilder
impl Send for NodeMetadataBuilder
impl Sync for NodeMetadataBuilder
impl Unpin for NodeMetadataBuilder
impl UnwindSafe for NodeMetadataBuilder
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