pub struct RedactionService { /* private fields */ }Implementations§
Source§impl RedactionService
impl RedactionService
pub fn new(mode: PromptCaptureMode, config: RedactionConfig) -> Self
Sourcepub fn should_capture(&self) -> bool
pub fn should_capture(&self) -> bool
Determines if payload should be emitted inline.
Sourcepub fn is_blob_ref(&self) -> bool
pub fn is_blob_ref(&self) -> bool
Determines if payload should be blob-referenced.
Sourcepub fn redact_inline(&self, content: &str) -> String
pub fn redact_inline(&self, content: &str) -> String
Redact a string payload (RegEx + Structured). Used when capture_mode == RedactedInline.
Sourcepub fn blob_ref(&self, content: &str) -> String
pub fn blob_ref(&self, content: &str) -> String
Generate a BlobRef ID (Audit: Opaque, Non-Guessable). Uses HMAC-SHA256(secret, payload).
Sourcepub fn pseudonymize(&self, id: &str) -> String
pub fn pseudonymize(&self, id: &str) -> String
Pseudonymize a sensitive identifier (HMAC).
Auto Trait Implementations§
impl Freeze for RedactionService
impl RefUnwindSafe for RedactionService
impl Send for RedactionService
impl Sync for RedactionService
impl Unpin for RedactionService
impl UnsafeUnpin for RedactionService
impl UnwindSafe for RedactionService
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more