SecretSource

Derive Macro SecretSource 

Source
#[derive(SecretSource)]
{
    // Attributes available to this derive:
    #[source]
}
Available on crate feature derive only.
Expand description

Derive macro for SecretSource.

ยงExample

#[derive(Serialize, Deserialize, Default, SecretSource)]
#[source(path = "/path/to/secret_config", keyring_entry = "secret")]
struct SecretConfig {
   password: String,
}