pub struct Regiment {
pub id: ObjId,
pub name: String,
pub home: ProvinceId,
pub _type: String,
pub morale: f32,
pub drill: f32,
pub strength: f32,
}Fields§
§id: ObjId§name: String§home: ProvinceId§_type: String§morale: f32§drill: f32§strength: f32Trait Implementations§
Source§impl<'de> Deserialize<'de> for Regiment
impl<'de> Deserialize<'de> for Regiment
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
Auto Trait Implementations§
impl Freeze for Regiment
impl RefUnwindSafe for Regiment
impl Send for Regiment
impl Sync for Regiment
impl Unpin for Regiment
impl UnwindSafe for Regiment
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