#[non_exhaustive]pub struct LeakSuspect {
pub span: Range<usize>,
pub class: PiiClass,
pub safety_net_id: String,
pub score: Option<f32>,
pub kind: LeakKind,
pub raw_label: String,
pub field_path: Option<String>,
}Expand description
Suspected leak reported by an observer-only safety net.
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.span: Range<usize>Byte span in clean text.
class: PiiClassMapped PII class for the suspect.
safety_net_id: StringSafety-net backend identifier.
score: Option<f32>Optional backend confidence score.
kind: LeakKindLeak classification after manifest correlation.
raw_label: StringRaw backend label after validation/mapping, never source text.
field_path: Option<String>Optional structured field path.
Implementations§
Trait Implementations§
Source§impl Clone for LeakSuspect
impl Clone for LeakSuspect
Source§fn clone(&self) -> LeakSuspect
fn clone(&self) -> LeakSuspect
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 LeakSuspect
impl Debug for LeakSuspect
Source§impl PartialEq for LeakSuspect
impl PartialEq for LeakSuspect
Source§fn eq(&self, other: &LeakSuspect) -> bool
fn eq(&self, other: &LeakSuspect) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeakSuspect
Auto Trait Implementations§
impl Freeze for LeakSuspect
impl RefUnwindSafe for LeakSuspect
impl Send for LeakSuspect
impl Sync for LeakSuspect
impl Unpin for LeakSuspect
impl UnsafeUnpin for LeakSuspect
impl UnwindSafe for LeakSuspect
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