pub struct PseudonymizedText {
pub text: String,
pub mappings: HashMap<String, String>,
pub entities: Vec<DetectedEntity>,
}Expand description
Result of pseudonymizing a text.
Fields§
§text: StringThe text with all sensitive entities replaced by pseudo-tokens.
mappings: HashMap<String, String>Map from pseudo-tokens back to original values (for rehydration).
entities: Vec<DetectedEntity>List of all entities that were detected and replaced.
Trait Implementations§
Source§impl Clone for PseudonymizedText
impl Clone for PseudonymizedText
Source§fn clone(&self) -> PseudonymizedText
fn clone(&self) -> PseudonymizedText
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 moreAuto Trait Implementations§
impl Freeze for PseudonymizedText
impl RefUnwindSafe for PseudonymizedText
impl Send for PseudonymizedText
impl Sync for PseudonymizedText
impl Unpin for PseudonymizedText
impl UnsafeUnpin for PseudonymizedText
impl UnwindSafe for PseudonymizedText
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