pub struct NodeDef {
pub id: String,
pub kind: NodeKind,
pub input_from: Option<String>,
pub output_to: Option<String>,
}Expand description
One node in the workflow graph.
Does not deny_unknown_fields: serde’s flatten (needed to tag
kind inline with the node’s other fields) is documented as
incompatible with deny_unknown_fields on the same struct — combining
them rejects every legitimate kind-tagged payload, not just typos.
Unknown top-level keys on a node are silently ignored as a result;
WorkflowDef, AgentConfig, and EdgeDef (no flatten field)
keep the strict check.
Fields§
§id: StringUnique node id, referenced by entry and edges.
kind: NodeKindWhat this node does.
input_from: Option<String>Envelope field this node reads as its input. Unused by subflow.
output_to: Option<String>Envelope field this node writes its output to. Unused by subflow.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NodeDef
impl<'de> Deserialize<'de> for NodeDef
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
impl StructuralPartialEq for NodeDef
Auto Trait Implementations§
impl Freeze for NodeDef
impl RefUnwindSafe for NodeDef
impl Send for NodeDef
impl Sync for NodeDef
impl Unpin for NodeDef
impl UnsafeUnpin for NodeDef
impl UnwindSafe for NodeDef
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