Skip to main content

redact_text

Function redact_text 

Source
pub fn redact_text(input: &str) -> RedactionResult
Expand description

Redact text with the configured redactor, falling back to the default regex redactor even when content capture has not been initialized.

This keeps metadata-only traces from leaking secrets through error strings or status messages while still avoiding input/output blob capture.