pub struct RedactionSpan {
pub token_id: Uuid,
pub pii_type: PiiType,
pub placeholder: String,
pub confidence: f32,
}Expand description
A single detected PII span within text.
Fields§
§token_id: UuidUnique token identifying this redacted value (links to vault).
pii_type: PiiTypeClassification of the detected PII.
placeholder: StringPlaceholder string inserted into the scrubbed text (e.g. [REDACTED:ssn:abc12345]).
confidence: f32Confidence score from the detector (0.0–1.0).
Trait Implementations§
Source§impl Clone for RedactionSpan
impl Clone for RedactionSpan
Source§fn clone(&self) -> RedactionSpan
fn clone(&self) -> RedactionSpan
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 RedactionSpan
impl Debug for RedactionSpan
Source§impl<'de> Deserialize<'de> for RedactionSpan
impl<'de> Deserialize<'de> for RedactionSpan
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 RedactionSpan
impl PartialEq for RedactionSpan
Source§impl Serialize for RedactionSpan
impl Serialize for RedactionSpan
impl StructuralPartialEq for RedactionSpan
Auto Trait Implementations§
impl Freeze for RedactionSpan
impl RefUnwindSafe for RedactionSpan
impl Send for RedactionSpan
impl Sync for RedactionSpan
impl Unpin for RedactionSpan
impl UnwindSafe for RedactionSpan
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