Derive Macro zeroize_derive::ZeroizeOnDrop

source ยท
#[derive(ZeroizeOnDrop)]
{
    // Attributes available to this derive:
    #[zeroize]
}
Expand description

Derive the ZeroizeOnDrop trait.

Supports the following attributes:

On the field level:

  • #[zeroize(skip)]: skips this field or variant when calling zeroize()