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