pub struct RedactionManifest {
pub spans: Vec<RedactionSpan>,
pub vault_inserts: Vec<VaultInsert>,
}Expand description
Manifest describing what was redacted. Accompanies scrubbed text.
NOTE: No source_hash. Hashing originals leaks low-entropy secrets
(SSN, phone numbers) via brute-force. Dropped by design.
Fields§
§spans: Vec<RedactionSpan>All PII spans detected and redacted.
vault_inserts: Vec<VaultInsert>Client-encrypted vault inserts for spans that require reveal capability.
Implementations§
Source§impl RedactionManifest
impl RedactionManifest
Sourcepub fn has_redactions(&self) -> bool
pub fn has_redactions(&self) -> bool
Whether any PII was detected and redacted.
Sourcepub fn span_count(&self) -> usize
pub fn span_count(&self) -> usize
Count of redacted spans.
Trait Implementations§
Source§impl Clone for RedactionManifest
impl Clone for RedactionManifest
Source§fn clone(&self) -> RedactionManifest
fn clone(&self) -> RedactionManifest
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 RedactionManifest
impl Debug for RedactionManifest
Source§impl<'de> Deserialize<'de> for RedactionManifest
impl<'de> Deserialize<'de> for RedactionManifest
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 RedactionManifest
impl PartialEq for RedactionManifest
Source§impl Serialize for RedactionManifest
impl Serialize for RedactionManifest
impl StructuralPartialEq for RedactionManifest
Auto Trait Implementations§
impl Freeze for RedactionManifest
impl RefUnwindSafe for RedactionManifest
impl Send for RedactionManifest
impl Sync for RedactionManifest
impl Unpin for RedactionManifest
impl UnwindSafe for RedactionManifest
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