Skip to main content

StepResult

Struct StepResult 

Source
#[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
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§name: String

The step that recorded this result.

§step_type: String

That step’s type, for example NumericLimitTest.

§status: String

The 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: i32

Where this result sits in the order the engine recorded them.

§block_level: i32

How deeply the step was nested, for a view that indents by depth.

§total_time: f64

Seconds the step took, as the engine measured it.

§report_text: String

The line the engine recorded for a report, empty when it recorded none.

§error: ResultError

What 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

Source§

fn clone(&self) -> StepResult

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StepResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for StepResult

Source§

fn eq(&self, other: &StepResult) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for StepResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.