macro_rules! protect {
($($var:ident = $value:expr;)*) => { ... };
}Expand description
Macro to create protected variables easily
ยงExamples
use secure_vault::protect;
protect! {
let api_key = "sk_live_123456789";
let secret_token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...";
}
api_key.with_secure(|key| {
println!("Using API key: {}", key);
});