CredentialsProvider

Trait CredentialsProvider 

Source
pub trait CredentialsProvider: Send + Sync {
    // Required method
    fn provider_credentials(&self) -> Result<Credentials, LagoError>;
}
Expand description

Trait for providing credentials to the Lago client

This trait allows for different methods of credential provision, such as static credentials, environment variables, or other sources.

Required Methods§

Source

fn provider_credentials(&self) -> Result<Credentials, LagoError>

Provides credentials for API authentication

§Returns

A Result containing Credentials or an error if credentials cannot be provided

Implementors§