Trait secrecy::DebugSecret
source · pub trait DebugSecret {
// Provided method
fn debug_secret(f: &mut Formatter<'_>) -> Result<(), Error> { ... }
}
Expand description
Debugging trait which is specialized for handling secret values
Provided Methods§
sourcefn debug_secret(f: &mut Formatter<'_>) -> Result<(), Error>
fn debug_secret(f: &mut Formatter<'_>) -> Result<(), Error>
Format information about the secret’s type.
This can be thought of as an equivalent to Debug::fmt
, but one
which by design does not permit access to the secret value.