pub struct SystemWaypoint {
pub symbol: String,
pub type: WaypointType,
pub x: i32,
pub y: i32,
pub orbitals: Vec<WaypointOrbital>,
pub orbits: Option<String>,
}Expand description
SystemWaypoint : Waypoint details.
Fields§
§symbol: StringThe symbol of the waypoint.
type: WaypointType§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.
Implementations§
Source§impl SystemWaypoint
impl SystemWaypoint
Sourcepub fn new(
symbol: String,
type: WaypointType,
x: i32,
y: i32,
orbitals: Vec<WaypointOrbital>,
) -> SystemWaypoint
pub fn new( symbol: String, type: WaypointType, x: i32, y: i32, orbitals: Vec<WaypointOrbital>, ) -> SystemWaypoint
Waypoint details.
Trait Implementations§
Source§impl Clone for SystemWaypoint
impl Clone for SystemWaypoint
Source§fn clone(&self) -> SystemWaypoint
fn clone(&self) -> SystemWaypoint
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 SystemWaypoint
impl Debug for SystemWaypoint
Source§impl Default for SystemWaypoint
impl Default for SystemWaypoint
Source§fn default() -> SystemWaypoint
fn default() -> SystemWaypoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemWaypoint
impl<'de> Deserialize<'de> for SystemWaypoint
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 SystemWaypoint
impl PartialEq for SystemWaypoint
Source§impl Serialize for SystemWaypoint
impl Serialize for SystemWaypoint
impl StructuralPartialEq for SystemWaypoint
Auto Trait Implementations§
impl Freeze for SystemWaypoint
impl RefUnwindSafe for SystemWaypoint
impl Send for SystemWaypoint
impl Sync for SystemWaypoint
impl Unpin for SystemWaypoint
impl UnwindSafe for SystemWaypoint
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