pub struct AbilityEffect {
pub effect_type: String,
pub duration: u32,
pub magnitude: i32,
pub chance: f32,
}Expand description
An effect applied by an ability.
Fields§
§effect_type: String§duration: u32§magnitude: i32§chance: f32Trait Implementations§
Source§impl Clone for AbilityEffect
impl Clone for AbilityEffect
Source§fn clone(&self) -> AbilityEffect
fn clone(&self) -> AbilityEffect
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 AbilityEffect
impl Debug for AbilityEffect
Source§impl<'de> Deserialize<'de> for AbilityEffect
impl<'de> Deserialize<'de> for AbilityEffect
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 AbilityEffect
impl RefUnwindSafe for AbilityEffect
impl Send for AbilityEffect
impl Sync for AbilityEffect
impl Unpin for AbilityEffect
impl UnsafeUnpin for AbilityEffect
impl UnwindSafe for AbilityEffect
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