Return List of [`i64`] represent the value of [`DateTimeValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 438 | /// Return List of [`i64`] represent the value of [`DateTimeValue`] |
| 439 | /// or None if this type it's called from wrong [`Value`] |
| 440 | pub fn as_date_time(&self) -> Option<i64> { |
| 441 | if let Some(date_time_value) = self.as_any().downcast_ref::<DateTimeValue>() { |
| 442 | return Some(date_time_value.value); |
| 443 | } |
| 444 | None |
| 445 | } |
| 446 | |
| 447 | /// Return true if this value is [`IntervalValue`] |
| 448 | pub fn is_interval(&self) -> bool { |
no test coverage detected