diff --git a/clickhouse-admin/types/src/lib.rs b/clickhouse-admin/types/src/lib.rs index d7d7bee591..aa1437bedc 100644 --- a/clickhouse-admin/types/src/lib.rs +++ b/clickhouse-admin/types/src/lib.rs @@ -1196,21 +1196,6 @@ pub enum Timestamp { Unix(String), } -// TODO: This doesn't seem to be working -//impl FromStr for Timestamp { -// type Err = Error; -// -// fn from_str(s: &str) -> Result { -// if let Ok(utc) = s.parse() { -// Ok(Timestamp::Utc(utc)) -// } else if let Some(_) = DateTime::from_timestamp(s.parse::().expect(&format!("{s} is not a valid timestamp")), 0) { -// Ok(Timestamp::Unix(s.to_string())) -// } else { -// bail!("{s} is not a valid timestamp") -// } -// } -//} - /// Retrieved time series from the internal `system` database. #[derive(Debug, Serialize, Deserialize, JsonSchema, PartialEq)] #[serde(rename_all = "snake_case")]