Ranvier Compliance (ranvier-compliance)
Compliance helpers and policy enforcement primitives for Ranvier.
Key Components
| Component | Purpose |
|---|---|
Sensitive<T> |
Wrapper that masks data in Display/Debug output |
ClassificationLevel |
4-level data classification (Public, Internal, Confidential, Restricted) |
PiiDetector |
Pattern-based PII detection (email, phone, SSN, credit card, etc.) |
Redact trait |
Custom redaction strategy for domain types |
ErasureRequest |
GDPR right-to-erasure support primitives |
Usage
use *;
let email = new;
println!; // prints "***REDACTED***"
let detector = default;
let found = detector.detect;
// found: [PiiMatch { category: Phone, ... }]
Examples
compliance-demo— PII handling with Sensitive, custom Redact, and PiiDetector
MSRV
- Rust
1.93.0or newer (Edition 2024).