pub struct FileChangeMetadata {
pub file_path: String,
pub old_content: Option<String>,
pub new_content: String,
}Expand description
Metadata about a file change from a tool execution
This is used by write/edit tools to capture the before/after state of files they modify, enabling diff display in the TUI.
Fields§
§file_path: StringPath to the modified file
old_content: Option<String>Content before the change (None for new files)
new_content: StringContent after the change
Trait Implementations§
Source§impl Clone for FileChangeMetadata
impl Clone for FileChangeMetadata
Source§impl Debug for FileChangeMetadata
impl Debug for FileChangeMetadata
Source§impl<'de> Deserialize<'de> for FileChangeMetadata
impl<'de> Deserialize<'de> for FileChangeMetadata
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
impl Eq for FileChangeMetadata
Source§impl PartialEq for FileChangeMetadata
impl PartialEq for FileChangeMetadata
Source§impl Serialize for FileChangeMetadata
impl Serialize for FileChangeMetadata
impl StructuralPartialEq for FileChangeMetadata
Auto Trait Implementations§
impl Freeze for FileChangeMetadata
impl RefUnwindSafe for FileChangeMetadata
impl Send for FileChangeMetadata
impl Sync for FileChangeMetadata
impl Unpin for FileChangeMetadata
impl UnsafeUnpin for FileChangeMetadata
impl UnwindSafe for FileChangeMetadata
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.