pub struct Waypoint {
pub symbol: String,
pub type: WaypointType,
pub system_symbol: String,
pub x: i32,
pub y: i32,
pub orbitals: Vec<WaypointOrbital>,
pub orbits: Option<String>,
pub faction: Option<Box<WaypointFaction>>,
pub traits: Vec<WaypointTrait>,
pub modifiers: Option<Vec<WaypointModifier>>,
pub chart: Option<Box<Chart>>,
pub is_under_construction: bool,
}Expand description
Waypoint : A waypoint is a location that ships can travel to such as a Planet, Moon or Space Station.
Fields§
§symbol: StringThe symbol of the waypoint.
type: WaypointType§system_symbol: StringThe symbol of the system.
x: i32Relative position of the waypoint on the system’s x axis. This is not an absolute position in the universe.
y: i32Relative position of the waypoint on the system’s y axis. This is not an absolute position in the universe.
orbitals: Vec<WaypointOrbital>Waypoints that orbit this waypoint.
orbits: Option<String>The symbol of the parent waypoint, if this waypoint is in orbit around another waypoint. Otherwise this value is undefined.
faction: Option<Box<WaypointFaction>>§traits: Vec<WaypointTrait>The traits of the waypoint.
modifiers: Option<Vec<WaypointModifier>>The modifiers of the waypoint.
chart: Option<Box<Chart>>§is_under_construction: boolTrue if the waypoint is under construction.
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>,
is_under_construction: bool,
) -> Waypoint
pub fn new( symbol: String, type: WaypointType, system_symbol: String, x: i32, y: i32, orbitals: Vec<WaypointOrbital>, traits: Vec<WaypointTrait>, is_under_construction: bool, ) -> Waypoint
A waypoint is a location that ships can travel to such as a Planet, Moon or Space Station.
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