/// Date type #[derive(Debug, PartialEq, Eq, Clone, serde::Deserialize, serde::Serialize)] pub struct DateLogicalType { #[serde(with = "chrono::serde::ts_seconds")] pub birthday: chrono::DateTime, #[serde(with = "chrono::serde::ts_milliseconds_option")] #[serde(default = "default_datelogicaltype_meeting_time")] pub meeting_time: Option>, #[serde(with = "chrono::serde::ts_microseconds")] #[serde(default = "default_datelogicaltype_release_datetime_micro")] pub release_datetime_micro: chrono::DateTime, } #[inline(always)] fn default_datelogicaltype_meeting_time() -> Option> { None } #[inline(always)] fn default_datelogicaltype_release_datetime_micro() -> chrono::DateTime { chrono::DateTime::::from_timestamp_micros(1570903062000000).unwrap() }