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