bee_common_derive

Derive Macro SecretDisplay

Source
#[derive(SecretDisplay)]
Expand description

Derives an implementation of the trait core::fmt::Display for a secret type that doesn’t leak its internal secret. Implements https://github.com/iotaledger/bee-rfcs/blob/master/text/0042-secret-debug-display.md. Based on https://github.com/dtolnay/syn/blob/master/examples/heapsize/heapsize_derive/src/lib.rs.