pub struct TemporalEntityTracker { /* private fields */ }Expand description
Tracks entities over time with temporal validity.
Provides point-in-time queries and evolution tracking.
Implementations§
Source§impl TemporalEntityTracker
impl TemporalEntityTracker
Sourcepub fn add_entity(&mut self, entity: Entity)
pub fn add_entity(&mut self, entity: Entity)
Add an entity to track.
Sourcepub fn add_entity_with_slot(&mut self, entity: Entity, slot: impl Into<String>)
pub fn add_entity_with_slot(&mut self, entity: Entity, slot: impl Into<String>)
Add an entity with explicit slot.
Sourcepub fn query_at(&self, timestamp: &DateTime<Utc>) -> Vec<&Entity>
pub fn query_at(&self, timestamp: &DateTime<Utc>) -> Vec<&Entity>
Query entities valid at a specific timestamp.
Sourcepub fn query(&self, query: &TemporalQuery) -> Vec<&Entity>
pub fn query(&self, query: &TemporalQuery) -> Vec<&Entity>
Execute a temporal query.
Sourcepub fn timeline(&self, slot: &str) -> Option<&EntityTimeline>
pub fn timeline(&self, slot: &str) -> Option<&EntityTimeline>
Get the timeline for a specific slot.
Sourcepub fn changed_between(
&self,
start: &DateTime<Utc>,
end: &DateTime<Utc>,
) -> Vec<&Entity>
pub fn changed_between( &self, start: &DateTime<Utc>, end: &DateTime<Utc>, ) -> Vec<&Entity>
Get entities that changed within a time range.
Sourcepub fn temporal_stats(&self) -> TemporalStats
pub fn temporal_stats(&self) -> TemporalStats
Get count of temporal vs atemporal entities.
Trait Implementations§
Source§impl Clone for TemporalEntityTracker
impl Clone for TemporalEntityTracker
Source§fn clone(&self) -> TemporalEntityTracker
fn clone(&self) -> TemporalEntityTracker
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 TemporalEntityTracker
impl Debug for TemporalEntityTracker
Source§impl Default for TemporalEntityTracker
impl Default for TemporalEntityTracker
Source§fn default() -> TemporalEntityTracker
fn default() -> TemporalEntityTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TemporalEntityTracker
impl RefUnwindSafe for TemporalEntityTracker
impl Send for TemporalEntityTracker
impl Sync for TemporalEntityTracker
impl Unpin for TemporalEntityTracker
impl UnsafeUnpin for TemporalEntityTracker
impl UnwindSafe for TemporalEntityTracker
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more