space_traders/models/
jump_ship_200_response_data.rs1use serde::{Deserialize, Serialize};
6
7#[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 #[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}