space_traders/models/
purchase_ship_request.rs

1//! Generated by: <https://openapi-generator.tech>
2//!
3//! Version of specification: `2.0.0`
4
5use serde::{Deserialize, Serialize};
6
7///
8#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
9pub struct PurchaseShipRequest {
10    #[serde(rename = "shipType")]
11    pub ship_type: crate::models::ShipType,
12    /// The symbol of the waypoint you want to purchase the ship at.
13    #[serde(rename = "waypointSymbol")]
14    pub waypoint_symbol: String,
15}
16
17impl PurchaseShipRequest {
18    /// Create value with optional fields set to `None`.
19    #[allow(clippy::too_many_arguments)]
20    pub fn new(ship_type: crate::models::ShipType, waypoint_symbol: String) -> PurchaseShipRequest {
21        PurchaseShipRequest {
22            ship_type,
23            waypoint_symbol,
24        }
25    }
26}