pub struct ShipNav {
pub system_symbol: String,
pub waypoint_symbol: String,
pub route: ShipNavRoute,
pub status: ShipNavStatus,
pub flight_mode: ShipNavFlightMode,
}Expand description
The navigation information of the ship.
Fields§
§system_symbol: StringThe system symbol of the ship’s current location.
waypoint_symbol: StringThe waypoint symbol of the ship’s current location, or if the ship is in-transit, the waypoint symbol of the ship’s destination.
route: ShipNavRoute§status: ShipNavStatus§flight_mode: ShipNavFlightModeImplementations§
Sourcepub fn new(
system_symbol: String,
waypoint_symbol: String,
route: ShipNavRoute,
status: ShipNavStatus,
flight_mode: ShipNavFlightMode,
) -> ShipNav
pub fn new( system_symbol: String, waypoint_symbol: String, route: ShipNavRoute, status: ShipNavStatus, flight_mode: ShipNavFlightMode, ) -> ShipNav
Create value with optional fields set to None.
Trait Implementations§
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
Auto Trait Implementations§
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