geoengine_api_client/models/
ogr_source_time_format_auto.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct OgrSourceTimeFormatAuto {
16 #[serde(rename = "format")]
17 pub format: Format,
18}
19
20impl OgrSourceTimeFormatAuto {
21 pub fn new(format: Format) -> OgrSourceTimeFormatAuto {
22 OgrSourceTimeFormatAuto {
23 format,
24 }
25 }
26}
27#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
29pub enum Format {
30 #[serde(rename = "auto")]
31 Auto,
32}
33
34impl Default for Format {
35 fn default() -> Format {
36 Self::Auto
37 }
38}
39