pub struct UnitType {
pub id: UnitTypeId,
pub name: String,
pub race: Race,
pub supply: R32,
/* private fields */
}Expand description
Unit or structure
Fields§
§id: UnitTypeIdId
name: StringName
race: RaceRace
supply: R32Supply
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitType
impl<'de> Deserialize<'de> for UnitType
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 UnitType
Auto Trait Implementations§
impl Freeze for UnitType
impl RefUnwindSafe for UnitType
impl Send for UnitType
impl Sync for UnitType
impl Unpin for UnitType
impl UnwindSafe for UnitType
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