pub struct Engine {
pub workflow: WorkflowDef,
pub context: Context,
pub verbose: bool,
pub quiet: bool,
pub json: bool,
pub dry_run: bool,
pub event_bus: EventBus,
pub stack_info: Option<StackInfo>,
/* private fields */
}Fields§
§workflow: WorkflowDef§context: Context§verbose: bool§quiet: bool§json: bool§dry_run: bool§event_bus: EventBusEvent bus for lifecycle events
stack_info: Option<StackInfo>Detected stack info (populated at init if prompts/registry.yaml exists)
Implementations§
Source§impl Engine
impl Engine
pub async fn new( workflow: WorkflowDef, target: String, vars: HashMap<String, Value>, verbose: bool, quiet: bool, ) -> Self
pub async fn with_options( workflow: WorkflowDef, target: String, vars: HashMap<String, Value>, options: EngineOptions, ) -> Self
Sourcepub fn step_records(&self) -> &[StepRecord]
pub fn step_records(&self) -> &[StepRecord]
Return collected step records (for JSON output or testing)
Sourcepub fn json_output(
&self,
status: &str,
total_duration: Duration,
) -> WorkflowJsonOutput
pub fn json_output( &self, status: &str, total_duration: Duration, ) -> WorkflowJsonOutput
Build the JSON summary after execution
pub async fn run(&mut self) -> Result<StepOutput>
pub async fn execute_step( &mut self, step_def: &StepDef, ) -> Result<StepOutput, StepError>
Auto Trait Implementations§
impl Freeze for Engine
impl !RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl !UnwindSafe for Engine
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