pub struct ScannedWaypoint {
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 that was scanned by a ship.
Fields§
§symbol: StringSymbol of the waypoint.
type: WaypointType§system_symbol: StringSymbol of the system.
x: i32Position in the universe in the x axis.
y: i32Position in the universe in the y axis.
orbitals: Vec<WaypointOrbital>List of waypoints that orbit this waypoint.
faction: Option<WaypointFaction>§traits: Vec<WaypointTrait>The traits of the waypoint.
chart: Option<Chart>Implementations§
Source§impl ScannedWaypoint
impl ScannedWaypoint
Sourcepub fn new(
symbol: String,
type: WaypointType,
system_symbol: String,
x: i32,
y: i32,
orbitals: Vec<WaypointOrbital>,
traits: Vec<WaypointTrait>,
) -> ScannedWaypoint
pub fn new( symbol: String, type: WaypointType, system_symbol: String, x: i32, y: i32, orbitals: Vec<WaypointOrbital>, traits: Vec<WaypointTrait>, ) -> ScannedWaypoint
Create value with optional fields set to None.
Trait Implementations§
Source§impl Clone for ScannedWaypoint
impl Clone for ScannedWaypoint
Source§fn clone(&self) -> ScannedWaypoint
fn clone(&self) -> ScannedWaypoint
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 ScannedWaypoint
impl Debug for ScannedWaypoint
Source§impl<'de> Deserialize<'de> for ScannedWaypoint
impl<'de> Deserialize<'de> for ScannedWaypoint
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 ScannedWaypoint
impl PartialEq for ScannedWaypoint
Source§impl Serialize for ScannedWaypoint
impl Serialize for ScannedWaypoint
impl StructuralPartialEq for ScannedWaypoint
Auto Trait Implementations§
impl Freeze for ScannedWaypoint
impl RefUnwindSafe for ScannedWaypoint
impl Send for ScannedWaypoint
impl Sync for ScannedWaypoint
impl Unpin for ScannedWaypoint
impl UnwindSafe for ScannedWaypoint
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