#[non_exhaustive]pub struct StepResult {
pub name: String,
pub step_type: String,
pub status: String,
pub value: Option<ResultValue>,
pub index: i32,
pub block_level: i32,
pub total_time: f64,
pub report_text: String,
pub error: ResultError,
pub units: Option<String>,
pub limits: Option<Limits>,
}Expand description
One entry from an execution’s result list.
Plain data, deliberately: the COM objects behind a result belong to the execution that produced them, so a host that wants to keep results after the run must keep values rather than references.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe step that recorded this result.
step_type: StringThat step’s type, for example NumericLimitTest.
status: StringThe outcome the engine recorded: Passed, Failed, Done, Error,
Skipped, or a status a sequence set itself.
value: Option<ResultValue>The measurement, when the step recorded one.
A numeric limit test yields a number, a string value test a string, and an action neither, which is why this is optional rather than defaulted to zero or an empty string.
index: i32Where this result sits in the order the engine recorded them.
block_level: i32How deeply the step was nested, for a view that indents by depth.
total_time: f64Seconds the step took, as the engine measured it.
report_text: StringThe line the engine recorded for a report, empty when it recorded none.
error: ResultErrorWhat went wrong, if anything did.
Always present rather than optional: every result carries the Error
container, and occurred is the flag that says whether the rest of it
means anything.
units: Option<String>The unit the measurement was taken in, when the step recorded one.
limits: Option<Limits>The range the measurement was checked against.
Only step types that compare against bounds record these, so an action
or a pass/fail test leaves it None rather than reporting a range it
never had.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more