pub struct ScannedShip {
pub symbol: String,
pub registration: ShipRegistration,
pub nav: ShipNav,
pub frame: Option<ScannedShipFrame>,
pub reactor: Option<ScannedShipReactor>,
pub engine: ScannedShipEngine,
pub mounts: Option<Vec<ScannedShipMountsInner>>,
}Expand description
The ship that was scanned. Details include information about the ship that could be detected by the scanner.
Fields§
§symbol: StringThe globally unique identifier of the ship.
registration: ShipRegistration§frame: Option<ScannedShipFrame>§reactor: Option<ScannedShipReactor>§engine: ScannedShipEngine§mounts: Option<Vec<ScannedShipMountsInner>>List of mounts installed in the ship.
Implementations§
Source§impl ScannedShip
impl ScannedShip
Sourcepub fn new(
symbol: String,
registration: ShipRegistration,
nav: ShipNav,
engine: ScannedShipEngine,
) -> ScannedShip
pub fn new( symbol: String, registration: ShipRegistration, nav: ShipNav, engine: ScannedShipEngine, ) -> ScannedShip
Create value with optional fields set to None.
Trait Implementations§
Source§impl Clone for ScannedShip
impl Clone for ScannedShip
Source§fn clone(&self) -> ScannedShip
fn clone(&self) -> ScannedShip
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScannedShip
impl Debug for ScannedShip
Source§impl<'de> Deserialize<'de> for ScannedShip
impl<'de> Deserialize<'de> for ScannedShip
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
Source§impl PartialEq for ScannedShip
impl PartialEq for ScannedShip
Source§impl Serialize for ScannedShip
impl Serialize for ScannedShip
impl StructuralPartialEq for ScannedShip
Auto Trait Implementations§
impl Freeze for ScannedShip
impl RefUnwindSafe for ScannedShip
impl Send for ScannedShip
impl Sync for ScannedShip
impl Unpin for ScannedShip
impl UnwindSafe for ScannedShip
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