space_traders/models/
waypoint_faction.rs

1//! Generated by: <https://openapi-generator.tech>
2//!
3//! Version of specification: `2.0.0`
4
5use serde::{Deserialize, Serialize};
6
7/// The faction that controls the waypoint.
8#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
9pub struct WaypointFaction {
10    #[serde(rename = "symbol")]
11    pub symbol: crate::models::FactionSymbols,
12}
13
14impl WaypointFaction {
15    /// Create value with optional fields set to `None`.
16    #[allow(clippy::too_many_arguments)]
17    pub fn new(symbol: crate::models::FactionSymbols) -> WaypointFaction {
18        WaypointFaction { symbol }
19    }
20}