pub struct HitEffect {
pub boosts: Option<BoostTable>,
pub heal_percent: Option<Fraction<u16>>,
pub status: Option<String>,
pub volatile_status: Option<String>,
pub side_condition: Option<String>,
pub slot_condition: Option<String>,
pub weather: Option<String>,
pub pseudo_weather: Option<String>,
pub terrain: Option<String>,
pub force_switch: bool,
}Expand description
The effect of being hit by a move.
Fields§
§boosts: Option<BoostTable>Stat boosts.
heal_percent: Option<Fraction<u16>>Percentage of target’s HP to heal.
status: Option<String>Status applied.
volatile_status: Option<String>Volatile status applied.
side_condition: Option<String>Side condition applied.
slot_condition: Option<String>Slot condition applied.
weather: Option<String>Weather applied.
pseudo_weather: Option<String>Pseudo-weather applied.
terrain: Option<String>Terrain applied.
force_switch: boolForce the target to switch out?
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HitEffect
impl<'de> Deserialize<'de> for HitEffect
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 Eq for HitEffect
impl StructuralPartialEq for HitEffect
Auto Trait Implementations§
impl Freeze for HitEffect
impl RefUnwindSafe for HitEffect
impl Send for HitEffect
impl Sync for HitEffect
impl Unpin for HitEffect
impl UnsafeUnpin for HitEffect
impl UnwindSafe for HitEffect
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.