pub struct Finding {
pub rule_id: String,
pub category: Category,
pub severity: Severity,
pub start: usize,
pub end: usize,
pub normalized_only: bool,
}Expand description
One match of one rule.
The matched text is deliberately not stored: reports are often logged,
and logging the very secret or personal data that was detected defeats the
purpose. Use Finding::excerpt when you really need it.
Fields§
§rule_id: StringId of the rule that matched.
category: CategoryCategory of the rule.
severity: SeveritySeverity of the rule.
start: usizeByte offset in the original text where the match starts.
end: usizeByte offset in the original text where the match ends (exclusive).
normalized_only: booltrue if the rule matched only after normalization (for example the
input used full-width letters or zero-width characters). This is a
strong signal of deliberate evasion.
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 RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.