Struct gherkin_rust::RuleBuilder [−][src]
pub struct RuleBuilder { /* fields omitted */ }
Builder for Rule
.
Methods
impl RuleBuilder
[src]
impl RuleBuilder
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 scenarios(&mut self, value: Vec<Scenario>) -> &mut Self
[src]
pub fn scenarios(&mut self, value: Vec<Scenario>) -> &mut Self
The parsed scenarios from the rule directive.
The tags for the rule 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 rule directive was found in the .feature file.
pub fn build(&self) -> Result<Rule, String>
[src]
pub fn build(&self) -> Result<Rule, String>
Trait Implementations
impl Default for RuleBuilder
[src]
impl Default for RuleBuilder
fn default() -> RuleBuilder
[src]
fn default() -> RuleBuilder
Returns the "default value" for a type. Read more
impl Clone for RuleBuilder
[src]
impl Clone for RuleBuilder
fn clone(&self) -> RuleBuilder
[src]
fn clone(&self) -> RuleBuilder
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 RuleBuilder
impl Send for RuleBuilder
impl Sync for RuleBuilder
impl Sync for RuleBuilder