pub enum FileTool {
List {
path: Option<String>,
pattern: Option<String>,
},
Grep {
pattern: String,
path: Option<String>,
glob: Option<String>,
ignore_case: Option<bool>,
context: Option<f64>,
output: Option<GrepOutput>,
max: Option<f64>,
},
Read {
path: String,
line: Option<f64>,
before: Option<f64>,
after: Option<f64>,
},
Write {
path: String,
text: String,
},
Replace {
path: String,
old: String,
new: String,
all: Option<bool>,
},
Insert {
path: String,
after: f64,
text: String,
},
Remove {
path: String,
start: f64,
end: f64,
},
}Expand description
Paths are relative to /repository, and / is the repository root.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileTool
impl<'de> Deserialize<'de> for FileTool
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 FileTool
Auto Trait Implementations§
impl Forget for FileTool
impl Freeze for FileTool
impl Move for FileTool
impl RefUnwindSafe for FileTool
impl Send for FileTool
impl Sync for FileTool
impl Unpin for FileTool
impl UnsafeUnpin for FileTool
impl UnwindSafe for FileTool
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