macro_rules! secret {
(
$(#[$meta:meta])*
$secret:ident
) => { ... };
}Expand description
Generate a secret type
GitHub Apps have several secrets that must be configured, for example the app’s private key and
webhook secret. The [secret] macro can generate a type for these secrets that both protects
the value from accidental exposure and allows the Rust compiler to enforce its type safety.
§Example
use automatons_github::secret;
secret!(PrivateKey);
secret!(WebhookSecret);