pub struct UnitStats {
pub hp: i32,
pub speed: f32,
pub combat_rating: i32,
pub build_time: f32,
}Expand description
Unit stats — the numeric properties of a unit type.
Fields§
§hp: i32§speed: f32§combat_rating: i32§build_time: f32Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitStats
impl<'de> Deserialize<'de> for UnitStats
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 StructuralPartialEq for UnitStats
Auto Trait Implementations§
impl Freeze for UnitStats
impl RefUnwindSafe for UnitStats
impl Send for UnitStats
impl Sync for UnitStats
impl Unpin for UnitStats
impl UnsafeUnpin for UnitStats
impl UnwindSafe for UnitStats
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