pub struct EntropyEngine { /* private fields */ }Implementations§
Source§impl EntropyEngine
impl EntropyEngine
pub fn new(config: RedactionConfig) -> Result<Self>
pub fn with_options( config: RedactionConfig, options: EngineOptions, ) -> Result<Self>
pub fn update_fingerprints(&mut self, fingerprints: Vec<SecretFingerprint>)
Trait Implementations§
Source§impl Debug for EntropyEngine
impl Debug for EntropyEngine
Source§impl SanitizationEngine for EntropyEngine
impl SanitizationEngine for EntropyEngine
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 get_heat_scores(&self, content: &str) -> Vec<f64>
fn get_heat_scores(&self, content: &str) -> Vec<f64>
Returns the statistical “heat” (entropy) for each character in the input.
This allows the UI to render heatmaps via dependency inversion.
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.
Source§fn set_remediation_tx(&mut self, tx: Sender<RedactionMatch>)
fn set_remediation_tx(&mut self, tx: Sender<RedactionMatch>)
Sets the remediation channel for the self-healing orchestrator.
This enables v0.2.0 “Tee-Logic” where matches are sent asynchronously for healing.
Auto Trait Implementations§
impl Freeze for EntropyEngine
impl RefUnwindSafe for EntropyEngine
impl Send for EntropyEngine
impl Sync for EntropyEngine
impl Unpin for EntropyEngine
impl UnsafeUnpin for EntropyEngine
impl UnwindSafe for EntropyEngine
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