Struct gherkin_rust::ScenarioBuilder [−][src]
pub struct ScenarioBuilder { /* fields omitted */ }
Builder for Scenario
.
Methods
impl ScenarioBuilder
[src]
impl ScenarioBuilder
pub fn name(&mut self, value: String) -> &mut Self
[src]
pub fn name(&mut self, value: String) -> &mut Self
The name of the scenario.
pub fn steps(&mut self, value: Vec<Step>) -> &mut Self
[src]
pub fn steps(&mut self, value: Vec<Step>) -> &mut Self
The parsed steps from the scenario directive.
pub fn examples(&mut self, value: Option<Examples>) -> &mut Self
[src]
pub fn examples(&mut self, value: Option<Examples>) -> &mut Self
The tags for the scenarios directive if provided.
pub fn position(&mut self, value: (usize, usize)) -> &mut Self
[src]
pub fn position(&mut self, value: (usize, usize)) -> &mut Self
The (line, col)
position the scenario directive was found in the .feature file.
pub fn build(&self) -> Result<Scenario, String>
[src]
pub fn build(&self) -> Result<Scenario, String>
Trait Implementations
impl Default for ScenarioBuilder
[src]
impl Default for ScenarioBuilder
fn default() -> ScenarioBuilder
[src]
fn default() -> ScenarioBuilder
Returns the "default value" for a type. Read more
impl Clone for ScenarioBuilder
[src]
impl Clone for ScenarioBuilder
fn clone(&self) -> ScenarioBuilder
[src]
fn clone(&self) -> ScenarioBuilder
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
Auto Trait Implementations
impl Send for ScenarioBuilder
impl Send for ScenarioBuilder
impl Sync for ScenarioBuilder
impl Sync for ScenarioBuilder