pub trait ProviderCredentialStore: Send + Sync {
// Required method
fn get_default_provider_credentials<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_type: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ProviderCredentials>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Required Methods§
Sourcefn get_default_provider_credentials<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_type: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ProviderCredentials>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_default_provider_credentials<'life0, 'life1, 'async_trait>(
&'life0 self,
provider_type: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<ProviderCredentials>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve default credentials for a provider type (for example openai).
Implementations may apply environment fallbacks internally, but tools should never read provider env vars directly.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".