Skip to main content

butterflow_models/
lib.rs

1pub mod error;
2pub mod node;
3pub mod runtime;
4pub mod state;
5pub mod state_diff;
6pub mod step;
7pub mod strategy;
8pub mod task;
9pub mod template;
10pub mod trigger;
11pub mod variable;
12pub mod workflow;
13
14// Re-export types
15pub use error::Error;
16pub use node::Node;
17pub use runtime::{Runtime, RuntimeType};
18pub use state::{StateSchema, StateSchemaItems, StateSchemaProperty, StateSchemaType};
19pub use state_diff::{DiffOperation, FieldDiff, StateDiff, TaskDiff, WorkflowRunDiff};
20pub use step::{Step, TemplateUse};
21pub use strategy::{Strategy, StrategyType};
22pub use task::{Task, TaskStatus};
23pub use template::{Template, TemplateInput, TemplateOutput};
24pub use trigger::{Trigger, TriggerType};
25pub use variable::resolve_variables;
26pub use workflow::{Workflow, WorkflowRun, WorkflowState, WorkflowStatus};
27
28pub type Result<T> = std::result::Result<T, Error>;