pub struct ScannedSystem {
pub distance: i64,
pub sector_symbol: ScannedSystemSectorSymbol,
pub symbol: ScannedSystemSymbol,
pub type_: SystemType,
pub x: i64,
pub y: i64,
}Expand description
Details of a system was that scanned.
JSON schema
{
"description": "Details of a system was that scanned.",
"type": "object",
"required": [
"distance",
"sectorSymbol",
"symbol",
"type",
"x",
"y"
],
"properties": {
"distance": {
"description": "The system's distance from the scanning ship.",
"type": "integer"
},
"sectorSymbol": {
"description": "Symbol of the system's sector.",
"type": "string",
"minLength": 1
},
"symbol": {
"description": "Symbol of the system.",
"type": "string",
"minLength": 1
},
"type": {
"$ref": "#/components/schemas/SystemType"
},
"x": {
"description": "Position in the universe in the x axis.",
"type": "integer"
},
"y": {
"description": "Position in the universe in the y axis.",
"type": "integer"
}
}
}Fields§
§distance: i64The system’s distance from the scanning ship.
sector_symbol: ScannedSystemSectorSymbolSymbol of the system’s sector.
symbol: ScannedSystemSymbolSymbol of the system.
type_: SystemType§x: i64Position in the universe in the x axis.
y: i64Position in the universe in the y axis.
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 (const: unstable) · 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 ScannedSystem
impl Debug for ScannedSystem
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
Auto Trait Implementations§
impl Freeze for ScannedSystem
impl RefUnwindSafe for ScannedSystem
impl Send for ScannedSystem
impl Sync for ScannedSystem
impl Unpin for ScannedSystem
impl UnsafeUnpin 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