pub struct SessionTimeline {
pub session_id: SessionId,
pub turns: Vec<TurnTrace>,
}Expand description
Derived session timeline grouped by turn. Hosts may persist conversation stores separately; this view is only a journal-derived trace index.
Fields§
§session_id: SessionIdOptional host-provided session identifier for grouping related turns.
turns: Vec<TurnTrace>Turn traces observed for this session, in first-seen journal order.
Implementations§
Source§impl SessionTimeline
impl SessionTimeline
Sourcepub fn from_records<'a>(
session_id: &SessionId,
records: impl IntoIterator<Item = &'a JournalRecord>,
) -> Self
pub fn from_records<'a>( session_id: &SessionId, records: impl IntoIterator<Item = &'a JournalRecord>, ) -> Self
Builds a session timeline from durable journal records.
Trait Implementations§
Source§impl Clone for SessionTimeline
impl Clone for SessionTimeline
Source§fn clone(&self) -> SessionTimeline
fn clone(&self) -> SessionTimeline
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 SessionTimeline
impl Debug for SessionTimeline
impl Eq for SessionTimeline
Source§impl PartialEq for SessionTimeline
impl PartialEq for SessionTimeline
Source§fn eq(&self, other: &SessionTimeline) -> bool
fn eq(&self, other: &SessionTimeline) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionTimeline
Auto Trait Implementations§
impl Freeze for SessionTimeline
impl RefUnwindSafe for SessionTimeline
impl Send for SessionTimeline
impl Sync for SessionTimeline
impl Unpin for SessionTimeline
impl UnsafeUnpin for SessionTimeline
impl UnwindSafe for SessionTimeline
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