pub struct VerifiedFinding {Show 13 fields
pub detector_id: Arc<str>,
pub detector_name: Arc<str>,
pub service: Arc<str>,
pub severity: Severity,
pub credential_redacted: Cow<'static, str>,
pub credential_hash: CredentialHash,
pub companions_redacted: HashMap<String, String>,
pub location: MatchLocation,
pub verification: VerificationResult,
pub metadata: HashMap<String, String>,
pub additional_locations: Vec<MatchLocation>,
pub entropy: Option<f64>,
pub confidence: Option<f64>,
}Expand description
A finding after verification - the final output.
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_redacted: Cow<'static, str>Redacted version of the credential for reporting.
credential_hash: CredentialHashSHA-256 digest of the original credential for internal correlation. Raw 32 inline bytes; hex-encoded lazily at the serde/reporter boundary.
companions_redacted: HashMap<String, String>Redacted companion credentials or context values extracted nearby.
Companion values follow the same boundary rule as the primary credential: reports may expose a safe preview, never plaintext.
location: MatchLocationSource location for the match.
verification: VerificationResultVerification result.
metadata: HashMap<String, String>Additional provider-specific metadata (e.g. account ID, scope).
additional_locations: Vec<MatchLocation>Additional duplicate locations found for this credential.
entropy: Option<f64>Shannon entropy measured by the detection path, when available.
confidence: Option<f64>Confidence score (0.0 - 1.0) combining entropy, keyword proximity, file type, etc.
Implementations§
Source§impl VerifiedFinding
impl VerifiedFinding
Sourcepub fn from_deduped(
group: DedupedMatch,
severity: Severity,
verification: VerificationResult,
metadata: HashMap<String, String>,
) -> Self
pub fn from_deduped( group: DedupedMatch, severity: Severity, verification: VerificationResult, metadata: HashMap<String, String>, ) -> Self
Construct the report-safe view of a deduplicated match.
This is the single conversion boundary for verifier and skipped paths: every new report field must be initialized here, while callers retain ownership of policy-specific severity and verification decisions.
Trait Implementations§
Source§impl Clone for VerifiedFinding
impl Clone for VerifiedFinding
Source§fn clone(&self) -> VerifiedFinding
fn clone(&self) -> VerifiedFinding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifiedFinding
impl Debug for VerifiedFinding
Source§impl<'de> Deserialize<'de> for VerifiedFinding
impl<'de> Deserialize<'de> for VerifiedFinding
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>,
Auto Trait Implementations§
impl Freeze for VerifiedFinding
impl RefUnwindSafe for VerifiedFinding
impl Send for VerifiedFinding
impl Sync for VerifiedFinding
impl Unpin for VerifiedFinding
impl UnsafeUnpin for VerifiedFinding
impl UnwindSafe for VerifiedFinding
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
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<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>
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>
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