[−][src]Struct gherkin_rust::FeatureBuilder
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]
Trait Implementations
impl Clone for FeatureBuilder
[src]
fn clone(&self) -> FeatureBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for FeatureBuilder
[src]
fn default() -> FeatureBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for FeatureBuilder
impl Send for FeatureBuilder
impl Sync for FeatureBuilder
impl Unpin for FeatureBuilder
impl UnwindSafe for FeatureBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,