space_traders/models/
jump_ship_200_response_data.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 JumpShip200ResponseData {
10    #[serde(rename = "cooldown")]
11    pub cooldown: crate::models::Cooldown,
12    #[serde(rename = "nav")]
13    pub nav: crate::models::ShipNav,
14}
15
16impl JumpShip200ResponseData {
17    /// Create value with optional fields set to `None`.
18    #[allow(clippy::too_many_arguments)]
19    pub fn new(
20        cooldown: crate::models::Cooldown,
21        nav: crate::models::ShipNav,
22    ) -> JumpShip200ResponseData {
23        JumpShip200ResponseData { cooldown, nav }
24    }
25}