pub struct Section {Show 13 fields
pub id: SectionId,
pub parent: Option<SectionId>,
pub name: String,
pub slug: String,
pub path: String,
pub description: Vec<String>,
pub setup: Condition,
pub setup_steps: Vec<StepText>,
pub start: Condition,
pub span: Option<Span>,
pub children: Vec<SectionId>,
pub features: Vec<FeatureId>,
pub stories: Vec<StoryId>,
}Expand description
A group of features and stories that share a setup, nested like a book’s chapters: one per
directory of the suite. Everything in a section starts from its start.
Fields§
§id: SectionId§parent: Option<SectionId>§name: String§slug: StringUnique in the suite: its ancestors’ slugs and its own, joined by “–”. Empty for the root.
path: StringIts directory, relative to the suite’s. Empty for the root.
description: Vec<String>§setup: ConditionWhat its Background adds to its parent’s.
setup_steps: Vec<StepText>§start: ConditionThe state everything in it starts from: its parent’s start with setup written over it.
span: Option<Span>§children: Vec<SectionId>§features: Vec<FeatureId>§stories: Vec<StoryId>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnsafeUnpin for Section
impl UnwindSafe for Section
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