pub struct PiiProtectionProcessor;Expand description
PII Protection Processor
Detects and masks PII in event payloads based on destination. Without enact-guardrails, passes through unchanged.
Implementations§
Trait Implementations§
Source§impl Default for PiiProtectionProcessor
impl Default for PiiProtectionProcessor
Source§impl OutputProcessor for PiiProtectionProcessor
impl OutputProcessor for PiiProtectionProcessor
Source§fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
event: StreamEvent,
ctx: &'life1 ProtectionContext,
) -> Pin<Box<dyn Future<Output = Result<ProcessedEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process<'life0, 'life1, 'async_trait>(
&'life0 self,
event: StreamEvent,
ctx: &'life1 ProtectionContext,
) -> Pin<Box<dyn Future<Output = Result<ProcessedEvent>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process an event before storage/streaming Read more
Auto Trait Implementations§
impl Freeze for PiiProtectionProcessor
impl RefUnwindSafe for PiiProtectionProcessor
impl Send for PiiProtectionProcessor
impl Sync for PiiProtectionProcessor
impl Unpin for PiiProtectionProcessor
impl UnsafeUnpin for PiiProtectionProcessor
impl UnwindSafe for PiiProtectionProcessor
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