pub struct JsonObfuscator { /* private fields */ }Expand description
Obfuscates a JSON string by replacing all leaf values with "?", unless the value belongs to a
key listed in keep_keys, in which case it is left verbatim.
Keys in transform_keys have their string values passed through a transformer function
(e.g. SQL obfuscation) instead of being replaced with "?".
Multiple concatenated JSON objects in the input are each obfuscated independently.
On a parse error the output so far is returned with "..." appended.
Implementations§
Auto Trait Implementations§
impl Freeze for JsonObfuscator
impl RefUnwindSafe for JsonObfuscator
impl Send for JsonObfuscator
impl Sync for JsonObfuscator
impl Unpin for JsonObfuscator
impl UnsafeUnpin for JsonObfuscator
impl UnwindSafe for JsonObfuscator
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