pub struct Workflow {Show 13 fields
pub workflow_id: WorkflowId,
pub session_id: SessionId,
pub name: String,
pub kind: WorkflowKind,
pub harness: Option<HarnessId>,
pub terminal_id: TerminalId,
pub agents: Vec<Agent>,
pub status: WorkflowStatus,
pub started_at: u64,
pub ended_at: Option<u64>,
pub restored: bool,
pub terminal_history: Vec<WorkflowTerminal>,
pub run: Option<Box<WorkflowRun>>,
}Fields§
§workflow_id: WorkflowId§session_id: SessionId§name: String§kind: WorkflowKind§harness: Option<HarnessId>The harness filling a single-agent workflow’s role.
terminal_id: TerminalIdThe workflow’s own shell, or a single agent’s harness. Zero when it couldn’t restart, and for agents workflows, whose agents have the terminals instead.
agents: Vec<Agent>In role order. Empty unless the workflow’s kind is WorkflowKind::Agents.
status: WorkflowStatus§started_at: u64§ended_at: Option<u64>§restored: boolRestored from storage, with fresh shells or archived output for stopped harnesses.
terminal_history: Vec<WorkflowTerminal>Earlier terminal invocations, in creation order, retained independently of Activity spans.
run: Option<Box<WorkflowRun>>Present for a workflow executing a pinned type.
Trait Implementations§
impl Eq for Workflow
impl StructuralPartialEq for Workflow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.