native_node_wrapper

Attribute Macro native_node_wrapper 

Source
#[native_node_wrapper]
Expand description

Wrap a native DepthAI node that is created via Pipeline::create_node_by_name("ClassName").

Minimal usage:

use depthai::native_node_wrapper;

#[native_node_wrapper(native = "StereoDepth")]
pub struct StereoDepthNode {
    node: depthai::pipeline::Node,
}

Options:

  • native = <LitStr>: required. The C++ class name of the node.
  • field = <ident>: optional, defaults to node.
  • as_node = true|false: optional, defaults to true.
  • inputs(...): optional, list of input port names.
  • outputs(...): optional, list of output port names.