pub struct DataMasker;Implementations§
Source§impl DataMasker
impl DataMasker
Sourcepub fn apply(rule: &MaskingRule, value: &str) -> String
pub fn apply(rule: &MaskingRule, value: &str) -> String
Applies the given masking rule to value. The implementation is
Unicode-safe (works on char boundaries rather than byte slices) and
never panics: inputs shorter than the rule’s required visible prefix
return a sensible fallback (the original value, or "***" when even
the original cannot be safely revealed).
Auto Trait Implementations§
impl Freeze for DataMasker
impl RefUnwindSafe for DataMasker
impl Send for DataMasker
impl Sync for DataMasker
impl Unpin for DataMasker
impl UnsafeUnpin for DataMasker
impl UnwindSafe for DataMasker
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