pub struct Definition {Show 15 fields
pub id: String,
pub node_type: String,
pub version: String,
pub parent_id: Option<String>,
pub name: String,
pub position: Position,
pub metadata: Metadata,
pub parameters: Value,
pub input_ports: Vec<Port>,
pub output_ports: Vec<Port>,
pub nodes: Option<Vec<Definition>>,
pub edges: Option<Vec<Edge>>,
pub settings: Option<PipelineSettings>,
pub requires: Vec<Dependency>,
pub fields: BTreeMap<String, FieldDef>,
}Expand description
Full document shape for a node in a .bnto.json file.
This is the authoring view – richer than PipelineNode (which is the
execution-pruned view). The settings field is only meaningful at the
root of a recipe document; nested nodes typically omit it.
Fields§
§id: String§node_type: String§version: String§parent_id: Option<String>§name: String§position: Position§metadata: Metadata§parameters: Value§input_ports: Vec<Port>§output_ports: Vec<Port>§nodes: Option<Vec<Definition>>§edges: Option<Vec<Edge>>§settings: Option<PipelineSettings>§requires: Vec<Dependency>Recipe-level dependencies — external tools needed at runtime. Only meaningful at the root of a recipe document; nested nodes omit it.
fields: BTreeMap<String, FieldDef>User-facing field declarations for recipe-level controls. When present, the TUI/editor renders these instead of raw processor params.
Trait Implementations§
Source§impl Clone for Definition
impl Clone for Definition
Source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
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 moreSource§impl Debug for Definition
impl Debug for Definition
Source§impl<'de> Deserialize<'de> for Definition
impl<'de> Deserialize<'de> for Definition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Definition
impl PartialEq for Definition
Source§impl Serialize for Definition
impl Serialize for Definition
impl StructuralPartialEq for Definition
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnsafeUnpin for Definition
impl UnwindSafe for Definition
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