pub struct ChoiceOption<D = NoDirective> {
pub tone: String,
pub text: String,
pub line: LineId,
pub steps: Vec<Step<D>>,
}Expand description
One reply the player can pick: * <tone>: <text>, then its reaction.
Fields§
§tone: StringThe reply’s tone (earnest, wry…), for writers; not shown.
text: StringWhat is said, shown in the menu.
line: LineIdThe reply’s id.
steps: Vec<Step<D>>The reaction: steps played after picking this option (no choices).
Trait Implementations§
Source§impl<D: Clone> Clone for ChoiceOption<D>
impl<D: Clone> Clone for ChoiceOption<D>
Source§fn clone(&self) -> ChoiceOption<D>
fn clone(&self) -> ChoiceOption<D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: Debug> Debug for ChoiceOption<D>
impl<D: Debug> Debug for ChoiceOption<D>
Source§impl<'de, D> Deserialize<'de> for ChoiceOption<D>where
D: Deserialize<'de>,
impl<'de, D> Deserialize<'de> for ChoiceOption<D>where
D: Deserialize<'de>,
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
impl<D: Eq> Eq for ChoiceOption<D>
Source§impl<D: PartialEq> PartialEq for ChoiceOption<D>
impl<D: PartialEq> PartialEq for ChoiceOption<D>
Source§impl<D> Serialize for ChoiceOption<D>where
D: Serialize,
impl<D> Serialize for ChoiceOption<D>where
D: Serialize,
impl<D: PartialEq> StructuralPartialEq for ChoiceOption<D>
Auto Trait Implementations§
impl<D> Freeze for ChoiceOption<D>
impl<D> RefUnwindSafe for ChoiceOption<D>where
D: RefUnwindSafe,
impl<D> Send for ChoiceOption<D>where
D: Send,
impl<D> Sync for ChoiceOption<D>where
D: Sync,
impl<D> Unpin for ChoiceOption<D>where
D: Unpin,
impl<D> UnsafeUnpin for ChoiceOption<D>
impl<D> UnwindSafe for ChoiceOption<D>where
D: UnwindSafe,
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