pub struct Examples {
pub keyword: String,
pub table: Table,
pub tags: Vec<String>,
pub span: Span,
pub position: LineCol,
}
Expand description
Examples for a scenario
Fields§
§keyword: String
The raw keyword used in the original source.
table: Table
The data table from the examples directive.
The tags for the examples directive if provided.
span: Span
The (start, end)
offset the examples directive was found in the .feature file.
position: LineCol
The (line, col)
position the examples directive was found in the .feature file.
Implementations§
Source§impl Examples
impl Examples
Sourcepub fn builder() -> ExamplesBuilder<((), (), (), (), ())>
pub fn builder() -> ExamplesBuilder<((), (), (), (), ())>
Create a builder for building Examples
.
On the builder, call .keyword(...)
, .table(...)
, .tags(...)
(optional), .span(...)
(optional), .position(...)
(optional) to set the values of the fields (they accept Into
values).
Finally, call .build()
to create the instance of Examples
.
Trait Implementations§
impl Eq for Examples
impl StructuralPartialEq for Examples
Auto Trait Implementations§
impl Freeze for Examples
impl RefUnwindSafe for Examples
impl Send for Examples
impl Sync for Examples
impl Unpin for Examples
impl UnwindSafe for Examples
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