pub struct RawMatch {
pub detector_id: Arc<str>,
pub detector_name: Arc<str>,
pub service: Arc<str>,
pub severity: Severity,
pub credential: Arc<str>,
pub credential_hash: String,
pub companions: HashMap<String, String>,
pub location: MatchLocation,
pub entropy: Option<f64>,
pub confidence: Option<f64>,
}Expand description
A raw pattern match before verification or deduplication.
Fields§
§detector_id: Arc<str>Stable detector identifier.
detector_name: Arc<str>Human-readable detector name.
service: Arc<str>Service namespace associated with the detector.
severity: SeverityDetector severity level.
credential: Arc<str>Matched credential bytes before redaction.
credential_hash: StringSHA-256 hash of the credential for allowlisting and deduplication.
companions: HashMap<String, String>Companion credential or context value extracted nearby.
location: MatchLocationSource location for the match.
entropy: Option<f64>Shannon entropy of the matched credential (0.0 - 8.0).
confidence: Option<f64>Confidence score (0.0 - 1.0) combining entropy, keyword proximity, file type, etc.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RawMatch
impl<'de> Deserialize<'de> for RawMatch
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
Source§impl Ord for RawMatch
impl Ord for RawMatch
Source§impl PartialOrd for RawMatch
impl PartialOrd for RawMatch
impl Eq for RawMatch
impl StructuralPartialEq for RawMatch
Auto Trait Implementations§
impl Freeze for RawMatch
impl RefUnwindSafe for RawMatch
impl Send for RawMatch
impl Sync for RawMatch
impl Unpin for RawMatch
impl UnsafeUnpin for RawMatch
impl UnwindSafe for RawMatch
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more