pub struct WorkflowExecution {
pub id: String,
pub skill_id: String,
pub skill_version: String,
pub agent_id: String,
pub session_id: Option<String>,
pub capability_id: String,
pub started_at: u64,
pub step_records: Vec<StepRecord>,
pub budget_spent: u64,
pub budget_limit: Option<MonetaryAmount>,
pub time_limit_secs: Option<u64>,
pub active: bool,
/* private fields */
}Expand description
A workflow execution in progress.
Created by WorkflowAuthority::begin() and consumed by finalize().
Fields§
§id: StringUnique execution ID (becomes the receipt ID).
skill_id: StringSkill ID from the manifest.
skill_version: StringSkill version.
agent_id: StringAgent performing the execution.
session_id: Option<String>Session binding.
capability_id: StringCapability ID.
started_at: u64Unix timestamp when execution started.
step_records: Vec<StepRecord>Steps completed so far.
budget_spent: u64Budget spent so far (in policy currency minor units).
budget_limit: Option<MonetaryAmount>Budget limit from grant or manifest.
time_limit_secs: Option<u64>Time limit in seconds.
active: boolWhether the execution is still active.
Implementations§
Source§impl WorkflowExecution
impl WorkflowExecution
Sourcepub fn completed_steps(&self) -> usize
pub fn completed_steps(&self) -> usize
Return the number of completed steps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkflowExecution
impl RefUnwindSafe for WorkflowExecution
impl Send for WorkflowExecution
impl Sync for WorkflowExecution
impl Unpin for WorkflowExecution
impl UnsafeUnpin for WorkflowExecution
impl UnwindSafe for WorkflowExecution
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