pub enum MaskFunction {
Default,
Email,
Partial {
prefix: usize,
padding: String,
suffix: usize,
},
Random,
Custom(String),
Null,
}Expand description
Data masking function.
Variants§
Default
Default masking (type-specific).
Email masking (aXXX@XXXX.com).
Partial
Partial masking (show prefix/suffix).
Random
Random value.
Custom(String)
Custom masking function.
Null
NULL replacement.
Trait Implementations§
Source§impl Clone for MaskFunction
impl Clone for MaskFunction
Source§fn clone(&self) -> MaskFunction
fn clone(&self) -> MaskFunction
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 MaskFunction
impl Debug for MaskFunction
Source§impl<'de> Deserialize<'de> for MaskFunction
impl<'de> Deserialize<'de> for MaskFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MaskFunction
impl PartialEq for MaskFunction
Source§impl Serialize for MaskFunction
impl Serialize for MaskFunction
impl Eq for MaskFunction
impl StructuralPartialEq for MaskFunction
Auto Trait Implementations§
impl Freeze for MaskFunction
impl RefUnwindSafe for MaskFunction
impl Send for MaskFunction
impl Sync for MaskFunction
impl Unpin for MaskFunction
impl UnwindSafe for MaskFunction
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