pub struct Hit {
pub rule: &'static str,
pub level: Level,
pub line: Option<usize>,
pub reason: String,
}Expand description
One thing a check found.
Fields§
§rule: &'static strThe rule id, one of RULES.
level: LevelThe level the check gives this finding, before the policy’s check_diff.levels.
line: Option<usize>The added line, in the new file; None for the file as a whole.
reason: StringWhy it matters, naming what was found but never a secret’s value.
Trait Implementations§
impl Eq for Hit
impl StructuralPartialEq for Hit
Auto Trait Implementations§
impl Forget for Hit
impl Freeze for Hit
impl RefUnwindSafe for Hit
impl Send for Hit
impl Sync for Hit
impl Unpin for Hit
impl UnsafeUnpin for Hit
impl UnwindSafe for Hit
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