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