use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct LayerCollection {
#[serde(rename = "description")]
pub description: String,
#[serde(rename = "entryLabel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
pub entry_label: Option<Option<String>>,
#[serde(rename = "id")]
pub id: Box<models::ProviderLayerCollectionId>,
#[serde(rename = "items")]
pub items: Vec<models::CollectionItem>,
#[serde(rename = "name")]
pub name: String,
#[serde(rename = "properties")]
pub properties: Vec<Vec<String>>,
}
impl LayerCollection {
pub fn new(description: String, id: models::ProviderLayerCollectionId, items: Vec<models::CollectionItem>, name: String, properties: Vec<Vec<String>>) -> LayerCollection {
LayerCollection {
description,
entry_label: None,
id: Box::new(id),
items,
name,
properties,
}
}
}