pub struct CombatStats {
pub max_health: u32,
pub max_mana: u32,
pub defense: u32,
pub damage: u32,
pub critical_damage_multiplier: f64,
pub critical_hit_rate: f64,
}
Fields§
§max_health: u32
§max_mana: u32
§defense: u32
§damage: u32
§critical_damage_multiplier: f64
§critical_hit_rate: f64
Trait Implementations§
Source§impl Clone for CombatStats
impl Clone for CombatStats
Source§fn clone(&self) -> CombatStats
fn clone(&self) -> CombatStats
Returns a copy 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<'de> Deserialize<'de> for CombatStats
impl<'de> Deserialize<'de> for CombatStats
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 CombatStats
impl RefUnwindSafe for CombatStats
impl Send for CombatStats
impl Sync for CombatStats
impl Unpin for CombatStats
impl UnwindSafe for CombatStats
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