geoengine_api_client/models/
ogr_source_time_format_custom.rs1use 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#[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