Struct hapi_rs::session::NodeBuilder
source · pub struct NodeBuilder<'s> { /* private fields */ }
Expand description
Builder struct for Session::node_builder
API
Implementations§
source§impl<'s> NodeBuilder<'s>
impl<'s> NodeBuilder<'s>
sourcepub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
Give new node a label
sourcepub fn with_parent<H: AsRef<NodeHandle>>(self, parent: H) -> Self
pub fn with_parent<H: AsRef<NodeHandle>>(self, parent: H) -> Self
Create new node as child of a parent node.
sourcepub fn create(self) -> Result<HoudiniNode>
pub fn create(self) -> Result<HoudiniNode>
Consume the builder and create the node