pub enum HistoryEntry {
User {
uuid: Option<String>,
timestamp: Option<String>,
cwd: Option<String>,
git_branch: Option<String>,
message: Value,
rest: Map<String, Value>,
},
Assistant {
uuid: Option<String>,
timestamp: Option<String>,
message: Value,
rest: Map<String, Value>,
},
Other {
type_tag: String,
raw: Value,
},
}Expand description
One parsed line from a session .jsonl.
Only user and assistant entry types get typed variants;
everything else (queue-operation, attachment, ai-title,
last-prompt, future types) lands in Self::Other with the
raw JSON for caller inspection.
Variants§
Trait Implementations§
Source§impl Clone for HistoryEntry
impl Clone for HistoryEntry
Source§fn clone(&self) -> HistoryEntry
fn clone(&self) -> HistoryEntry
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 HistoryEntry
impl Debug for HistoryEntry
Auto Trait Implementations§
impl Freeze for HistoryEntry
impl RefUnwindSafe for HistoryEntry
impl Send for HistoryEntry
impl Sync for HistoryEntry
impl Unpin for HistoryEntry
impl UnsafeUnpin for HistoryEntry
impl UnwindSafe for HistoryEntry
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