pub struct StepDefn {
pub text: String,
pub table: Option<Vec<Vec<String>>>,
pub docstring: Option<String>,
pub line: usize,
pub span: Span,
}Expand description
One authored step, ready for binding.
Fields§
§text: StringStep text (keyword stripped, outline placeholders substituted).
table: Option<Vec<Vec<String>>>Data-table rows (outline placeholders substituted), when present.
docstring: Option<String>Docstring, when present (raw request bodies; outline placeholders
substituted, exactly as in text and table). Naming the substitution
on the two fields above and not this one read as a deliberate exception:
a data-driven request body is the reason to reach for it.
line: usize1-based line of the step (anchors + events).
span: SpanByte span in the normalized source.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepDefn
impl RefUnwindSafe for StepDefn
impl Send for StepDefn
impl Sync for StepDefn
impl Unpin for StepDefn
impl UnsafeUnpin for StepDefn
impl UnwindSafe for StepDefn
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