pub struct ReplaceInFileParams {
pub remote_path: String,
pub old_text: String,
pub new_text: String,
pub scope_text: Option<String>,
pub replace_all: Option<bool>,
pub match_index: Option<usize>,
pub dry_run: Option<bool>,
pub expected_sha256: Option<String>,
pub timeout_ms: Option<u64>,
}Expand description
Parameters for the replace-in-file tool
Fields§
§remote_path: StringAbsolute remote file path to edit in place
old_text: StringSource text to replace in the current file
new_text: StringReplacement text used for the edit
scope_text: Option<String>Optional exact scope that must match once; replacement is limited to this substring
replace_all: Option<bool>Replace all matches when true (default false)
match_index: Option<usize>1-based match selector used when old_text appears multiple times
dry_run: Option<bool>Return a diff preview without mutating the remote file
expected_sha256: Option<String>Optional SHA-256 precondition for optimistic locking
timeout_ms: Option<u64>Optional timeout override in milliseconds
Trait Implementations§
Source§impl Debug for ReplaceInFileParams
impl Debug for ReplaceInFileParams
Source§impl<'de> Deserialize<'de> for ReplaceInFileParams
impl<'de> Deserialize<'de> for ReplaceInFileParams
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
Source§impl JsonSchema for ReplaceInFileParams
impl JsonSchema for ReplaceInFileParams
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for ReplaceInFileParams
impl RefUnwindSafe for ReplaceInFileParams
impl Send for ReplaceInFileParams
impl Sync for ReplaceInFileParams
impl Unpin for ReplaceInFileParams
impl UnsafeUnpin for ReplaceInFileParams
impl UnwindSafe for ReplaceInFileParams
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