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: f32
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Regiment
impl<'de> Deserialize<'de> for Regiment
sourcefn 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 RefUnwindSafe for Regiment
impl Send for Regiment
impl Sync for Regiment
impl Unpin for Regiment
impl UnwindSafe for Regiment
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more