kraken_async_rs::secrets::secrets_provider

Trait SecretsProvider

Source
pub trait SecretsProvider:
    Send
    + Sync
    + Debug {
    // Required method
    fn get_secrets(&mut self) -> Secrets;
}
Expand description

Trait that exposes a method for retrieving secrets.

Clients are generic over SecretsProvider so the client can specify how to retrieve the API key and secret at runtime.

Required Methods§

Source

fn get_secrets(&mut self) -> Secrets

Implementors§