Struct gherkin_rust::Rule[][src]

pub struct Rule {
    pub name: String,
    pub scenarios: Vec<Scenario>,
    pub tags: Option<Vec<String>>,
    pub position: (usize, usize),
}

A rule, as introduced in Gherkin 6.

Fields

The name of the scenario.

The parsed scenarios from the rule directive.

The tags for the rule directive if provided.

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

Trait Implementations

impl Debug for Rule
[src]

Formats the value using the given formatter. Read more

impl Clone for Rule
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Rule
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Rule
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for Rule
[src]

impl<'a> From<Pair<'a, Rule>> for Rule
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Rule

impl Sync for Rule