pub struct Finding {
pub scanner: String,
pub rule: String,
pub severity: Severity,
pub file: Option<String>,
pub line: Option<u32>,
pub message: String,
pub excerpt: Option<String>,
}Expand description
One thing a rule matched.
Fields§
§scanner: StringSCANNER for the built-in scanner.
rule: StringThe rule’s id.
severity: Severity§file: Option<String>The file, relative to the skill (or repository) root,
/-separated; None for a command line.
line: Option<u32>1-based line of the match; None for a path rule and a command
line.
message: String§excerpt: Option<String>The matched text, shortened, with secret-shaped tokens masked and
invisible characters spelled out (\u{200B}, [hidden: ...]).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Finding
impl<'de> Deserialize<'de> for Finding
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
impl Eq for Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Forget for Finding
impl Freeze for Finding
impl Move for Finding
impl RefUnwindSafe for Finding
impl Send for Findingwhere
RawVecInner: Send,
impl Sync for Findingwhere
RawVecInner: Sync,
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Findingwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.