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