space_traders/models/
create_ship_waypoint_scan_201_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 CreateShipWaypointScan201ResponseData {
10    #[serde(rename = "cooldown")]
11    pub cooldown: crate::models::Cooldown,
12    /// List of scanned waypoints.
13    #[serde(rename = "waypoints")]
14    pub waypoints: Vec<crate::models::ScannedWaypoint>,
15}
16
17impl CreateShipWaypointScan201ResponseData {
18    /// Create value with optional fields set to `None`.
19    #[allow(clippy::too_many_arguments)]
20    pub fn new(
21        cooldown: crate::models::Cooldown,
22        waypoints: Vec<crate::models::ScannedWaypoint>,
23    ) -> CreateShipWaypointScan201ResponseData {
24        CreateShipWaypointScan201ResponseData {
25            cooldown,
26            waypoints,
27        }
28    }
29}