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