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