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