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
name: String
The name of the feature.
description: Option<String>
The description of the feature, if found.
background: Option<Background>
The background of the feature, if found.
scenarios: Vec<Scenario>
The scenarios for the feature.
The tags for the feature if provided.
position: (usize, usize)
The (line, col)
position the feature directive was found in the .feature file.
Methods
impl Feature
[src]
impl Feature
Trait Implementations
impl Debug for Feature
[src]
impl Debug for Feature
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Feature
[src]
impl Clone for Feature
fn clone(&self) -> Feature
[src]
fn clone(&self) -> Feature
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Feature
[src]
impl PartialEq for Feature
fn eq(&self, other: &Feature) -> bool
[src]
fn eq(&self, other: &Feature) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Feature) -> bool
[src]
fn ne(&self, other: &Feature) -> bool
This method tests for !=
.
impl Hash for Feature
[src]
impl Hash for Feature
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for Feature
[src]
impl Eq for Feature
impl<'a> From<Pair<'a, Rule>> for Feature
[src]
impl<'a> From<Pair<'a, Rule>> for Feature
impl<'a> From<&'a str> for Feature
[src]
impl<'a> From<&'a str> for Feature