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: Vars
Parameters 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 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)