Derive Macro secrecy::Zeroize

source · []
#[derive(Zeroize)]
{
    // Attributes available to this derive:
    #[zeroize]
}
Expand description

Derive the Zeroize trait.

Supports the following attribute:

  • #[zeroize(drop)]: derives the Drop trait, calling zeroize() when this item is dropped.
  • #[zeroize(skip)]: skips this field or variant when calling zeroize().