[][src]Struct gherkin_rust::FeatureBuilder

pub struct FeatureBuilder { /* fields omitted */ }

Builder for Feature.

Methods

impl FeatureBuilder[src]

pub fn name(&mut self, value: String) -> &mut Self[src]

The name of the feature.

pub fn description(&mut self, value: Option<String>) -> &mut Self[src]

The description of the feature, if found.

pub fn background(&mut self, value: Option<Background>) -> &mut Self[src]

The background of the feature, if found.

pub fn scenarios(&mut self, value: Vec<Scenario>) -> &mut Self[src]

The scenarios for the feature.

pub fn rules(&mut self, value: Vec<Rule>) -> &mut Self[src]

The rules for the feature.

pub fn tags(&mut self, value: Option<Vec<String>>) -> &mut Self[src]

The tags for the feature if provided.

pub fn position(&mut self, value: (usize, usize)) -> &mut Self[src]

The (line, col) position the feature directive was found in the .feature file.

pub fn build(&self) -> Result<Feature, String>[src]

Builds a new Feature.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for FeatureBuilder[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for FeatureBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]