Struct gherkin_rust::Step[][src]

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,
}

A scenario step

Fields

keyword: String

The raw keyword used in the original source, including But and And.

ty: StepType

The step type for the step after parsed in context.

value: String

The value of the step after the type.

docstring: Option<String>

A docstring, if provided.

table: Option<Table>

A data table, if provided.

span: Span

The (start, end) offset the step directive was found in the .feature file.

position: LineCol

The (line, col) position the step directive was found in the .feature file.

Implementations

impl Step[src]

pub fn builder() -> StepBuilder<((), (), (), (), (), (), ())>[src]

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.

impl Step[src]

pub fn docstring(&self) -> Option<&String>[src]

pub fn table(&self) -> Option<&Table>[src]

Trait Implementations

impl Clone for Step[src]

impl Debug for Step[src]

impl Display for Step[src]

impl Eq for Step[src]

impl Hash for Step[src]

impl PartialEq<Step> for Step[src]

impl StructuralEq for Step[src]

impl StructuralPartialEq for Step[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.