pub struct Workflow {
pub id: String,
pub name: String,
pub status: String,
pub input: Option<Value>,
pub output: Option<Value>,
pub metadata: Option<Value>,
pub created_at: i64,
pub updated_at: i64,
pub steps: Vec<WorkflowStep>,
}Expand description
A workflow and its current state.
Fields§
§id: StringUnique identifier for this workflow.
name: StringHuman-readable name for the workflow.
status: StringCurrent status ("pending", "running", "completed", "failed").
input: Option<Value>JSON input payload passed to the workflow.
output: Option<Value>JSON output payload produced by the workflow.
metadata: Option<Value>Arbitrary JSON metadata.
created_at: i64Unix-millisecond timestamp when the workflow was created.
updated_at: i64Unix-millisecond timestamp of the most recent status change.
steps: Vec<WorkflowStep>Steps belonging to this workflow, ordered by step_index.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Workflow
impl RefUnwindSafe for Workflow
impl Send for Workflow
impl Sync for Workflow
impl Unpin for Workflow
impl UnsafeUnpin for Workflow
impl UnwindSafe for Workflow
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