pub struct GraphNode {
pub id: String,
pub run_path: String,
pub parent_id: Option<String>,
pub region: Option<NodeRegion>,
pub body: GraphNodeBody,
}Expand description
One graph node. id is the flow-scoped stepId (unique across the
whole flow incl. nested regions — compiler-guaranteed, 08 §3.2).
Serde stays lenient because of the flattened kind body (the StepIR pattern); the schema closes the shape via schemars.
Fields§
§id: StringNode id = static stepId.
run_path: StringThe static runPath anchor (canonical string, no iteration/attempt
frames): the join point for run-state overlay and deep links
(08 §3.2 — strip [i]/[i:key] from RunOverview.steps keys to
land on this anchor).
parent_id: Option<String>Enclosing step node, when nested inside if/foreach.
region: Option<NodeRegion>Sub-region of the parent this node belongs to.
body: GraphNodeBodyKind-specific node body; the discriminant aligns with step kinds.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphNode
impl<'de> Deserialize<'de> for GraphNode
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 JsonSchema for GraphNode
impl JsonSchema for GraphNode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for GraphNode
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
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