Skip to main content

geoengine_api_client/models/
layer_collection_listing.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 LayerCollectionListing {
16    #[serde(rename = "description")]
17    pub description: String,
18    #[serde(rename = "id")]
19    pub id: Box<models::ProviderLayerCollectionId>,
20    #[serde(rename = "name")]
21    pub name: String,
22    #[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
23    pub properties: Option<Vec<Vec<String>>>,
24    #[serde(rename = "type")]
25    pub r#type: Type,
26}
27
28impl LayerCollectionListing {
29    pub fn new(description: String, id: models::ProviderLayerCollectionId, name: String, r#type: Type) -> LayerCollectionListing {
30        LayerCollectionListing {
31            description,
32            id: Box::new(id),
33            name,
34            properties: None,
35            r#type,
36        }
37    }
38}
39/// 
40#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
41pub enum Type {
42    #[serde(rename = "collection")]
43    Collection,
44}
45
46impl Default for Type {
47    fn default() -> Type {
48        Self::Collection
49    }
50}
51