pub struct EditInput {
pub file_path: String,
pub old_string: String,
pub new_string: String,
pub replace_all: Option<bool>,
}Expand description
Input for the Edit tool - performs string replacements in files.
Fields§
§file_path: StringThe absolute path to the file to modify
old_string: StringThe text to replace
new_string: StringThe text to replace it with
replace_all: Option<bool>Replace all occurrences of old_string (default false)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditInput
impl<'de> Deserialize<'de> for EditInput
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 StructuralPartialEq for EditInput
Auto Trait Implementations§
impl Freeze for EditInput
impl RefUnwindSafe for EditInput
impl Send for EditInput
impl Sync for EditInput
impl Unpin for EditInput
impl UnsafeUnpin for EditInput
impl UnwindSafe for EditInput
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