pub struct Scenario {
pub name: String,
pub given: Vec<String>,
pub when: Vec<String>,
pub then: Vec<String>,
pub raw: String,
pub line: u32,
pub range: [usize; 2],
}Expand description
A #### Scenario: block.
Fields§
§name: StringIts name.
given: Vec<String>GIVEN lines (an AND after one is added to it).
when: Vec<String>WHEN lines.
then: Vec<String>THEN lines.
raw: StringThe block as written.
line: u321-based line of its heading.
range: [usize; 2]Byte range in the delta file.
Trait Implementations§
impl Eq for Scenario
impl StructuralPartialEq for Scenario
Auto Trait Implementations§
impl Freeze for Scenario
impl RefUnwindSafe for Scenario
impl Send for Scenario
impl Sync for Scenario
impl Unpin for Scenario
impl UnsafeUnpin for Scenario
impl UnwindSafe for Scenario
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