pub struct SystemWaypoint {
pub symbol: String,
pub type: WaypointType,
pub x: i32,
pub y: i32,
}Expand description
Fields§
§symbol: StringThe symbol of the waypoint.
type: WaypointType§x: i32Position in the universe in the x axis.
y: i32Position in the universe in the y axis.
Implementations§
Source§impl SystemWaypoint
impl SystemWaypoint
Sourcepub fn new(symbol: String, type: WaypointType, x: i32, y: i32) -> SystemWaypoint
pub fn new(symbol: String, type: WaypointType, x: i32, y: i32) -> SystemWaypoint
Create value with optional fields set to None.
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<'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