pub struct StoryStep {
pub keyword: String,
pub text: String,
pub id: Option<String>,
pub mode: Option<String>,
pub wrapped: Option<bool>,
pub duration_ms: Option<f64>,
pub docs: Option<Vec<DocEntry>>,
pub assertions: Option<u32>,
pub started_at_ms: Option<f64>,
}Fields§
§keyword: String§text: String§id: Option<String>§mode: Option<String>§wrapped: Option<bool>§duration_ms: Option<f64>§docs: Option<Vec<DocEntry>>§assertions: Option<u32>Assertions attributable to this step.
Rust has no assertion counter, so this is set only when the author wraps
a claim in expect_step/fn_step("Then", ..). None means unobserved,
which is not the same as zero.
started_at_ms: Option<f64>When the step started (epoch ms): the step call, or a wrapped body’s start.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StoryStep
impl RefUnwindSafe for StoryStep
impl Send for StoryStep
impl Sync for StoryStep
impl Unpin for StoryStep
impl UnsafeUnpin for StoryStep
impl UnwindSafe for StoryStep
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