pub struct RecordTimes {
pub recorded_at: Timestamp,
pub published_at: Option<Timestamp>,
pub effective_from: Option<Timestamp>,
pub effective_until: Option<Timestamp>,
pub observed_at: Option<Timestamp>,
}Expand description
The distinct times a record can carry. These are never conflated:
recorded_at is when this system first recorded it (ingestion time),
the others are claims about the world and are optional.
Fields§
§recorded_at: Timestamp§published_at: Option<Timestamp>§effective_from: Option<Timestamp>§effective_until: Option<Timestamp>§observed_at: Option<Timestamp>Trait Implementations§
Source§impl Clone for RecordTimes
impl Clone for RecordTimes
Source§fn clone(&self) -> RecordTimes
fn clone(&self) -> RecordTimes
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RecordTimes
impl Debug for RecordTimes
Source§impl<'de> Deserialize<'de> for RecordTimes
impl<'de> Deserialize<'de> for RecordTimes
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 RecordTimes
Source§impl PartialEq for RecordTimes
impl PartialEq for RecordTimes
Source§impl Serialize for RecordTimes
impl Serialize for RecordTimes
impl StructuralPartialEq for RecordTimes
Auto Trait Implementations§
impl Freeze for RecordTimes
impl RefUnwindSafe for RecordTimes
impl Send for RecordTimes
impl Sync for RecordTimes
impl Unpin for RecordTimes
impl UnsafeUnpin for RecordTimes
impl UnwindSafe for RecordTimes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more