pub struct SecretRedactor { /* private fields */ }Expand description
Redacts common secret patterns from JSON event payloads.
§Default patterns
The default instance matches:
- API keys in values:
sk-ant-*,sk-* - JWT/Bearer tokens in values:
eyJ* - Sensitive JSON field names:
password,secret,token,api_key,apikey,private_key,access_token,refresh_token
Custom patterns can be provided via SecretRedactor::new.
Implementations§
Trait Implementations§
Source§impl Clone for SecretRedactor
impl Clone for SecretRedactor
Source§fn clone(&self) -> SecretRedactor
fn clone(&self) -> SecretRedactor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SecretRedactor
impl Debug for SecretRedactor
Auto Trait Implementations§
impl Freeze for SecretRedactor
impl RefUnwindSafe for SecretRedactor
impl Send for SecretRedactor
impl Sync for SecretRedactor
impl Unpin for SecretRedactor
impl UnsafeUnpin for SecretRedactor
impl UnwindSafe for SecretRedactor
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