Derive Macro encrypt_config::SecretSource

source ·
#[derive(SecretSource)]
{
    // Attributes available to this derive:
    #[source]
}
Available on crate features derive and secret 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,
}