pub struct Waypoint {
pub symbol: String,
pub type: WaypointType,
pub system_symbol: String,
pub x: i32,
pub y: i32,
pub orbitals: Vec<WaypointOrbital>,
pub faction: Option<WaypointFaction>,
pub traits: Vec<WaypointTrait>,
pub chart: Option<Chart>,
}Expand description
A waypoint is a location that ships can travel to such as a Planet, Moon or Space Station.
Fields§
§symbol: StringSymbol fo the waypoint.
type: WaypointType§system_symbol: StringThe symbol of the system this waypoint belongs to.
x: i32Position in the universe in the x axis.
y: i32Position in the universe in the Y axis.
orbitals: Vec<WaypointOrbital>Waypoints that orbit this waypoint.
faction: Option<WaypointFaction>§traits: Vec<WaypointTrait>The traits of the waypoint.
chart: Option<Chart>Implementations§
Source§impl Waypoint
impl Waypoint
Sourcepub fn new(
symbol: String,
type: WaypointType,
system_symbol: String,
x: i32,
y: i32,
orbitals: Vec<WaypointOrbital>,
traits: Vec<WaypointTrait>,
) -> Waypoint
pub fn new( symbol: String, type: WaypointType, system_symbol: String, x: i32, y: i32, orbitals: Vec<WaypointOrbital>, traits: Vec<WaypointTrait>, ) -> Waypoint
Create value with optional fields set to None.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Waypoint
impl<'de> Deserialize<'de> for Waypoint
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 Waypoint
Auto Trait Implementations§
impl Freeze for Waypoint
impl RefUnwindSafe for Waypoint
impl Send for Waypoint
impl Sync for Waypoint
impl Unpin for Waypoint
impl UnwindSafe for Waypoint
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