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