pub trait DebugSecret: Debug + Zeroize {
// Provided method
fn debug_secret(f: &mut Formatter<'_>) -> Result<(), Error> { ... }
}Available on crate feature
debug-secret only.Expand description
A trait for debuggable secrets.
This trait extends the standard Debug trait for types that represent secrets,
allowing them to be formatted for debugging purposes.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
impl DebugSecret for f32
impl DebugSecret for f64
impl DebugSecret for i8
impl DebugSecret for i16
impl DebugSecret for i32
impl DebugSecret for i64
impl DebugSecret for i128
impl DebugSecret for isize
impl DebugSecret for u8
impl DebugSecret for u16
impl DebugSecret for u32
impl DebugSecret for u64
impl DebugSecret for u128
impl DebugSecret for usize
impl DebugSecret for String
Available on crate feature
alloc only.impl<T: Debug + Zeroize> DebugSecret for Vec<T>
Available on crate feature
alloc only.