pub struct RedactRule {
pub re: Regex,
pub replacement: String,
}Expand description
One redaction rule: a compiled regex and its replacement template.
The replacement may reference capture groups ($1, ${1}) for
partial masking, e.g. keep a prefix and mask the rest.
Fields§
§re: Regex§replacement: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for RedactRule
impl RefUnwindSafe for RedactRule
impl Send for RedactRule
impl Sync for RedactRule
impl Unpin for RedactRule
impl UnsafeUnpin for RedactRule
impl UnwindSafe for RedactRule
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