1 2 3 4 5 6 7 8
use expunge::Expunge; #[derive(Expunge)] struct UserLogin { username: String, #[expunge(as = "<redacted>".to_string(), zeroize)] password: String, // password will be scrubbed from memory after expunging }