space_traders/models/
create_survey_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 CreateSurvey201ResponseData {
10    #[serde(rename = "cooldown")]
11    pub cooldown: crate::models::Cooldown,
12    /// Surveys created by this action.
13    #[serde(rename = "surveys")]
14    pub surveys: Vec<crate::models::Survey>,
15}
16
17impl CreateSurvey201ResponseData {
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        surveys: Vec<crate::models::Survey>,
23    ) -> CreateSurvey201ResponseData {
24        CreateSurvey201ResponseData { cooldown, surveys }
25    }
26}