Check if this value is valid at a specific point in time
(&self, time: DateTime<Utc>)
| 51 | |
| 52 | /// Check if this value is valid at a specific point in time |
| 53 | pub fn is_valid_at(&self, time: DateTime<Utc>) -> bool { |
| 54 | time >= self.valid_from && self.valid_to.is_none_or(|vt| time < vt) |
| 55 | } |
| 56 | |
| 57 | /// Check if this value is currently valid (valid_to is None or in the future) |
| 58 | pub fn is_current(&self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected