pub struct EnvVarResolver { /* private fields */ }Expand description
Resolves credentials from environment variables.
Supports a primary API key variable and an optional secondary bearer token variable.
When both are set, produces ApiKeyAndBearer. When only one is set, produces
the corresponding single-credential variant.
Implementations§
Source§impl EnvVarResolver
impl EnvVarResolver
Trait Implementations§
Source§impl Clone for EnvVarResolver
impl Clone for EnvVarResolver
Source§fn clone(&self) -> EnvVarResolver
fn clone(&self) -> EnvVarResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CredentialResolver for EnvVarResolver
impl CredentialResolver for EnvVarResolver
Source§fn id(&self) -> &str
fn id(&self) -> &str
Unique identifier for this resolver (e.g.
"env", "codineer-oauth", "claude-code").Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable name shown in UI (e.g.
"Environment Variables").Source§fn resolve(&self) -> Result<Option<ResolvedCredential>, CredentialError>
fn resolve(&self) -> Result<Option<ResolvedCredential>, CredentialError>
Attempt to resolve credentials. Returns
Ok(None) if this source
has no credentials (and the chain should try the next resolver).Source§fn supports_login(&self) -> bool
fn supports_login(&self) -> bool
Whether this resolver supports interactive
login().Auto Trait Implementations§
impl Freeze for EnvVarResolver
impl RefUnwindSafe for EnvVarResolver
impl Send for EnvVarResolver
impl Sync for EnvVarResolver
impl Unpin for EnvVarResolver
impl UnsafeUnpin for EnvVarResolver
impl UnwindSafe for EnvVarResolver
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