Skip to main content

SensitiveDual

Derive Macro SensitiveDual 

Source
#[derive(SensitiveDual)]
{
    // Attributes available to this derive:
    #[sensitive]
    #[not_sensitive]
    #[redactable]
    #[error]
}
Expand description

Derives structural and display redaction as one authenticated expansion.

Use this instead of combining Sensitive and SensitiveDisplay with the legacy #[sensitive(dual)] coordination attribute.