pub struct EnvironmentCredentialsProvider;Expand description
A credentials provider that loads credentials from environment variables
This provider attempts to load the API key from the LAGO_API_KEY environment variable.
Implementations§
Trait Implementations§
Source§impl CredentialsProvider for EnvironmentCredentialsProvider
impl CredentialsProvider for EnvironmentCredentialsProvider
Source§fn provider_credentials(&self) -> Result<Credentials, LagoError>
fn provider_credentials(&self) -> Result<Credentials, LagoError>
Loads credentials from the LAGO_API_KEY environment variable
§Returns
A Result containing Credentials loaded from the environment,
or an error if the environment variable is not set
Auto Trait Implementations§
impl Freeze for EnvironmentCredentialsProvider
impl RefUnwindSafe for EnvironmentCredentialsProvider
impl Send for EnvironmentCredentialsProvider
impl Sync for EnvironmentCredentialsProvider
impl Unpin for EnvironmentCredentialsProvider
impl UnwindSafe for EnvironmentCredentialsProvider
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