pub struct WorkflowInfo {
pub description: String,
pub source_code: Option<String>,
pub sub_workflows: Vec<String>,
pub category: Option<String>,
pub version: Option<String>,
pub input_schema: Option<Value>,
pub default_labels: HashMap<String, String>,
}Expand description
Metadata about a workflow, returned by WorkflowHandler::describe.
Contains a human-readable description and optional Rust source code for display in the dashboard.
Fields§
§description: StringHuman-readable description of what the workflow does.
source_code: Option<String>Optional Rust source code of the handler (for UI display).
sub_workflows: Vec<String>Names of sub-workflows invoked by this handler.
category: Option<String>Optional /-separated category path used to group workflows in the UI tree.
A value like "data/etl" places the workflow under data → etl.
None means the workflow is uncategorized.
version: Option<String>Handler version string, used to trace which code produced a given run.
input_schema: Option<Value>JSON Schema describing the expected input payload.
When present, the dashboard renders a dynamic form from this schema and the engine validates the payload before creating a run.
default_labels: HashMap<String, String>Labels automatically applied to every run of this workflow.
Trait Implementations§
Source§impl Clone for WorkflowInfo
impl Clone for WorkflowInfo
Source§fn clone(&self) -> WorkflowInfo
fn clone(&self) -> WorkflowInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more