pub enum DialogueEnding {
Choices(Vec<DialogueChoice>),
Label(Label),
End,
}Variants§
Choices(Vec<DialogueChoice>)
Show a list of choices for the user to pick from
Label(Label)
Go to a different interaction
End
Implementations§
Source§impl DialogueEnding
impl DialogueEnding
pub fn append_choice( &mut self, choice: DialogueChoice, ) -> Result<(), ParseError>
Trait Implementations§
Source§impl Clone for DialogueEnding
impl Clone for DialogueEnding
Source§fn clone(&self) -> DialogueEnding
fn clone(&self) -> DialogueEnding
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 DialogueEnding
impl Debug for DialogueEnding
Source§impl Default for DialogueEnding
impl Default for DialogueEnding
Source§fn default() -> DialogueEnding
fn default() -> DialogueEnding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DialogueEnding
impl<'de> Deserialize<'de> for DialogueEnding
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 DialogueEnding
impl PartialEq for DialogueEnding
Source§impl Serialize for DialogueEnding
impl Serialize for DialogueEnding
impl StructuralPartialEq for DialogueEnding
Auto Trait Implementations§
impl Freeze for DialogueEnding
impl RefUnwindSafe for DialogueEnding
impl Send for DialogueEnding
impl Sync for DialogueEnding
impl Unpin for DialogueEnding
impl UnwindSafe for DialogueEnding
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