pub struct ShipCrew {
pub current: i32,
pub required: i32,
pub capacity: i32,
pub rotation: Rotation,
pub morale: u32,
pub wages: u32,
}Expand description
The ship’s crew service and maintain the ship’s systems and equipment.
Fields§
§current: i32The current number of crew members on the ship.
required: i32The minimum number of crew members required to maintain the ship.
capacity: i32The maximum number of crew members the ship can support.
rotation: RotationThe rotation of crew shifts. A stricter shift improves the ship’s performance. A more relaxed shift improves the crew’s morale.
morale: u32A rough measure of the crew’s morale. A higher morale means the crew is happier and more productive. A lower morale means the ship is more prone to accidents.
wages: u32The amount of credits per crew member paid per hour. Wages are paid when a ship docks at a civilized waypoint.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ShipCrew
impl<'de> Deserialize<'de> for ShipCrew
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 StructuralPartialEq for ShipCrew
Auto Trait Implementations§
impl Freeze for ShipCrew
impl RefUnwindSafe for ShipCrew
impl Send for ShipCrew
impl Sync for ShipCrew
impl Unpin for ShipCrew
impl UnwindSafe for ShipCrew
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