pub struct MaskAuditLog { /* private fields */ }Expand description
Masking audit log: records all masking operations
Implementations§
Source§impl MaskAuditLog
impl MaskAuditLog
Sourcepub fn log(&mut self, field: &str, original_len: usize, masked_len: usize)
pub fn log(&mut self, field: &str, original_len: usize, masked_len: usize)
Record a masking operation
Sourcepub fn entries(&self) -> &[MaskAuditEntry]
pub fn entries(&self) -> &[MaskAuditEntry]
All audit entries
Sourcepub fn entry_count(&self) -> usize
pub fn entry_count(&self) -> usize
Entry count
Sourcepub fn total_masked_chars(&self) -> usize
pub fn total_masked_chars(&self) -> usize
Total masked characters (sum of original_len - masked_len)
Trait Implementations§
Source§impl Clone for MaskAuditLog
impl Clone for MaskAuditLog
Source§fn clone(&self) -> MaskAuditLog
fn clone(&self) -> MaskAuditLog
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 MaskAuditLog
impl Debug for MaskAuditLog
Source§impl Default for MaskAuditLog
impl Default for MaskAuditLog
Source§fn default() -> MaskAuditLog
fn default() -> MaskAuditLog
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MaskAuditLog
impl RefUnwindSafe for MaskAuditLog
impl Send for MaskAuditLog
impl Sync for MaskAuditLog
impl Unpin for MaskAuditLog
impl UnsafeUnpin for MaskAuditLog
impl UnwindSafe for MaskAuditLog
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