pub struct Stats {}
Fields§
§id: f64
Identification Number
xp: f64
Experience Points
hp: f64
Health Points
mp: f64
Mana Points
xp_next: f64
Experience Points multiplier for next level
hp_max: f64
Max Health Points
mp_max: f64
Max Mana Points
level: f64
Current Level
speed: f64
The speed
gp: f64
your currency points
atk: f64
Attack
def: f64
Defense
m_atk: f64
Mana Attack
m_def: f64
Mana Defense
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
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
Source§impl Random for Stats
impl Random for Stats
impl Copy for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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