pub struct Ship {
pub symbol: String,
pub registration: Box<ShipRegistration>,
pub nav: Box<ShipNav>,
pub crew: Box<ShipCrew>,
pub frame: Box<ShipFrame>,
pub reactor: Box<ShipReactor>,
pub engine: Box<ShipEngine>,
pub cooldown: Box<Cooldown>,
pub modules: Vec<ShipModule>,
pub mounts: Vec<ShipMount>,
pub cargo: Box<ShipCargo>,
pub fuel: Box<ShipFuel>,
}Expand description
Ship : Ship details.
Fields§
§symbol: StringThe globally unique identifier of the ship in the following format: [AGENT_SYMBOL]-[HEX_ID]
registration: Box<ShipRegistration>§crew: Box<ShipCrew>§frame: Box<ShipFrame>§reactor: Box<ShipReactor>§engine: Box<ShipEngine>§cooldown: Box<Cooldown>§modules: Vec<ShipModule>Modules installed in this ship.
mounts: Vec<ShipMount>Mounts installed in this ship.
cargo: Box<ShipCargo>§fuel: Box<ShipFuel>Implementations§
Source§impl Ship
impl Ship
Sourcepub fn new(
symbol: String,
registration: ShipRegistration,
nav: ShipNav,
crew: ShipCrew,
frame: ShipFrame,
reactor: ShipReactor,
engine: ShipEngine,
cooldown: Cooldown,
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, cooldown: Cooldown, modules: Vec<ShipModule>, mounts: Vec<ShipMount>, cargo: ShipCargo, fuel: ShipFuel, ) -> Ship
Ship details.
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