pub struct HashAnonymizer { /* private fields */ }Expand description
Hash anonymizer for irreversible anonymization
Implementations§
Source§impl HashAnonymizer
impl HashAnonymizer
pub fn new() -> Self
pub fn with_algorithm(self, algorithm: HashAlgorithm) -> Self
Trait Implementations§
Source§impl Anonymizer for HashAnonymizer
impl Anonymizer for HashAnonymizer
Source§fn anonymize(
&self,
text: &str,
entities: Vec<RecognizerResult>,
config: &AnonymizerConfig,
) -> Result<AnonymizedResult>
fn anonymize( &self, text: &str, entities: Vec<RecognizerResult>, config: &AnonymizerConfig, ) -> Result<AnonymizedResult>
Anonymize text based on recognized entities
Source§impl Clone for HashAnonymizer
impl Clone for HashAnonymizer
Source§fn clone(&self) -> HashAnonymizer
fn clone(&self) -> HashAnonymizer
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 HashAnonymizer
impl Debug for HashAnonymizer
Auto Trait Implementations§
impl Freeze for HashAnonymizer
impl RefUnwindSafe for HashAnonymizer
impl Send for HashAnonymizer
impl Sync for HashAnonymizer
impl Unpin for HashAnonymizer
impl UnsafeUnpin for HashAnonymizer
impl UnwindSafe for HashAnonymizer
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