pub struct ValidityWindow {
pub valid_from: DateTime<Utc>,
pub valid_until: Option<DateTime<Utc>>,
}Expand description
The interval the record claims to be true: [valid_from, valid_until),
open-ended when valid_until is None. Contradiction is handled by
time (and supersession), never by deletion.
Fields§
§valid_from: DateTime<Utc>Inclusive start of the claimed-true interval.
valid_until: Option<DateTime<Utc>>Exclusive end of the claimed-true interval; None = open-ended.
Implementations§
Trait Implementations§
Source§impl Clone for ValidityWindow
impl Clone for ValidityWindow
Source§impl Debug for ValidityWindow
impl Debug for ValidityWindow
Source§impl<'de> Deserialize<'de> for ValidityWindow
impl<'de> Deserialize<'de> for ValidityWindow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ValidityWindow
Source§impl PartialEq for ValidityWindow
impl PartialEq for ValidityWindow
Source§impl Serialize for ValidityWindow
impl Serialize for ValidityWindow
impl StructuralPartialEq for ValidityWindow
Auto Trait Implementations§
impl Freeze for ValidityWindow
impl RefUnwindSafe for ValidityWindow
impl Send for ValidityWindow
impl Sync for ValidityWindow
impl Unpin for ValidityWindow
impl UnsafeUnpin for ValidityWindow
impl UnwindSafe for ValidityWindow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more