pub struct Story {
pub title: String,
pub passages: Vec<Passage>,
pub meta: Map<String, Value>,
}
Expand description
An in-memory representation of a Twine story.
Fields§
§title: String
The 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 serializable to HTML, the values have to be strings, except tags, which are supported specifically.
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 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