use facet::Facet;
use safe_debug::SafeDebug;
#[derive(Facet, SafeDebug)]
struct PatientRecord {
id: String,
name: String,
#[facet(sensitive)]
ssn: String,
#[facet(sensitive)]
medical_history: String,
}
fn main() {
let record = PatientRecord {
id: "12345".to_string(),
name: "John Doe".to_string(),
ssn: "123-45-6789".to_string(),
medical_history: "Confidential medical data".to_string(),
};
println!("very useful but inattentive log line; record='{:?}'", record);
println!("\nPretty-printing:\n{:#?}", record);
}