Module secrets_provider

Source
Expand description

Trait and implementations for retrieving API keys and secrets needed for private calls

Structs§

EnvSecretsProvider
A common implementation that retrieves the key and secret from the given environment variable names.
Secrets
A struct containing the API key and secret (using [secrecy::Secret])
StaticSecretsProvider
A SecretsProvider that stores the key and secret directly. This is useful if you don’t wish to provide a custom implementation, and will directly instantiate a StaticSecretsProvider with your key and secret.

Traits§

SecretsProvider
Trait that exposes a method for retrieving secrets.