pub struct DiscoveredProvider {
pub provider: Provider,
pub source: CredentialSource,
pub env_var: Option<&'static str>,
}Expand description
A provider with a discoverable credential — ready to use without prompting the user to paste a key.
Fields§
§provider: Provider§source: CredentialSource§env_var: Option<&'static str>The specific environment variable that satisfied discovery, when
source == Env. Carries the alternate name (e.g. GOOGLE_API_KEY)
when discovery used the alternate rather than the primary env var, so
the UI can tell the user exactly what was read — e.g. “Found
GOOGLE_API_KEY in your environment” instead of a generic “found in
environment”. None for non-env sources and for providers with no env
var (local / managed-auth).
Trait Implementations§
Source§impl Clone for DiscoveredProvider
impl Clone for DiscoveredProvider
impl Copy for DiscoveredProvider
Auto Trait Implementations§
impl Freeze for DiscoveredProvider
impl RefUnwindSafe for DiscoveredProvider
impl Send for DiscoveredProvider
impl Sync for DiscoveredProvider
impl Unpin for DiscoveredProvider
impl UnsafeUnpin for DiscoveredProvider
impl UnwindSafe for DiscoveredProvider
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