pub struct PiiConfig {
pub rules: BTreeMap<String, RuleSpec>,
pub vars: Vars,
pub applications: BTreeMap<SelectorSpec, Vec<String>>,
/* private fields */
}Expand description
A set of named rule configurations.
Fields§
§rules: BTreeMap<String, RuleSpec>A map of custom PII rules.
vars: VarsParameters for PII rules.
applications: BTreeMap<SelectorSpec, Vec<String>>Mapping of selectors to rules.
Implementations§
Source§impl PiiConfig
impl PiiConfig
Sourcepub fn compiled(&self) -> &CompiledPiiConfig
pub fn compiled(&self) -> &CompiledPiiConfig
Get a representation of this PiiConfig that is more (CPU-)efficient for processing.
This can be computationally expensive when called for the first time. The result is cached internally and reused on the second call.
Sourcepub fn compiled_uncached(&self) -> CompiledPiiConfig
pub fn compiled_uncached(&self) -> CompiledPiiConfig
Like compiled but without internal caching.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PiiConfig
impl<'de> Deserialize<'de> for PiiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !Freeze for PiiConfig
impl RefUnwindSafe for PiiConfig
impl Send for PiiConfig
impl Sync for PiiConfig
impl Unpin for PiiConfig
impl UnsafeUnpin for PiiConfig
impl UnwindSafe for PiiConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more