pub struct TextEdit {
pub line: u32,
pub old_text: String,
pub new_text: String,
pub rule_id: String,
pub description: String,
pub replace_all: bool,
}Expand description
A single text replacement within a file.
Fields§
§line: u321-indexed line number where the edit applies.
old_text: StringThe original text to find on this line.
new_text: StringThe replacement text.
rule_id: StringRule ID that generated this fix.
description: StringHuman-readable description of what this fix does.
replace_all: boolWhen true, replace ALL occurrences of old_text on this line (not just the first). Used for prefix replacements (e.g. CssVariablePrefix) where a single line may contain multiple instances of the old prefix.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextEdit
impl<'de> Deserialize<'de> for TextEdit
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 TextEdit
impl RefUnwindSafe for TextEdit
impl Send for TextEdit
impl Sync for TextEdit
impl Unpin for TextEdit
impl UnsafeUnpin for TextEdit
impl UnwindSafe for TextEdit
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