Skip to main content

geoengine_api_client/models/
net_cdf_cf_data_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 NetCdfCfDataProviderDefinition {
15    #[serde(rename = "cacheTtl", skip_serializing_if = "Option::is_none")]
16    pub cache_ttl: Option<i32>,
17    /// Path were the `NetCDF` data can be found
18    #[serde(rename = "data")]
19    pub data: String,
20    #[serde(rename = "description")]
21    pub description: String,
22    #[serde(rename = "name")]
23    pub name: String,
24    /// Path were overview files are stored
25    #[serde(rename = "overviews")]
26    pub overviews: String,
27    #[serde(rename = "priority", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub priority: Option<Option<i32>>,
29    #[serde(rename = "type")]
30    pub r#type: Type,
31}
32
33impl NetCdfCfDataProviderDefinition {
34    pub fn new(data: String, description: String, name: String, overviews: String, r#type: Type) -> NetCdfCfDataProviderDefinition {
35        NetCdfCfDataProviderDefinition {
36            cache_ttl: None,
37            data,
38            description,
39            name,
40            overviews,
41            priority: None,
42            r#type,
43        }
44    }
45}
46/// 
47#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
48pub enum Type {
49    #[serde(rename = "NetCdfCf")]
50    NetCdfCf,
51}
52
53impl Default for Type {
54    fn default() -> Type {
55        Self::NetCdfCf
56    }
57}
58