relay_pii

Struct JsonScrubVisitor

Source
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>

Source

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>

Source§

fn push_path(&mut self, key: &'de str)

Source§

fn pop_path(&mut self)

Source§

fn transform_str<'a>(&mut self, v: &'a str) -> Cow<'a, str>

Source§

fn transform_string(&mut self, v: String) -> Cow<'static, str>

Source§

fn transform_bool(&mut self, v: bool) -> bool

Source§

fn transform_i8(&mut self, v: i8) -> i8

Source§

fn transform_i16(&mut self, v: i16) -> i16

Source§

fn transform_i32(&mut self, v: i32) -> i32

Source§

fn transform_i64(&mut self, v: i64) -> i64

Source§

fn transform_u8(&mut self, v: u8) -> u8

Source§

fn transform_u16(&mut self, v: u16) -> u16

Source§

fn transform_u32(&mut self, v: u32) -> u32

Source§

fn transform_u64(&mut self, v: u64) -> u64

Source§

fn transform_i128(&mut self, v: i128) -> i128

Source§

fn transform_u128(&mut self, v: u128) -> u128

Source§

fn transform_f32(&mut self, v: f32) -> f32

Source§

fn transform_f64(&mut self, v: f64) -> f64

Source§

fn transform_char(&mut self, v: char) -> char

Source§

fn transform_bytes<'a>(&mut self, v: &'a [u8]) -> Cow<'a, [u8]>

Source§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T