pub struct Fix {
pub title: String,
pub disposition: FixDisposition,
pub patches: Vec<FixPatch>,
}Expand description
A suggested fix for a lint finding.
Attached to a LintWarning when the issue can be corrected
automatically. Contains one or more FixPatch operations that,
applied sequentially, resolve the finding.
Fields§
§title: StringShort human-readable description (e.g. “rename ‘Status’ to ‘status’”).
disposition: FixDispositionWhether the fix is safe to apply without review.
patches: Vec<FixPatch>Ordered patch operations to apply.
Trait Implementations§
impl Eq for Fix
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.