pub struct MessageRecord {
pub uuid: Option<String>,
pub parent_uuid: Option<Value>,
pub session_id: Option<String>,
pub timestamp: Option<String>,
pub cwd: Option<String>,
pub git_branch: Option<String>,
pub version: Option<String>,
pub message: Message,
}Fields§
§uuid: Option<String>§parent_uuid: Option<Value>§session_id: Option<String>§timestamp: Option<String>§cwd: Option<String>§git_branch: Option<String>§version: Option<String>§message: MessageImplementations§
Source§impl MessageRecord
impl MessageRecord
Sourcepub fn text_content(&self) -> String
pub fn text_content(&self) -> String
All text content (text blocks + thinking + tool use/results).
Sourcepub fn text_no_thinking(&self) -> String
pub fn text_no_thinking(&self) -> String
Text content excluding thinking blocks.
Sourcepub fn thinking_content(&self) -> String
pub fn thinking_content(&self) -> String
Only thinking block content.
Sourcepub fn tool_input_content(&self) -> String
pub fn tool_input_content(&self) -> String
Only tool input content (name + serialized input).
Sourcepub fn tool_names(&self) -> Vec<&str>
pub fn tool_names(&self) -> Vec<&str>
Names of tools called in this message.
Sourcepub fn touches_file(&self, path: &str) -> bool
pub fn touches_file(&self, path: &str) -> bool
Check if any tool input/result references a file path (substring match).
Sourcepub fn full_content(&self) -> String
pub fn full_content(&self) -> String
Full content including tool calls/results (for search).
Trait Implementations§
Source§impl Debug for MessageRecord
impl Debug for MessageRecord
Source§impl<'de> Deserialize<'de> for MessageRecord
impl<'de> Deserialize<'de> for MessageRecord
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 MessageRecord
impl RefUnwindSafe for MessageRecord
impl Send for MessageRecord
impl Sync for MessageRecord
impl Unpin for MessageRecord
impl UnsafeUnpin for MessageRecord
impl UnwindSafe for MessageRecord
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more