pub struct FileEditResult {
pub file_path: String,
pub old_string: String,
pub new_string: String,
pub original_file: String,
pub structured_patch: Vec<StructuredPatchHunk>,
pub replace_all: bool,
pub additions: usize,
pub removals: usize,
}Expand description
Result of a file edit operation, returned as JSON in ToolResult.content
Fields§
§file_path: String§old_string: String§new_string: String§original_file: String§structured_patch: Vec<StructuredPatchHunk>§replace_all: bool§additions: usizeCount of lines added
removals: usizeCount of lines removed
Trait Implementations§
Source§impl Clone for FileEditResult
impl Clone for FileEditResult
Source§fn clone(&self) -> FileEditResult
fn clone(&self) -> FileEditResult
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 FileEditResult
impl Debug for FileEditResult
Source§impl<'de> Deserialize<'de> for FileEditResult
impl<'de> Deserialize<'de> for FileEditResult
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 FileEditResult
impl RefUnwindSafe for FileEditResult
impl Send for FileEditResult
impl Sync for FileEditResult
impl Unpin for FileEditResult
impl UnsafeUnpin for FileEditResult
impl UnwindSafe for FileEditResult
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