pub struct Fix {
pub description: String,
pub replacement: String,
pub start_byte: usize,
pub end_byte: usize,
}Expand description
A suggested fix for a finding with precise byte offsets for auto-fix.
Fields§
§description: StringHuman-readable description of the fix (e.g., “Replace yaml.load with yaml.safe_load”)
replacement: StringThe replacement text to apply
start_byte: usizeStart byte offset in the source
end_byte: usizeEnd byte offset in the source (exclusive)
Implementations§
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
impl StructuralPartialEq for Fix
Auto Trait Implementations§
impl Freeze for Fix
impl RefUnwindSafe for Fix
impl Send for Fix
impl Sync for Fix
impl Unpin 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