pub struct PiiViolation {
pub pii_type: PiiType,
pub byte_offset: usize,
pub byte_len: usize,
pub confidence: f32,
}Expand description
A PII pattern detected during verification (text claimed scrubbed but isn’t).
Fields§
§pii_type: PiiTypeThe type of PII that was detected.
byte_offset: usizeByte offset where the violation starts (for diagnostics, never logged with value).
byte_len: usizeLength of the matched region in bytes.
confidence: f32Confidence score of the detection.
Trait Implementations§
Source§impl Clone for PiiViolation
impl Clone for PiiViolation
Source§fn clone(&self) -> PiiViolation
fn clone(&self) -> PiiViolation
Returns a duplicate of the value. Read more
1.0.0 · 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 PiiViolation
impl Debug for PiiViolation
Source§impl<'de> Deserialize<'de> for PiiViolation
impl<'de> Deserialize<'de> for PiiViolation
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 PartialEq for PiiViolation
impl PartialEq for PiiViolation
Source§impl Serialize for PiiViolation
impl Serialize for PiiViolation
impl StructuralPartialEq for PiiViolation
Auto Trait Implementations§
impl Freeze for PiiViolation
impl RefUnwindSafe for PiiViolation
impl Send for PiiViolation
impl Sync for PiiViolation
impl Unpin for PiiViolation
impl UnwindSafe for PiiViolation
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