Skip to main content

redact_value

Function redact_value 

Source
pub fn redact_value(value: &str) -> String
Expand description

Redact one free-text value without sequence-aware flag handling or truncation.

This is the single-value counterpart to redact_args. It is useful at boundaries that receive one field at a time, such as a record/replay cassette scrubber, where truncating a captured JSON document would make the fixture unusable. Long argv values are still truncated by redact_args.