pub struct Fix {
pub edits: Vec<TextEdit>,
pub safety: FixSafety,
pub description: String,
}Expand description
A deterministic auto-fix: one or more text edits applied to the ORIGINAL source bytes (never an AST round-trip), so untouched bytes are preserved exactly.
Fields§
§edits: Vec<TextEdit>Edits to apply, all anchored to the same original source.
safety: FixSafetySafety tier controlling when the fix is auto-applied.
description: StringHuman-readable description, e.g. "replace '::section' with '## X'".
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fix
impl<'de> Deserialize<'de> for Fix
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 Fix
impl RefUnwindSafe for Fix
impl Send for Fix
impl Sync for Fix
impl Unpin for Fix
impl UnsafeUnpin for Fix
impl UnwindSafe for Fix
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