1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::ValueChronoTimestamp;
use std::ops::Deref;

impl PartialEq<chrono::DateTime<chrono::FixedOffset>> for ValueChronoTimestamp {
    fn eq(&self, other: &chrono::DateTime<chrono::FixedOffset>) -> bool {
        match self.deref() {
            Some(v) => v == other,
            None => false,
        }
    }
}
impl PartialEq<Option<chrono::DateTime<chrono::FixedOffset>>> for ValueChronoTimestamp {
    fn eq(&self, other: &Option<chrono::DateTime<chrono::FixedOffset>>) -> bool {
        self.deref() == other
    }
}