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