macro_rules! dynamic_alias {
($name:ident, $ty:ty) => { ... };
}Expand description
Defines a type alias for a dynamic (heap-allocated) secret.
The resulting type inherits all methods and conversions from [Dynamic<T>].
§Examples
use secure_gate::dynamic_alias;
dynamic_alias!(Password, String);
let pw: Password = "hunter2".into();
assert_eq!(pw.expose_secret(), "hunter2");