pub struct SessionLine {
pub session_id: Option<String>,
pub line_type: String,
pub timestamp: Option<DateTime<Utc>>,
pub cwd: Option<String>,
pub git_branch: Option<String>,
pub message: Option<SessionMessage>,
pub model: Option<String>,
pub usage: Option<TokenUsage>,
pub summary: Option<SessionSummary>,
pub parent_session_id: Option<String>,
}Expand description
A single line from a session JSONL file
Fields§
§session_id: Option<String>Session ID
line_type: StringEvent type: “user”, “assistant”, “file-history-snapshot”, “session_end”, etc.
timestamp: Option<DateTime<Utc>>Timestamp of the event
cwd: Option<String>Current working directory
git_branch: Option<String>Git branch (if available)
message: Option<SessionMessage>Message content (for user/assistant types)
model: Option<String>Model used (for assistant messages)
usage: Option<TokenUsage>Token usage for this message
summary: Option<SessionSummary>Summary data (for session_end type)
parent_session_id: Option<String>Parent session ID (for subagents)
Trait Implementations§
Source§impl Clone for SessionLine
impl Clone for SessionLine
Source§fn clone(&self) -> SessionLine
fn clone(&self) -> SessionLine
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 SessionLine
impl Debug for SessionLine
Source§impl Default for SessionLine
impl Default for SessionLine
Source§fn default() -> SessionLine
fn default() -> SessionLine
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionLine
impl<'de> Deserialize<'de> for SessionLine
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
Auto Trait Implementations§
impl Freeze for SessionLine
impl RefUnwindSafe for SessionLine
impl Send for SessionLine
impl Sync for SessionLine
impl Unpin for SessionLine
impl UnsafeUnpin for SessionLine
impl UnwindSafe for SessionLine
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