Module types

Module types 

Source
Expand description

Drone + run types. Mirrors the frontend shape so RPC payloads flow through serde_json::to_value without manual mapping.

Structs§

BlockState
DroneDefinition
Wstore row shape. Matches db_drone_definitions schema.
DroneGraph
Top-level graph payload — what the canvas saves and the executor reads.
DroneRun
One row in db_drone_runs. Append-only history of executions.
DroneViewport
FlowEdge
xyflow Edge — source/target ids, optional handle ids.
FlowNode
Position-and-data shape of a node on the canvas. Mirrors xyflow’s Node — id, position, data, type are the fields the canvas reads. Anything inside data is block-specific config.
NodePosition

Enums§

BlockKind
Block (node) kinds for Phase 1. Phase 2 adds Function, Loop, Parallel, Router, Subdrone. Stored as kind field on FlowNode.data.
RunStatus