pub struct System {
pub symbol: String,
pub sector_symbol: String,
pub type: SystemType,
pub x: i32,
pub y: i32,
pub waypoints: Vec<SystemWaypoint>,
pub factions: Vec<SystemFaction>,
}Expand description
Fields§
§symbol: StringThe symbol of the system.
sector_symbol: StringThe symbol of the sector.
type: SystemType§x: i32Position in the universe in the x axis.
y: i32Position in the universe 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
Create value with optional fields set to None.
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