pub struct ConnectedSystem {
pub symbol: String,
pub sector_symbol: String,
pub type: SystemType,
pub faction_symbol: Option<String>,
pub x: i32,
pub y: i32,
pub distance: i32,
}Expand description
Fields§
§symbol: StringThe symbol of the system.
sector_symbol: StringThe sector of this system.
type: SystemType§faction_symbol: Option<String>The symbol of the faction that owns the connected jump gate in the system.
x: i32Position in the universe in the x axis.
y: i32Position in the universe in the y axis.
distance: i32The distance of this system to the connected Jump Gate.
Implementations§
Source§impl ConnectedSystem
impl ConnectedSystem
Sourcepub fn new(
symbol: String,
sector_symbol: String,
type: SystemType,
x: i32,
y: i32,
distance: i32,
) -> ConnectedSystem
pub fn new( symbol: String, sector_symbol: String, type: SystemType, x: i32, y: i32, distance: i32, ) -> ConnectedSystem
Create value with optional fields set to None.
Trait Implementations§
Source§impl Clone for ConnectedSystem
impl Clone for ConnectedSystem
Source§fn clone(&self) -> ConnectedSystem
fn clone(&self) -> ConnectedSystem
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 ConnectedSystem
impl Debug for ConnectedSystem
Source§impl<'de> Deserialize<'de> for ConnectedSystem
impl<'de> Deserialize<'de> for ConnectedSystem
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 ConnectedSystem
impl PartialEq for ConnectedSystem
Source§impl Serialize for ConnectedSystem
impl Serialize for ConnectedSystem
impl StructuralPartialEq for ConnectedSystem
Auto Trait Implementations§
impl Freeze for ConnectedSystem
impl RefUnwindSafe for ConnectedSystem
impl Send for ConnectedSystem
impl Sync for ConnectedSystem
impl Unpin for ConnectedSystem
impl UnwindSafe for ConnectedSystem
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