pub struct Ship {
pub id: ObjId,
pub name: String,
pub home: ProvinceId,
pub _type: String,
pub morale: f32,
pub strength: f32,
}
Fields
id: ObjId
name: String
home: ProvinceId
_type: String
morale: f32
strength: f32
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Ship
impl<'de> Deserialize<'de> for Ship
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 Ship
impl Send for Ship
impl Sync for Ship
impl Unpin for Ship
impl UnwindSafe for Ship
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