pub struct IssueQuickfix {
pub set_text_to_origin: Option<String>,
pub implement_use_of: Option<String>,
}
Expand description
A heuristic suggestion that could potentially fix a module diagnostics issue.
Created by the ModuleIssue::quickfix function (see the function’s documentation for details).
To fully implement this suggestion, each struct field should be addressed.
Fields§
§set_text_to_origin: Option<String>
To resolve this issue, the ModuleIssue::origin fragment of the source code must be replaced with this text.
implement_use_of: Option<String>
To resolve this issue, the use <implement_use_of>;
import statement
must be added to the source code.
Trait Implementations§
Source§impl Clone for IssueQuickfix
impl Clone for IssueQuickfix
Source§fn clone(&self) -> IssueQuickfix
fn clone(&self) -> IssueQuickfix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IssueQuickfix
impl Debug for IssueQuickfix
Source§impl Default for IssueQuickfix
impl Default for IssueQuickfix
Source§fn default() -> IssueQuickfix
fn default() -> IssueQuickfix
Returns the “default value” for a type. Read more
Source§impl Hash for IssueQuickfix
impl Hash for IssueQuickfix
Source§impl Ord for IssueQuickfix
impl Ord for IssueQuickfix
Source§fn cmp(&self, other: &IssueQuickfix) -> Ordering
fn cmp(&self, other: &IssueQuickfix) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IssueQuickfix
impl PartialEq for IssueQuickfix
Source§impl PartialOrd for IssueQuickfix
impl PartialOrd for IssueQuickfix
impl Eq for IssueQuickfix
impl StructuralPartialEq for IssueQuickfix
Auto Trait Implementations§
impl Freeze for IssueQuickfix
impl RefUnwindSafe for IssueQuickfix
impl Send for IssueQuickfix
impl Sync for IssueQuickfix
impl Unpin for IssueQuickfix
impl UnwindSafe for IssueQuickfix
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