Skip to main content

Crate redaction_derive

Crate redaction_derive 

Source
Expand description

Derive macros for redaction.

This crate generates the traversal code behind #[derive(Sensitive)]. It:

  • reads #[sensitive(...)] field attributes
  • emits a RedactionWalker implementation that calls into a mapper

It does not define classifications or policies. Those live in the main redaction crate and are applied at runtime.

Derive Macrosยง

Sensitive
Derives redaction::RedactionWalker (and related impls) for structs and enums.