Expand description
Secret string ownership, redaction, and masking.
Structs§
- Secret
String - An owned string that zeroizes its allocation on drop and redacts its debug output.
Constants§
- REDACTED
- Placeholder used in
Debugimpls to redact secret fields.
Functions§
- mask_
api_ key - Masks an API key by showing only the first and last 4 characters.
- redact_
option - Replaces a present value with
REDACTEDwhile preserving absence. - zeroize_
json_ value - Zeroizes every owned string contained in a JSON value.