pub struct Scenario {
pub keyword: String,
pub name: String,
pub steps: Vec<Step>,
pub examples: Option<Examples>,
pub tags: Vec<String>,
pub span: Span,
pub position: LineCol,
}Expand description
A scenario
Fields§
§keyword: StringThe raw keyword used in the original source.
name: StringThe name of the scenario.
steps: Vec<Step>The parsed steps from the scenario directive.
examples: Option<Examples>The tags for the scenarios directive if provided.
span: SpanThe (start, end) offset the scenario directive was found in the .feature file.
position: LineColThe (line, col) position the scenario directive was found in the .feature file.
Implementations§
Source§impl Scenario
impl Scenario
Sourcepub fn builder() -> ScenarioBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> ScenarioBuilder<((), (), (), (), (), (), ())>
Create a builder for building Scenario.
On the builder, call .keyword(...), .name(...), .steps(...), .examples(...)(optional), .tags(...)(optional), .span(...)(optional), .position(...)(optional) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of Scenario.
Trait Implementations§
impl Eq for Scenario
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl Freeze for Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnwindSafe for Scenario
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