Struct twee_parser::Story
source · pub struct Story {
pub title: String,
pub passages: Vec<Passage>,
pub meta: Map<String, Value>,
}Expand description
An in-memory representaion of a Twine story.
Fields§
§title: StringThe name of the story.
passages: Vec<Passage>The list of Passages.
meta: Map<String, Value>The metadata.
Please refer to the specification
for standard fields.
To be searializable to HTML, the values have to be strings, except tags, which are supported specifically.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Story
impl Send for Story
impl Sync for Story
impl Unpin 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