use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct OgrSourceTimeFormatUnixTimeStamp {
#[serde(rename = "format")]
pub format: Format,
#[serde(rename = "timestampType")]
pub timestamp_type: models::UnixTimeStampType,
}
impl OgrSourceTimeFormatUnixTimeStamp {
pub fn new(format: Format, timestamp_type: models::UnixTimeStampType) -> OgrSourceTimeFormatUnixTimeStamp {
OgrSourceTimeFormatUnixTimeStamp {
format,
timestamp_type,
}
}
}
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Format {
#[serde(rename = "unixTimeStamp")]
UnixTimeStamp,
}
impl Default for Format {
fn default() -> Format {
Self::UnixTimeStamp
}
}