#[non_exhaustive]pub struct LeakReport {
pub suspects: Vec<LeakSuspect>,
pub telemetry: Vec<LeakReportTelemetry>,
pub stats: LeakReportStats,
pub replay_hash: Option<String>,
}Expand description
A suspected missed PII span reported by a SafetyNet.
The safety net is not authoritative; a LeakReport is a signal, not a confirmed
leak. False positives are expected. Review reports and adjust policy or recognizer
thresholds.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.suspects: Vec<LeakSuspect>Suspected leaks, containing metadata only.
telemetry: Vec<LeakReportTelemetry>Bytes-free telemetry events.
stats: LeakReportStatsAggregated counts for callers that do not need full suspect metadata.
replay_hash: Option<String>Optional replay hash.
Replay determinism is guaranteed only when command path, checkpoint, operating point, min score, and decode parameters are fixed externally.
Implementations§
Source§impl LeakReport
impl LeakReport
Sourcepub fn from_parts(
suspects: Vec<LeakSuspect>,
telemetry: Vec<LeakReportTelemetry>,
) -> LeakReport
pub fn from_parts( suspects: Vec<LeakSuspect>, telemetry: Vec<LeakReportTelemetry>, ) -> LeakReport
Builds a report from suspects and telemetry.
Sourcepub fn extend(&mut self, other: LeakReport)
pub fn extend(&mut self, other: LeakReport)
Merges another report into this report.
Trait Implementations§
Source§impl Clone for LeakReport
impl Clone for LeakReport
Source§fn clone(&self) -> LeakReport
fn clone(&self) -> LeakReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeakReport
impl Debug for LeakReport
Source§impl Default for LeakReport
impl Default for LeakReport
Source§fn default() -> LeakReport
fn default() -> LeakReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for LeakReport
impl PartialEq for LeakReport
Source§fn eq(&self, other: &LeakReport) -> bool
fn eq(&self, other: &LeakReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeakReport
Auto Trait Implementations§
impl Freeze for LeakReport
impl RefUnwindSafe for LeakReport
impl Send for LeakReport
impl Sync for LeakReport
impl Unpin for LeakReport
impl UnsafeUnpin for LeakReport
impl UnwindSafe for LeakReport
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