Skip to main content

geoengine_api_client/models/
ogr_source_time_format_custom.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 OgrSourceTimeFormatCustom {
16    #[serde(rename = "customFormat")]
17    pub custom_format: String,
18    #[serde(rename = "format")]
19    pub format: Format,
20}
21
22impl OgrSourceTimeFormatCustom {
23    pub fn new(custom_format: String, format: Format) -> OgrSourceTimeFormatCustom {
24        OgrSourceTimeFormatCustom {
25            custom_format,
26            format,
27        }
28    }
29}
30/// 
31#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
32pub enum Format {
33    #[serde(rename = "custom")]
34    Custom,
35}
36
37impl Default for Format {
38    fn default() -> Format {
39        Self::Custom
40    }
41}
42