pub fn scrub_secrets<'a>(text: &'a str, config: &ScrubConfig) -> Cow<'a, str>Expand description
Scrub known secret formats from text, replacing each match with
[REDACTED:<label>].
If config.enabled is false, returns text unchanged (borrowed, no
allocation). Otherwise applies every built-in redaction pattern in
order; the result is allocation-free (Cow::Borrowed) when no pattern
matches.