Struct gherkin_rust::Feature[][src]

pub struct Feature {
    pub name: String,
    pub description: Option<String>,
    pub background: Option<Background>,
    pub scenarios: Vec<Scenario>,
    pub tags: Option<Vec<String>>,
    pub position: (usize, usize),
}

A feature

Fields

The name of the feature.

The description of the feature, if found.

The background of the feature, if found.

The scenarios for the feature.

The tags for the feature if provided.

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

Methods

impl Feature
[src]

Trait Implementations

impl Debug for Feature
[src]

Formats the value using the given formatter. Read more

impl Clone for Feature
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Feature
[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 Feature
[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 Feature
[src]

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

Performs the conversion.

impl<'a> From<&'a str> for Feature
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Feature

impl Sync for Feature