Expand description
Derive macros for redactable.
This crate generates traversal code behind #[derive(Sensitive)] and
#[derive(SensitiveError)]. It:
- reads
#[sensitive(...)]field attributes - emits a
RedactableContainerimplementation that calls into a mapper
It does not define policy markers or text policies. Those live in the main
redactable crate and are applied at runtime.
Derive Macrosยง
- NotSensitive
- Derives a no-op
redactable::RedactableContainerimplementation. - Sensitive
- Derives
redactable::RedactableContainer(and related impls) for structs and enums. - Sensitive
Data - Sensitive
Error - Derives
redactable::RedactableContainerfor types that should log withoutSerialize.