pub struct SessionRecordWindow {
pub session: SessionView,
pub entries_from: Option<i64>,
pub total_entries: Option<i64>,
}Expand description
A saved record with a transcript tail window (session.load).
entriesFrom/totalEntries are present only when the caller asked
for a window; their absence means the full transcript — the shape an
older client always received. A record that outgrows the frame cap
can therefore still be opened: the tail travels in the load answer and
older pages come from session.entries-range.
Fields§
§session: SessionView§entries_from: Option<i64>Absolute host index of session.entries[0] for a windowed answer.
total_entries: Option<i64>Full transcript length when entries_from is present.
Trait Implementations§
Source§impl Clone for SessionRecordWindow
impl Clone for SessionRecordWindow
Source§impl Debug for SessionRecordWindow
impl Debug for SessionRecordWindow
Source§impl<'de> Deserialize<'de> for SessionRecordWindow
impl<'de> Deserialize<'de> for SessionRecordWindow
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
Source§impl PartialEq for SessionRecordWindow
impl PartialEq for SessionRecordWindow
Source§impl Serialize for SessionRecordWindow
impl Serialize for SessionRecordWindow
impl StructuralPartialEq for SessionRecordWindow
Auto Trait Implementations§
impl Forget for SessionRecordWindow
impl Freeze for SessionRecordWindowwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ReasoningLabel>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<SessionEntry>: Freeze,
impl Move for SessionRecordWindow
impl RefUnwindSafe for SessionRecordWindow
impl Send for SessionRecordWindow
impl Sync for SessionRecordWindow
impl Unpin for SessionRecordWindow
impl UnsafeUnpin for SessionRecordWindowwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ReasoningLabel>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<SessionEntry>: UnsafeUnpin,
impl UnwindSafe for SessionRecordWindow
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