pub struct CompiledRule {
pub regex: Regex,
pub replace_with: String,
pub name: String,
pub programmatic_validation: bool,
}
Expand description
Represents a single compiled redaction rule.
This struct holds a compiled regular expression along with its associated replacement text and metadata, ready for efficient application to content.
Fields§
§regex: Regex
The compiled regular expression used for matching.
replace_with: String
The string to replace matches of this rule’s pattern with.
name: String
The unique name of the redaction rule.
programmatic_validation: bool
A flag indicating if this rule requires additional programmatic validation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledRule
impl RefUnwindSafe for CompiledRule
impl Send for CompiledRule
impl Sync for CompiledRule
impl Unpin for CompiledRule
impl UnwindSafe for CompiledRule
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