Expand description
Derive macros for redaction.
This crate generates traversal code behind #[derive(Sensitive)] and
#[derive(SensitiveError)]. It:
- reads
#[sensitive(...)]field attributes - emits a
SensitiveTypeimplementation 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::SensitiveType(and related impls) for structs and enums. - Sensitive
Error - Derives
redaction::SensitiveTypefor types that should log withoutSerialize.