Skip to main content

geoengine_api_client/models/
external_data_id.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 ExternalDataId {
16    #[serde(rename = "layerId")]
17    pub layer_id: String,
18    #[serde(rename = "providerId")]
19    pub provider_id: uuid::Uuid,
20    #[serde(rename = "type")]
21    pub r#type: Type,
22}
23
24impl ExternalDataId {
25    pub fn new(layer_id: String, provider_id: uuid::Uuid, r#type: Type) -> ExternalDataId {
26        ExternalDataId {
27            layer_id,
28            provider_id,
29            r#type,
30        }
31    }
32}
33/// 
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum Type {
36    #[serde(rename = "external")]
37    External,
38}
39
40impl Default for Type {
41    fn default() -> Type {
42        Self::External
43    }
44}
45