pub struct Workflow {
pub id: String,
pub name: String,
pub status: String,
pub input: Option<Value>,
pub output: Option<Value>,
pub error: Option<String>,
pub metadata: Option<Value>,
pub created_at: i64,
pub updated_at: i64,
pub step_count: 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.
error: Option<String>Error message if the workflow failed.
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.
step_count: i64Number of steps in this workflow (populated by list_workflows; full
step objects are only fetched by get_workflow).
steps: Vec<WorkflowStep>Steps belonging to this workflow, ordered by step_index.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Workflow
impl<'de> Deserialize<'de> for Workflow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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