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<Army, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Army, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Army
Source§impl Serialize for Army
impl Serialize for Army
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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