pub struct TemporalQuery {
pub as_of: Option<ClockTime>,
pub as_committed: Option<ClockTime>,
}Expand description
Bi-temporal query descriptor. Both fields default to None,
which means “use the pipeline’s current commit watermark” — so an
unspecified query is a current-state read.
Fields§
§as_of: Option<ClockTime>Valid-time point: “what was true at this time?”
None ⇒ use the pipeline’s latest commit as the point.
as_committed: Option<ClockTime>Transaction-time point: “what did the librarian know by
this time?” None ⇒ use the pipeline’s latest commit.
Implementations§
Source§impl TemporalQuery
impl TemporalQuery
Sourcepub const fn as_committed(t: ClockTime) -> Self
pub const fn as_committed(t: ClockTime) -> Self
Transaction-time snapshot — (now, T_c) per § 7.3.
Sourcepub const fn bi_temporal(as_of: ClockTime, as_committed: ClockTime) -> Self
pub const fn bi_temporal(as_of: ClockTime, as_committed: ClockTime) -> Self
Fully-specified bi-temporal point per § 7.4.
Trait Implementations§
Source§impl Clone for TemporalQuery
impl Clone for TemporalQuery
Source§fn clone(&self) -> TemporalQuery
fn clone(&self) -> TemporalQuery
Returns a duplicate of the value. Read more
1.0.0 · 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 TemporalQuery
impl Debug for TemporalQuery
Source§impl Default for TemporalQuery
impl Default for TemporalQuery
Source§fn default() -> TemporalQuery
fn default() -> TemporalQuery
Returns the “default value” for a type. Read more
Source§impl PartialEq for TemporalQuery
impl PartialEq for TemporalQuery
impl Copy for TemporalQuery
impl Eq for TemporalQuery
impl StructuralPartialEq for TemporalQuery
Auto Trait Implementations§
impl Freeze for TemporalQuery
impl RefUnwindSafe for TemporalQuery
impl Send for TemporalQuery
impl Sync for TemporalQuery
impl Unpin for TemporalQuery
impl UnsafeUnpin for TemporalQuery
impl UnwindSafe for TemporalQuery
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.