Skip to main content

redact_option

Function redact_option 

Source
pub const fn redact_option<T: ?Sized>(value: Option<&T>) -> Option<&'static str>
Expand description

Replaces a present value with REDACTED while preserving absence.

This is intended for optional secret fields in Debug implementations.