pub struct EmailConfig { /* private fields */ }Expand description
Configuration for email address redaction.
Masks the local part (before @) while preserving the domain. If no @ is
present, the input is masked like a prefix-keep policy.
Implementations§
Source§impl EmailConfig
impl EmailConfig
Sourcepub fn new(visible_prefix: usize) -> EmailConfig
pub fn new(visible_prefix: usize) -> EmailConfig
Creates a new email config that keeps the first visible_prefix chars of the local part.
Sourcepub fn with_mask_char(self, mask_char: char) -> EmailConfig
pub fn with_mask_char(self, mask_char: char) -> EmailConfig
Uses a specific masking character.
Trait Implementations§
Source§impl Clone for EmailConfig
impl Clone for EmailConfig
Source§fn clone(&self) -> EmailConfig
fn clone(&self) -> EmailConfig
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 EmailConfig
impl Debug for EmailConfig
impl Copy for EmailConfig
Auto Trait Implementations§
impl Freeze for EmailConfig
impl RefUnwindSafe for EmailConfig
impl Send for EmailConfig
impl Sync for EmailConfig
impl Unpin for EmailConfig
impl UnwindSafe for EmailConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> NotSensitiveDebugExt for Twhere
T: Debug,
impl<T> NotSensitiveDebugExt for Twhere
T: Debug,
Source§fn not_sensitive_debug(&self) -> NotSensitiveDebug<'_, T>
fn not_sensitive_debug(&self) -> NotSensitiveDebug<'_, T>
Wraps the value as explicitly non-sensitive using
Debug.