pub struct StoryStep {
pub action: Trigger,
pub checks: Vec<Fact>,
pub steps: Vec<StepText>,
pub span: Span,
pub group: usize,
pub written: Vec<StepText>,
}Expand description
One “When …” of a story and the “Then …“s the story checks after it.
Fields§
§action: Trigger§checks: Vec<Fact>§steps: Vec<StepText>§span: Span§group: usizeWhich written step it came from: a phrase of several actions makes several steps of one group, which docs show as one step.
written: Vec<StepText>The group’s lines as written (When, And, Then), on its first step only. steps has
what each step does, phrases spelt out, for the test report.
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