osdm_sys/models/
product_collection_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ProductCollectionResponse {
16 #[serde(rename = "warnings", skip_serializing_if = "Option::is_none")]
17 pub warnings: Option<Box<models::WarningCollection>>,
18 #[serde(rename = "problems", skip_serializing_if = "Option::is_none")]
19 pub problems: Option<Vec<models::Problem>>,
20 #[serde(rename = "products", skip_serializing_if = "Option::is_none")]
22 pub products: Option<Vec<models::Product>>,
23 #[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
25 pub _links: Option<Vec<models::Link>>,
26}
27
28impl ProductCollectionResponse {
29 pub fn new() -> ProductCollectionResponse {
30 ProductCollectionResponse {
31 warnings: None,
32 problems: None,
33 products: None,
34 _links: None,
35 }
36 }
37}
38