expunge 0.3.5

A simple crate to expunge, redact and transform struct fields declaratively
Documentation
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
}