pub struct DiffData {
pub file_path: String,
pub old_content: String,
pub new_content: String,
}Expand description
Data for rendering file diffs in the TUI.
Produced by ShellExecutor and FileExecutor
when a tool call modifies a tracked file. The TUI uses this to display a side-by-side diff.
Fields§
§file_path: StringRelative or absolute path to the file that was modified.
old_content: StringFile content before the tool executed.
new_content: StringFile content after the tool executed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffData
impl RefUnwindSafe for DiffData
impl Send for DiffData
impl Sync for DiffData
impl Unpin for DiffData
impl UnsafeUnpin for DiffData
impl UnwindSafe for DiffData
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