pub struct DialogueChoice {
pub text: String,
pub label: Option<Label>,
}Expand description
One choice in a list of dialogue choices
Fields§
§text: StringText displayed for the choice Not necessarily unique…
label: Option<Label>Function/Interaction to run when this choice is picked
Trait Implementations§
Source§impl Clone for DialogueChoice
impl Clone for DialogueChoice
Source§fn clone(&self) -> DialogueChoice
fn clone(&self) -> DialogueChoice
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 DialogueChoice
impl Debug for DialogueChoice
Source§impl<'de> Deserialize<'de> for DialogueChoice
impl<'de> Deserialize<'de> for DialogueChoice
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 DialogueChoice
impl PartialEq for DialogueChoice
Source§impl Serialize for DialogueChoice
impl Serialize for DialogueChoice
impl StructuralPartialEq for DialogueChoice
Auto Trait Implementations§
impl Freeze for DialogueChoice
impl RefUnwindSafe for DialogueChoice
impl Send for DialogueChoice
impl Sync for DialogueChoice
impl Unpin for DialogueChoice
impl UnwindSafe for DialogueChoice
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