pub struct AnonymizationConfig {
pub strategy: AnonymizationStrategy,
pub mask_char: String,
pub mask_start_chars: usize,
pub mask_end_chars: usize,
pub preserve_format: bool,
pub encryption_key: Option<String>,
pub hash_salt: Option<String>,
}Expand description
Anonymization configuration
Fields§
§strategy: AnonymizationStrategyStrategy to use
mask_char: StringMasking character (for mask strategy)
mask_start_chars: usizeCharacters to show at start (for mask strategy)
mask_end_chars: usizeCharacters to show at end (for mask strategy)
preserve_format: boolPreserve format (for mask strategy)
encryption_key: Option<String>Encryption key (for encrypt strategy)
hash_salt: Option<String>Hash salt (for hash strategy)
Trait Implementations§
Source§impl Clone for AnonymizationConfig
impl Clone for AnonymizationConfig
Source§fn clone(&self) -> AnonymizationConfig
fn clone(&self) -> AnonymizationConfig
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 AnonymizationConfig
impl Debug for AnonymizationConfig
Source§impl Default for AnonymizationConfig
impl Default for AnonymizationConfig
Source§impl<'de> Deserialize<'de> for AnonymizationConfig
impl<'de> Deserialize<'de> for AnonymizationConfig
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
Auto Trait Implementations§
impl Freeze for AnonymizationConfig
impl RefUnwindSafe for AnonymizationConfig
impl Send for AnonymizationConfig
impl Sync for AnonymizationConfig
impl Unpin for AnonymizationConfig
impl UnwindSafe for AnonymizationConfig
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