pub struct StagedFinding {
pub file: String,
pub line_no: usize,
pub line: String,
pub rule_id: String,
pub severity: String,
pub decision: String,
pub reason: String,
pub safer_alternative: Option<String>,
}Expand description
One scanner finding, surfaced to the user in the pre-commit error banner. Kept granular so we can group by rule_id for readability.
Fields§
§file: String§line_no: usize§line: String§rule_id: String§severity: String§decision: String§reason: String§safer_alternative: Option<String>Trait Implementations§
Source§impl Clone for StagedFinding
impl Clone for StagedFinding
Source§fn clone(&self) -> StagedFinding
fn clone(&self) -> StagedFinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StagedFinding
impl RefUnwindSafe for StagedFinding
impl Send for StagedFinding
impl Sync for StagedFinding
impl Unpin for StagedFinding
impl UnsafeUnpin for StagedFinding
impl UnwindSafe for StagedFinding
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