Skip to main content

geoengine_api_client/models/
ogr_source_duration_spec_value.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 OgrSourceDurationSpecValue {
16    #[serde(rename = "granularity")]
17    pub granularity: models::TimeGranularity,
18    #[serde(rename = "step")]
19    pub step: i32,
20    #[serde(rename = "type")]
21    pub r#type: Type,
22}
23
24impl OgrSourceDurationSpecValue {
25    pub fn new(granularity: models::TimeGranularity, step: i32, r#type: Type) -> OgrSourceDurationSpecValue {
26        OgrSourceDurationSpecValue {
27            granularity,
28            step,
29            r#type,
30        }
31    }
32}
33/// 
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum Type {
36    #[serde(rename = "value")]
37    Value,
38}
39
40impl Default for Type {
41    fn default() -> Type {
42        Self::Value
43    }
44}
45