use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct System {
#[serde(rename = "symbol")]
pub symbol: String,
#[serde(rename = "sectorSymbol")]
pub sector_symbol: String,
#[serde(rename = "type")]
pub r#type: crate::models::SystemType,
#[serde(rename = "x")]
pub x: i32,
#[serde(rename = "y")]
pub y: i32,
#[serde(rename = "waypoints")]
pub waypoints: Vec<crate::models::SystemWaypoint>,
#[serde(rename = "factions")]
pub factions: Vec<crate::models::SystemFaction>,
}
impl System {
#[allow(clippy::too_many_arguments)]
pub fn new(
symbol: String,
sector_symbol: String,
r#type: crate::models::SystemType,
x: i32,
y: i32,
waypoints: Vec<crate::models::SystemWaypoint>,
factions: Vec<crate::models::SystemFaction>,
) -> System {
System {
symbol,
sector_symbol,
r#type,
x,
y,
waypoints,
factions,
}
}
}