pub struct Finding {
pub code: LintCode,
pub severity: Severity,
pub subject: String,
pub message: String,
pub line: Option<usize>,
}Expand description
These ride a success envelope; a refusal raises sva_core::CliError::LintRefused.
Fields§
§code: LintCode§severity: Severity§subject: String§message: String§line: Option<usize>The 1-based line the check found it on, where it knows one.
Implementations§
Source§impl Finding
impl Finding
pub fn diagnostic(&self) -> Diagnostic
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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