pub struct Army {
pub id: ArmyId,
pub name: String,
pub government: GovernmentId,
pub commander: PersonId,
pub location: TerritoryId,
pub strength: u32,
pub morale: u16,
pub transit: Option<TransitState>,
}Fields§
§id: ArmyId§name: String§government: GovernmentId§commander: PersonId§location: TerritoryId§strength: u32§morale: u16§transit: Option<TransitState>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Army
impl<'de> Deserialize<'de> for Army
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 Army
impl StructuralPartialEq for Army
Auto Trait Implementations§
impl Freeze for Army
impl RefUnwindSafe for Army
impl Send for Army
impl Sync for Army
impl Unpin for Army
impl UnsafeUnpin for Army
impl UnwindSafe for Army
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