pub struct Finding {Show 13 fields
pub rule_id: String,
pub file: PathBuf,
pub start_line: usize,
pub start_col: usize,
pub end_line: usize,
pub end_col: usize,
pub start_byte: usize,
pub end_byte: usize,
pub message: String,
pub severity: Severity,
pub matched_text: String,
pub fix: Option<String>,
pub captures: HashMap<String, String>,
}Expand description
A finding from running a rule.
Fields§
§rule_id: String§file: PathBuf§start_line: usize§start_col: usize§end_line: usize§end_col: usize§start_byte: usize§end_byte: usize§message: String§severity: Severity§matched_text: String§fix: Option<String>Auto-fix template (None if no fix available).
captures: HashMap<String, String>Capture values from the query match (for fix substitution).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request