pub struct Step {
    pub keyword: String,
    pub ty: StepType,
    pub value: String,
    pub docstring: Option<String>,
    pub table: Option<Table>,
    pub span: Span,
    pub position: LineCol,
}Expand description
A scenario step
Fields§
§keyword: StringThe raw keyword used in the original source, including But and And.
ty: StepTypeThe step type for the step after parsed in context.
value: StringThe value of the step after the type.
docstring: Option<String>A docstring, if provided.
table: Option<Table>A data table, if provided.
span: SpanThe (start, end) offset the step directive was found in the .feature file.
position: LineColThe (line, col) position the step directive was found in the .feature file.
Implementations§
Source§impl Step
 
impl Step
Sourcepub fn builder() -> StepBuilder<((), (), (), (), (), (), ())>
 
pub fn builder() -> StepBuilder<((), (), (), (), (), (), ())>
Create a builder for building Step.
On the builder, call .keyword(...), .ty(...), .value(...), .docstring(...)(optional), .table(...)(optional), .span(...)(optional), .position(...)(optional) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of Step.
Trait Implementations§
impl Eq for Step
impl StructuralPartialEq for Step
Auto Trait Implementations§
impl Freeze for Step
impl RefUnwindSafe for Step
impl Send for Step
impl Sync for Step
impl Unpin for Step
impl UnwindSafe for Step
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