pub struct Background {
pub keyword: String,
pub steps: Vec<Step>,
pub span: Span,
pub position: LineCol,
}Expand description
A feature background
Fields§
§keyword: StringThe raw keyword used in the original source.
steps: Vec<Step>The parsed steps from the background directive.
span: SpanThe (start, end) offset the background directive was found in the .feature file.
position: LineColThe (line, col) position the background directive was found in the .feature file.
Implementations§
Source§impl Background
impl Background
Sourcepub fn builder() -> BackgroundBuilder<((), (), (), ())>
pub fn builder() -> BackgroundBuilder<((), (), (), ())>
Create a builder for building Background.
On the builder, call .keyword(...), .steps(...), .span(...)(optional), .position(...)(optional) to set the values of the fields (they accept Into values).
Finally, call .build() to create the instance of Background.
Trait Implementations§
Source§impl Clone for Background
impl Clone for Background
Source§fn clone(&self) -> Background
fn clone(&self) -> Background
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Background
impl Debug for Background
Source§impl Hash for Background
impl Hash for Background
Source§impl PartialEq for Background
impl PartialEq for Background
impl Eq for Background
impl StructuralPartialEq for Background
Auto Trait Implementations§
impl Freeze for Background
impl RefUnwindSafe for Background
impl Send for Background
impl Sync for Background
impl Unpin for Background
impl UnwindSafe for Background
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