pub struct EditFile {
pub path: String,
pub old_string: String,
pub new_string: String,
pub replace_all: Option<bool>,
}Expand description
Replace an exact string in a file: once (it must occur exactly once) or everywhere.
Fields§
§path: StringPath relative to the workspace root.
old_string: StringExact text to find, including whitespace.
new_string: StringReplacement text.
replace_all: Option<bool>Replace every occurrence instead of exactly one (default: one).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditFile
impl<'de> Deserialize<'de> for EditFile
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 EditFile
impl JsonSchema for EditFile
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 EditFile
impl RefUnwindSafe for EditFile
impl Send for EditFile
impl Sync for EditFile
impl Unpin for EditFile
impl UnsafeUnpin for EditFile
impl UnwindSafe for EditFile
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