pub fn string(input: &str) -> Cow<'_, str>Expand description
Redact secrets in input, returning a borrowed Cow when no
redactions apply and an owned String otherwise.
The rule set is applied in the documented order (see the spec).
input is expected to be UTF-8 (it is already typed as &str);
callers holding &[u8] must convert themselves.