Skip to main content

geoengine_api_client/models/
layer_collection.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct LayerCollection {
15    #[serde(rename = "description")]
16    pub description: String,
17    /// a common label for the collection's entries, if there is any
18    #[serde(rename = "entryLabel", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub entry_label: Option<Option<String>>,
20    #[serde(rename = "id")]
21    pub id: Box<models::ProviderLayerCollectionId>,
22    #[serde(rename = "items")]
23    pub items: Vec<models::CollectionItem>,
24    #[serde(rename = "name")]
25    pub name: String,
26    #[serde(rename = "properties")]
27    pub properties: Vec<Vec<String>>,
28}
29
30impl LayerCollection {
31    pub fn new(description: String, id: models::ProviderLayerCollectionId, items: Vec<models::CollectionItem>, name: String, properties: Vec<Vec<String>>) -> LayerCollection {
32        LayerCollection {
33            description,
34            entry_label: None,
35            id: Box::new(id),
36            items,
37            name,
38            properties,
39        }
40    }
41}
42