pub struct EnvFallbackResolver {
pub store: Arc<dyn CredentialStore>,
}Fields§
§store: Arc<dyn CredentialStore>Implementations§
Source§impl EnvFallbackResolver
impl EnvFallbackResolver
pub fn new(store: Arc<dyn CredentialStore>) -> Self
Trait Implementations§
Source§impl CredentialResolver for EnvFallbackResolver
impl CredentialResolver for EnvFallbackResolver
Source§fn resolve_cloud_ai_key(
&self,
provider: &str,
env_var: &str,
) -> Result<String, CredentialError>
fn resolve_cloud_ai_key( &self, provider: &str, env_var: &str, ) -> Result<String, CredentialError>
Resolve the API key for a cloud-AI provider, given the canonical
provider name and the env-var name to fall back to.
Auto Trait Implementations§
impl Freeze for EnvFallbackResolver
impl !RefUnwindSafe for EnvFallbackResolver
impl Send for EnvFallbackResolver
impl Sync for EnvFallbackResolver
impl Unpin for EnvFallbackResolver
impl UnsafeUnpin for EnvFallbackResolver
impl !UnwindSafe for EnvFallbackResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more