macro_rules! impl_secret_debug {
($t:ty) => { ... };
}Expand description
This macro will allow a newtype that has a single tuple field to use a fingerprint instead of printing the secret value. struct Foo([u8;32]) impl_secret_debug!(Foo); Then the debug will print something like Foo(redacted:bda33dd3...).