pub struct StepExecutionRequest<'a> {
pub index: usize,
pub keyword: StepKeyword,
pub text: &'a str,
pub docstring: Option<&'a str>,
pub table: Option<&'a [&'a [&'a str]]>,
pub feature_path: &'a str,
pub scenario_name: &'a str,
}Expand description
Groups step identification, data, and diagnostic context for execution.
This struct bundles all the information needed to execute a single scenario step,
reducing the parameter count of execute_step and making call sites more readable.
§Fields
index- Zero-based step index for error messageskeyword- The step keyword (Given, When, Then, etc.)text- The step text to match against patternsdocstring- Optional docstring argumenttable- Optional data table argumentfeature_path- Path to the feature file for diagnosticsscenario_name- Name of the scenario for diagnostics
Fields§
§index: usizeZero-based step index for error messages.
keyword: StepKeywordThe step keyword (Given, When, Then, etc.).
text: &'a strThe step text to match against patterns.
docstring: Option<&'a str>Optional docstring argument.
table: Option<&'a [&'a [&'a str]]>Optional data table argument.
feature_path: &'a strPath to the feature file for diagnostics.
scenario_name: &'a strName of the scenario for diagnostics.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Forget for StepExecutionRequest<'a>
impl<'a> Freeze for StepExecutionRequest<'a>
impl<'a> RefUnwindSafe for StepExecutionRequest<'a>
impl<'a> Send for StepExecutionRequest<'a>
impl<'a> Sync for StepExecutionRequest<'a>
impl<'a> Unpin for StepExecutionRequest<'a>
impl<'a> UnsafeUnpin for StepExecutionRequest<'a>
impl<'a> UnwindSafe for StepExecutionRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more