pub struct System {
pub symbol: String,
pub sector_symbol: String,
pub constellation: Option<String>,
pub name: Option<String>,
pub type: SystemType,
pub x: i32,
pub y: i32,
pub waypoints: Vec<SystemWaypoint>,
pub factions: Vec<SystemFaction>,
}Expand description
System : System details.
Fields§
§symbol: StringThe symbol of the system.
sector_symbol: StringThe symbol of the sector.
constellation: Option<String>The constellation that the system is part of.
name: Option<String>The name of the system.
type: SystemType§x: i32Relative position of the system in the sector in the x axis.
y: i32Relative position of the system in the sector in the y axis.
waypoints: Vec<SystemWaypoint>Waypoints in this system.
factions: Vec<SystemFaction>Factions that control this system.
Implementations§
Source§impl System
impl System
Sourcepub fn new(
symbol: String,
sector_symbol: String,
type: SystemType,
x: i32,
y: i32,
waypoints: Vec<SystemWaypoint>,
factions: Vec<SystemFaction>,
) -> System
pub fn new( symbol: String, sector_symbol: String, type: SystemType, x: i32, y: i32, waypoints: Vec<SystemWaypoint>, factions: Vec<SystemFaction>, ) -> System
System details.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for System
impl<'de> Deserialize<'de> for System
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
impl StructuralPartialEq for System
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
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