Crate ironflow_macros

Crate ironflow_macros 

Source
Expand description

Procedural macros for the ironflow workflow engine.

§HasWorkflowId Derive Macro

Automatically implements HasWorkflowId for enum input types.

§Usage

#[derive(HasWorkflowId)]
#[workflow_id(order_id)]  // default field name for all variants
enum OrderInput {
    Create { order_id: String, items: Vec<Item> },
    Confirm { order_id: String },
    #[workflow_id(id)]  // override for this variant
    Cancel { id: String },
}

Derive Macros§

HasWorkflowId
Derives HasWorkflowId for an enum.