pub struct MaskingConfig { /* private fields */ }Expand description
Masking config: custom mask character, minimum mask length, fallback value
Implementations§
Source§impl MaskingConfig
impl MaskingConfig
Sourcepub fn with_mask_char(self, c: char) -> Self
pub fn with_mask_char(self, c: char) -> Self
Set mask character (chainable)
Sourcepub fn min_mask_length(&self) -> usize
pub fn min_mask_length(&self) -> usize
Minimum mask length
Sourcepub fn with_min_mask_length(self, min: usize) -> Self
pub fn with_min_mask_length(self, min: usize) -> Self
Set minimum mask length (chainable)
Sourcepub fn fallback_value(&self) -> &str
pub fn fallback_value(&self) -> &str
Fallback value
Sourcepub fn with_fallback_value(self, value: &str) -> Self
pub fn with_fallback_value(self, value: &str) -> Self
Set fallback value (chainable)
Trait Implementations§
Source§impl Clone for MaskingConfig
impl Clone for MaskingConfig
Source§fn clone(&self) -> MaskingConfig
fn clone(&self) -> MaskingConfig
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 MaskingConfig
impl Debug for MaskingConfig
Auto Trait Implementations§
impl Freeze for MaskingConfig
impl RefUnwindSafe for MaskingConfig
impl Send for MaskingConfig
impl Sync for MaskingConfig
impl Unpin for MaskingConfig
impl UnsafeUnpin for MaskingConfig
impl UnwindSafe for MaskingConfig
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