osdm_sys/models/
product_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 ProductResponse {
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 = "product", skip_serializing_if = "Option::is_none")]
22 pub product: Option<Box<models::Product>>,
23}
24
25impl ProductResponse {
26 pub fn new() -> ProductResponse {
27 ProductResponse {
28 warnings: None,
29 problems: None,
30 product: None,
31 }
32 }
33}
34