pub struct ParsedLine {
pub text: Option<String>,
pub thinking: Option<String>,
pub session: Option<SessionInfo>,
pub tool_start: Option<ToolCallStart>,
pub tool_end: Option<ToolCallEnd>,
pub edits: Vec<SuggestedEdit>,
pub usage: Option<UsageInfo>,
pub activity: Option<String>,
}Expand description
What a single harness output line decoded to. A line can yield text and edits at once, so this is not one-event-per-line.
Fields§
§text: Option<String>§thinking: Option<String>Model reasoning chunk → RunEvent::Thinking. Kept separate from
text so the UI can render it distinctly.
session: Option<SessionInfo>Session identity (id + model) → RunEvent::Session.
tool_start: Option<ToolCallStart>A tool call began → RunEvent::ToolStart.
tool_end: Option<ToolCallEnd>A tool call finished → RunEvent::ToolEnd.
edits: Vec<SuggestedEdit>§usage: Option<UsageInfo>Token accounting → RunEvent::Usage.
activity: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for ParsedLine
impl Clone for ParsedLine
Source§fn clone(&self) -> ParsedLine
fn clone(&self) -> ParsedLine
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 ParsedLine
impl Debug for ParsedLine
Source§impl Default for ParsedLine
impl Default for ParsedLine
Source§fn default() -> ParsedLine
fn default() -> ParsedLine
Returns the “default value” for a type. Read more
Source§impl PartialEq for ParsedLine
impl PartialEq for ParsedLine
Source§fn eq(&self, other: &ParsedLine) -> bool
fn eq(&self, other: &ParsedLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ParsedLine
impl StructuralPartialEq for ParsedLine
Auto Trait Implementations§
impl Freeze for ParsedLine
impl RefUnwindSafe for ParsedLine
impl Send for ParsedLine
impl Sync for ParsedLine
impl Unpin for ParsedLine
impl UnsafeUnpin for ParsedLine
impl UnwindSafe for ParsedLine
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