pub struct JsonScrubVisitor<'a> { /* private fields */ }
Expand description
Visitor for JSON file scrubbing. It will be used to walk through the structure and scrub PII based on the config defined in the processor.
Implementations§
Source§impl<'a> JsonScrubVisitor<'a>
impl<'a> JsonScrubVisitor<'a>
Sourcepub fn new(config: &'a CompiledPiiConfig) -> Self
pub fn new(config: &'a CompiledPiiConfig) -> Self
Creates a new JsonScrubVisitor
using the supplied config.
Trait Implementations§
Source§impl<'de> Transform<'de> for JsonScrubVisitor<'de>
impl<'de> Transform<'de> for JsonScrubVisitor<'de>
fn push_path(&mut self, key: &'de str)
fn pop_path(&mut self)
fn transform_str<'a>(&mut self, v: &'a str) -> Cow<'a, str>
fn transform_string(&mut self, v: String) -> Cow<'static, str>
fn transform_bool(&mut self, v: bool) -> bool
fn transform_i8(&mut self, v: i8) -> i8
fn transform_i16(&mut self, v: i16) -> i16
fn transform_i32(&mut self, v: i32) -> i32
fn transform_i64(&mut self, v: i64) -> i64
fn transform_u8(&mut self, v: u8) -> u8
fn transform_u16(&mut self, v: u16) -> u16
fn transform_u32(&mut self, v: u32) -> u32
fn transform_u64(&mut self, v: u64) -> u64
fn transform_i128(&mut self, v: i128) -> i128
fn transform_u128(&mut self, v: u128) -> u128
fn transform_f32(&mut self, v: f32) -> f32
fn transform_f64(&mut self, v: f64) -> f64
fn transform_char(&mut self, v: char) -> char
fn transform_bytes<'a>(&mut self, v: &'a [u8]) -> Cow<'a, [u8]>
fn transform_byte_buf(&mut self, v: Vec<u8>) -> Cow<'static, [u8]>
Auto Trait Implementations§
impl<'a> Freeze for JsonScrubVisitor<'a>
impl<'a> RefUnwindSafe for JsonScrubVisitor<'a>
impl<'a> Send for JsonScrubVisitor<'a>
impl<'a> Sync for JsonScrubVisitor<'a>
impl<'a> Unpin for JsonScrubVisitor<'a>
impl<'a> UnwindSafe for JsonScrubVisitor<'a>
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