pub struct Story {
pub id: StoryId,
pub section: SectionId,
pub name: String,
pub slug: String,
pub narrative: Vec<String>,
pub description: Vec<String>,
pub span: Span,
pub scenarios: Vec<Scenario>,
}Expand description
“As a tea drinker, I want …, so that …”, told through one or more scenarios.
Fields§
§id: StoryId§section: SectionId§name: String§slug: String§narrative: Vec<String>The user story: its “As a …”, “I want …” and “So that …” lines.
description: Vec<String>The rest of the story’s text: its introduction in the docs.
span: Span§scenarios: Vec<Scenario>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Story
impl RefUnwindSafe for Story
impl Send for Story
impl Sync for Story
impl Unpin for Story
impl UnsafeUnpin for Story
impl UnwindSafe for Story
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