pub struct Issue {
pub path: PathBuf,
pub line_num: usize,
pub byte_offset: usize,
pub typo: String,
pub corrections: Vec<String>,
}Fields§
§path: PathBuf§line_num: usize§byte_offset: usize§typo: String§corrections: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Issue
impl<'de> Deserialize<'de> for Issue
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
Source§impl Issue for Issue
impl Issue for Issue
Source§fn analyzer_id(&self) -> String
fn analyzer_id(&self) -> String
Name of the analyzer which produce the issue
Source§fn fingerprint(&self) -> Digest
fn fingerprint(&self) -> Digest
Fingerprint is used to track an issue over evolutions of the code.
Ideally, even if the line changed but the issue is the same, the
fingerprint should not change.
Source§fn severity(&self) -> Severity
fn severity(&self) -> Severity
Severity of the reported issue, can be used to prioritize the issues
to fix.
Source§fn location(&self) -> Option<Location>
fn location(&self) -> Option<Location>
Location of the issue in a file. This information is crucial for nice
display in UI.
Source§fn issue_uid(&self) -> String
fn issue_uid(&self) -> String
Unique identifier of the issue. Default implementation concatenate
analyzer_id() and issue_id().Source§fn other_locations(&self) -> Vec<Location>
fn other_locations(&self) -> Vec<Location>
Optional other locations related to the same issue.
Auto Trait Implementations§
impl Freeze for Issue
impl RefUnwindSafe for Issue
impl Send for Issue
impl Sync for Issue
impl Unpin for Issue
impl UnsafeUnpin for Issue
impl UnwindSafe for Issue
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