pub struct StepSuccess {
pub step_name: String,
pub result_text: Option<String>,
pub metadata: HashMap<String, String>,
pub markers: Vec<String>,
pub context: String,
pub child_run_id: Option<String>,
pub iteration: u32,
pub structured_output: Option<String>,
pub output_file: Option<String>,
}Expand description
Input describing a successfully completed step, passed to record_step_success.
Groups the step output data that previously made call sites unwieldy.
Does not include step_key — that is an execution bookkeeping concern kept
as a separate parameter. iteration is included because it is needed to
populate ContextEntry.
Fields§
§step_name: String§result_text: Option<String>§metadata: HashMap<String, String>Executor-provided metric metadata (keys from runkon_flow::constants::metadata_keys).
markers: Vec<String>§context: String§child_run_id: Option<String>§iteration: u32§structured_output: Option<String>§output_file: Option<String>Implementations§
Source§impl StepSuccess
impl StepSuccess
Sourcepub fn from_action_output(
output: &ActionOutput,
step_name: String,
context: String,
iteration: u32,
output_file: Option<String>,
) -> Self
pub fn from_action_output( output: &ActionOutput, step_name: String, context: String, iteration: u32, output_file: Option<String>, ) -> Self
Build a StepSuccess from an [ActionOutput] plus execution bookkeeping.
Sourcepub fn from_workflow_run_step(
step_name: String,
step: &WorkflowRunStep,
markers: Vec<String>,
context: String,
iteration: u32,
) -> Self
pub fn from_workflow_run_step( step_name: String, step: &WorkflowRunStep, markers: Vec<String>, context: String, iteration: u32, ) -> Self
Build a StepSuccess from a database WorkflowRunStep record.
Trait Implementations§
Source§impl Clone for StepSuccess
impl Clone for StepSuccess
Source§fn clone(&self) -> StepSuccess
fn clone(&self) -> StepSuccess
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StepSuccess
impl Debug for StepSuccess
Source§impl Default for StepSuccess
impl Default for StepSuccess
Source§fn default() -> StepSuccess
fn default() -> StepSuccess
Returns the “default value” for a type. Read more
Source§impl From<StepSuccess> for ContextEntry
impl From<StepSuccess> for ContextEntry
Source§fn from(success: StepSuccess) -> Self
fn from(success: StepSuccess) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StepSuccess
impl RefUnwindSafe for StepSuccess
impl Send for StepSuccess
impl Sync for StepSuccess
impl Unpin for StepSuccess
impl UnsafeUnpin for StepSuccess
impl UnwindSafe for StepSuccess
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