pub struct StoryCondition {
pub name: String,
pub op: StoryCompareOp,
pub value: i32,
}Expand description
A condition on a StoryChoice.
Fields§
§name: StringThe variable the condition tests.
op: StoryCompareOpHow the variable compares against value.
value: i32The literal compared against.
Trait Implementations§
Source§impl Clone for StoryCondition
impl Clone for StoryCondition
Source§fn clone(&self) -> StoryCondition
fn clone(&self) -> StoryCondition
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 StoryCondition
impl Debug for StoryCondition
Source§impl Default for StoryCondition
impl Default for StoryCondition
Source§fn default() -> StoryCondition
fn default() -> StoryCondition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StoryConditionwhere
StoryCondition: Default,
impl<'de> Deserialize<'de> for StoryConditionwhere
StoryCondition: Default,
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
Auto Trait Implementations§
impl Freeze for StoryCondition
impl RefUnwindSafe for StoryCondition
impl Send for StoryCondition
impl Sync for StoryCondition
impl Unpin for StoryCondition
impl UnsafeUnpin for StoryCondition
impl UnwindSafe for StoryCondition
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