osdm_sys/models/
zone_collection_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 ZoneCollectionResponse {
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 = "zones", skip_serializing_if = "Option::is_none")]
22 pub zones: Option<Vec<models::ZoneDefinition>>,
23 #[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
25 pub _links: Option<Vec<models::Link>>,
26}
27
28impl ZoneCollectionResponse {
29 pub fn new() -> ZoneCollectionResponse {
30 ZoneCollectionResponse {
31 warnings: None,
32 problems: None,
33 zones: None,
34 _links: None,
35 }
36 }
37}
38