Skip to main content

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