pub struct ConditionData {
pub name: String,
pub condition_type: ConditionType,
pub no_copy: bool,
pub condition: Value,
}Expand description
Data about a particular condition.
Conditions can be applied to Mons as the result of moves or abilities.
Fields§
§name: StringCondition name.
condition_type: ConditionTypeCondition type.
no_copy: boolCan this condition be copied from one Mon to another?
This relates to how “Baton Pass” affects this condition.
condition: ValueDynamic battle effects.
Trait Implementations§
Source§impl Clone for ConditionData
impl Clone for ConditionData
Source§fn clone(&self) -> ConditionData
fn clone(&self) -> ConditionData
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 ConditionData
impl Debug for ConditionData
Source§impl<'de> Deserialize<'de> for ConditionData
impl<'de> Deserialize<'de> for ConditionData
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 ConditionData
impl RefUnwindSafe for ConditionData
impl Send for ConditionData
impl Sync for ConditionData
impl Unpin for ConditionData
impl UnsafeUnpin for ConditionData
impl UnwindSafe for ConditionData
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