pub struct Interaction {
pub pages: Vec<Page>,
pub ending: DialogueEnding,
}
Fields§
§pages: Vec<Page>
§ending: DialogueEnding
Implementations§
Source§impl Interaction
impl Interaction
Sourcepub fn push_choice(&mut self, to_push: DialogueChoice) -> Result<(), ParseError>
pub fn push_choice(&mut self, to_push: DialogueChoice) -> Result<(), ParseError>
Will try to either push onto the list or start a list. It will error if there’s currently a goto label.
Trait Implementations§
Source§impl Clone for Interaction
impl Clone for Interaction
Source§fn clone(&self) -> Interaction
fn clone(&self) -> Interaction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Interaction
impl Debug for Interaction
Source§impl Default for Interaction
impl Default for Interaction
Source§fn default() -> Interaction
fn default() -> Interaction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Interaction
impl<'de> Deserialize<'de> for Interaction
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
Source§impl PartialEq for Interaction
impl PartialEq for Interaction
Source§impl Serialize for Interaction
impl Serialize for Interaction
impl StructuralPartialEq for Interaction
Auto Trait Implementations§
impl Freeze for Interaction
impl RefUnwindSafe for Interaction
impl Send for Interaction
impl Sync for Interaction
impl Unpin for Interaction
impl UnwindSafe for Interaction
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