pub struct ScannedSystem {
pub symbol: String,
pub sector_symbol: String,
pub type: SystemType,
pub x: i32,
pub y: i32,
pub distance: i32,
}Expand description
ScannedSystem : Details of a system was that scanned.
Fields§
§symbol: StringSymbol of the system.
sector_symbol: StringSymbol of the system’s sector.
type: SystemType§x: i32Position in the universe in the x axis.
y: i32Position in the universe in the y axis.
distance: i32The system’s distance from the scanning ship.
Implementations§
Source§impl ScannedSystem
impl ScannedSystem
Sourcepub fn new(
symbol: String,
sector_symbol: String,
type: SystemType,
x: i32,
y: i32,
distance: i32,
) -> ScannedSystem
pub fn new( symbol: String, sector_symbol: String, type: SystemType, x: i32, y: i32, distance: i32, ) -> ScannedSystem
Details of a system was that scanned.
Trait Implementations§
Source§impl Clone for ScannedSystem
impl Clone for ScannedSystem
Source§fn clone(&self) -> ScannedSystem
fn clone(&self) -> ScannedSystem
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScannedSystem
impl Debug for ScannedSystem
Source§impl Default for ScannedSystem
impl Default for ScannedSystem
Source§fn default() -> ScannedSystem
fn default() -> ScannedSystem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScannedSystem
impl<'de> Deserialize<'de> for ScannedSystem
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 ScannedSystem
impl PartialEq for ScannedSystem
Source§impl Serialize for ScannedSystem
impl Serialize for ScannedSystem
impl StructuralPartialEq for ScannedSystem
Auto Trait Implementations§
impl Freeze for ScannedSystem
impl RefUnwindSafe for ScannedSystem
impl Send for ScannedSystem
impl Sync for ScannedSystem
impl Unpin for ScannedSystem
impl UnwindSafe for ScannedSystem
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