osdm_sys/models/
document_collection_response.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DocumentCollectionResponse {
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 = "documents")]
21 pub documents: Vec<models::Document>,
22 #[serde(rename = "_links", skip_serializing_if = "Option::is_none")]
24 pub _links: Option<Vec<models::Link>>,
25}
26
27impl DocumentCollectionResponse {
28 pub fn new(documents: Vec<models::Document>) -> DocumentCollectionResponse {
29 DocumentCollectionResponse {
30 warnings: None,
31 problems: None,
32 documents,
33 _links: None,
34 }
35 }
36}
37