Struct gherkin_rust::Scenario [−][src]
pub struct Scenario { pub name: String, pub steps: Vec<Step>, pub examples: Option<Examples>, pub tags: Option<Vec<String>>, pub position: (usize, usize), }
A scenario
Fields
name: String
The name of the scenario.
steps: Vec<Step>
The parsed steps from the scenario directive.
examples: Option<Examples>
The tags for the scenarios directive if provided.
position: (usize, usize)
The (line, col)
position the scenario directive was found in the .feature file.
Trait Implementations
impl Debug for Scenario
[src]
impl Debug for Scenario
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 Scenario
[src]
impl Clone for Scenario
fn clone(&self) -> Scenario
[src]
fn clone(&self) -> Scenario
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 Scenario
[src]
impl PartialEq for Scenario
fn eq(&self, other: &Scenario) -> bool
[src]
fn eq(&self, other: &Scenario) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Scenario) -> bool
[src]
fn ne(&self, other: &Scenario) -> bool
This method tests for !=
.
impl Hash for Scenario
[src]
impl Hash for Scenario
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 Scenario
[src]
impl Eq for Scenario
impl<'a> From<Pair<'a, Rule>> for Scenario
[src]
impl<'a> From<Pair<'a, Rule>> for Scenario