Struct gherkin_rust::ScenarioBuilder [−][src]
pub struct ScenarioBuilder { /* fields omitted */ }Builder for Scenario.
Methods
impl ScenarioBuilder[src]
impl ScenarioBuilderpub fn name(&mut self, value: String) -> &mut Self[src]
pub fn name(&mut self, value: String) -> &mut SelfThe name of the scenario.
pub fn steps(&mut self, value: Vec<Step>) -> &mut Self[src]
pub fn steps(&mut self, value: Vec<Step>) -> &mut SelfThe 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 SelfThe 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 SelfThe (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 ScenarioBuilderfn default() -> ScenarioBuilder[src]
fn default() -> ScenarioBuilderReturns the "default value" for a type. Read more
impl Clone for ScenarioBuilder[src]
impl Clone for ScenarioBuilderfn clone(&self) -> ScenarioBuilder[src]
fn clone(&self) -> ScenarioBuilderReturns 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 ScenarioBuilderimpl Sync for ScenarioBuilder
impl Sync for ScenarioBuilder