osdm_sys/models/
coach_layout_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
16pub struct CoachLayoutResponse {
17 #[serde(rename = "warnings", skip_serializing_if = "Option::is_none")]
18 pub warnings: Option<Box<models::WarningCollection>>,
19 #[serde(rename = "problems", skip_serializing_if = "Option::is_none")]
20 pub problems: Option<Vec<models::Problem>>,
21 #[serde(rename = "coachLayout", skip_serializing_if = "Option::is_none")]
22 pub coach_layout: Option<Box<models::CoachLayout>>,
23}
24
25impl CoachLayoutResponse {
26 pub fn new() -> CoachLayoutResponse {
27 CoachLayoutResponse {
28 warnings: None,
29 problems: None,
30 coach_layout: None,
31 }
32 }
33}
34