pub struct Ship {
pub symbol: String,
pub registration: ShipRegistration,
pub nav: ShipNav,
pub crew: ShipCrew,
pub frame: ShipFrame,
pub reactor: ShipReactor,
pub engine: ShipEngine,
pub modules: Vec<ShipModule>,
pub mounts: Vec<ShipMount>,
pub cargo: ShipCargo,
pub fuel: ShipFuel,
}Expand description
Ship details.
Fields§
§symbol: StringThe globally unique identifier of the ship in the following format: [AGENT_SYMBOL]-[HEX_ID]
registration: ShipRegistration§crew: ShipCrew§frame: ShipFrame§reactor: ShipReactor§engine: ShipEngine§modules: Vec<ShipModule>Modules installed in this ship.
mounts: Vec<ShipMount>Mounts installed in this ship.
cargo: ShipCargo§fuel: ShipFuelImplementations§
Source§impl Ship
impl Ship
Sourcepub fn new(
symbol: String,
registration: ShipRegistration,
nav: ShipNav,
crew: ShipCrew,
frame: ShipFrame,
reactor: ShipReactor,
engine: ShipEngine,
modules: Vec<ShipModule>,
mounts: Vec<ShipMount>,
cargo: ShipCargo,
fuel: ShipFuel,
) -> Ship
pub fn new( symbol: String, registration: ShipRegistration, nav: ShipNav, crew: ShipCrew, frame: ShipFrame, reactor: ShipReactor, engine: ShipEngine, modules: Vec<ShipModule>, mounts: Vec<ShipMount>, cargo: ShipCargo, fuel: ShipFuel, ) -> Ship
Create value with optional fields set to None.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ship
impl<'de> Deserialize<'de> for Ship
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 Ship
Auto Trait Implementations§
impl Freeze for Ship
impl RefUnwindSafe for Ship
impl Send for Ship
impl Sync for Ship
impl Unpin for Ship
impl UnwindSafe for Ship
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