Struct gherkin_rust::StepBuilder [−][src]
pub struct StepBuilder { /* fields omitted */ }
Builder for Step
.
Methods
impl StepBuilder
[src]
impl StepBuilder
pub fn ty(&mut self, value: StepType) -> &mut Self
[src]
pub fn ty(&mut self, value: StepType) -> &mut Self
The step type for the step after parsed in context.
pub fn raw_type(&mut self, value: String) -> &mut Self
[src]
pub fn raw_type(&mut self, value: String) -> &mut Self
The original raw step type, including But
and And
.
pub fn value(&mut self, value: String) -> &mut Self
[src]
pub fn value(&mut self, value: String) -> &mut Self
The value of the step after the type.
pub fn docstring(&mut self, value: Option<String>) -> &mut Self
[src]
pub fn docstring(&mut self, value: Option<String>) -> &mut Self
A docstring, if provided.
pub fn table(&mut self, value: Option<Table>) -> &mut Self
[src]
pub fn table(&mut self, value: Option<Table>) -> &mut Self
A data table, 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 step directive was found in the .feature file.
pub fn build(&self) -> Result<Step, String>
[src]
pub fn build(&self) -> Result<Step, String>
Trait Implementations
impl Default for StepBuilder
[src]
impl Default for StepBuilder
fn default() -> StepBuilder
[src]
fn default() -> StepBuilder
Returns the "default value" for a type. Read more
impl Clone for StepBuilder
[src]
impl Clone for StepBuilder
fn clone(&self) -> StepBuilder
[src]
fn clone(&self) -> StepBuilder
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 StepBuilder
impl Send for StepBuilder
impl Sync for StepBuilder
impl Sync for StepBuilder