Skip to main content

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