pub struct Passage {
pub name: String,
pub tags: Vec<String>,
pub meta: Map<String, Value>,
pub content: String,
}
Expand description
Representation of a passage in a Story.
Fields§
§name: String
The name of the passage.
The passage tags. Cannot contain spaces.
meta: Map<String, Value>
The passage metadata.
content: String
The text content of the passage.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Passage
impl RefUnwindSafe for Passage
impl Send for Passage
impl Sync for Passage
impl Unpin for Passage
impl UnwindSafe for Passage
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