pub struct BSHit {
pub file: String,
pub line: usize,
pub line_text: String,
pub category: BSCategory,
pub value: String,
pub suggestion: String,
}Expand description
A detected hardcoded value.
Fields§
§file: StringFile path where the hit was found.
line: usizeLine number (1-based).
line_text: StringThe raw text of the line (trimmed).
category: BSCategoryCategory of the BS.
value: StringThe matched value.
suggestion: StringSuggested fix or note.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BSHit
impl<'de> Deserialize<'de> for BSHit
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
Auto Trait Implementations§
impl Freeze for BSHit
impl RefUnwindSafe for BSHit
impl Send for BSHit
impl Sync for BSHit
impl Unpin for BSHit
impl UnsafeUnpin for BSHit
impl UnwindSafe for BSHit
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