pub struct RegexEngine { /* private fields */ }
Implementations§
Source§impl RegexEngine
impl RegexEngine
pub fn new(config: RedactionConfig) -> Result<Self>
pub fn with_options( config: RedactionConfig, options: EngineOptions, ) -> Result<Self>
Trait Implementations§
Source§impl Debug for RegexEngine
impl Debug for RegexEngine
Source§impl SanitizationEngine for RegexEngine
impl SanitizationEngine for RegexEngine
Source§fn sanitize(
&self,
content: &str,
source_id: &str,
run_id: &str,
input_hash: &str,
user_id: &str,
reason: &str,
outcome: &str,
audit_log: Option<&mut AuditLog>,
) -> Result<(String, Vec<RedactionSummaryItem>)>
fn sanitize( &self, content: &str, source_id: &str, run_id: &str, input_hash: &str, user_id: &str, reason: &str, outcome: &str, audit_log: Option<&mut AuditLog>, ) -> Result<(String, Vec<RedactionSummaryItem>)>
Performs full sanitization on the provided content. Read more
Source§fn analyze_for_stats(
&self,
content: &str,
source_id: &str,
) -> Result<Vec<RedactionSummaryItem>>
fn analyze_for_stats( &self, content: &str, source_id: &str, ) -> Result<Vec<RedactionSummaryItem>>
Analyzes the provided content for sensitive data without performing redaction. Read more
Source§fn find_matches_for_ui(
&self,
content: &str,
source_id: &str,
) -> Result<Vec<RedactionMatch>>
fn find_matches_for_ui( &self, content: &str, source_id: &str, ) -> Result<Vec<RedactionMatch>>
Finds all matches and prepares them for an interactive TUI session. Read more
Source§fn compiled_rules(&self) -> &CompiledRules
fn compiled_rules(&self) -> &CompiledRules
Returns a reference to the
CompiledRules
used by the engine. Read moreSource§fn get_rules(&self) -> &RedactionConfig
fn get_rules(&self) -> &RedactionConfig
Returns a reference to the engine’s configuration.
Source§fn get_options(&self) -> &EngineOptions
fn get_options(&self) -> &EngineOptions
Returns a reference to the engine’s options.
Auto Trait Implementations§
impl Freeze for RegexEngine
impl RefUnwindSafe for RegexEngine
impl Send for RegexEngine
impl Sync for RegexEngine
impl Unpin for RegexEngine
impl UnwindSafe for RegexEngine
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