Struct ayaka_runtime::Paragraph
source · pub struct Paragraph {
pub tag: String,
pub title: Option<String>,
pub texts: Vec<Line>,
pub next: Option<Text>,
}Expand description
The paragraph in a paragraph config.
Fields§
§tag: StringThe tag and key of a paragraph.
They are referenced in next.
title: Option<String>The title of a paragraph.
It can be None, but better with a human-readable one.
texts: Vec<Line>The texts.
They will be parsed into ayaka_primitive::Text later.
next: Option<Text>The next paragraph.
If None, the game meets the end.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Paragraph
impl<'de> Deserialize<'de> for Paragraph
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for Paragraph
impl Send for Paragraph
impl Sync for Paragraph
impl Unpin for Paragraph
impl UnwindSafe for Paragraph
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