pub struct StoryChoice {
pub label: String,
pub target: u32,
pub condition: Option<StoryCondition>,
}Expand description
One option in a StoryNode’s choice menu.
Fields§
§label: StringButton text.
target: u32BehaviorNode index chosen; play continues at that node’s first page.
condition: Option<StoryCondition>Condition gating the option: shown only while it passes. None is
always shown.
Trait Implementations§
Source§impl Clone for StoryChoice
impl Clone for StoryChoice
Source§fn clone(&self) -> StoryChoice
fn clone(&self) -> StoryChoice
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 Debug for StoryChoice
impl Debug for StoryChoice
Source§impl Default for StoryChoice
impl Default for StoryChoice
Source§fn default() -> StoryChoice
fn default() -> StoryChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoryChoicewhere
StoryChoice: Default,
impl<'de> Deserialize<'de> for StoryChoicewhere
StoryChoice: Default,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoryChoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StoryChoice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StoryChoice
impl Serialize for StoryChoice
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StoryChoice
impl RefUnwindSafe for StoryChoice
impl Send for StoryChoice
impl Sync for StoryChoice
impl Unpin for StoryChoice
impl UnsafeUnpin for StoryChoice
impl UnwindSafe for StoryChoice
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