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