pub struct ApiKeySources {Show 16 fields
pub gemini_env: String,
pub anthropic_env: String,
pub openai_env: String,
pub openrouter_env: String,
pub deepseek_env: String,
pub zai_env: String,
pub ollama_env: String,
pub lmstudio_env: String,
pub gemini_config: Option<String>,
pub anthropic_config: Option<String>,
pub openai_config: Option<String>,
pub openrouter_config: Option<String>,
pub deepseek_config: Option<String>,
pub zai_config: Option<String>,
pub ollama_config: Option<String>,
pub lmstudio_config: Option<String>,
}Expand description
API key sources for different providers
Retained for backward compatibility. New code should use get_api_key directly —
the struct is no longer consumed by the key resolution logic.
Fields§
§gemini_env: String§anthropic_env: String§openai_env: String§openrouter_env: String§deepseek_env: String§zai_env: String§ollama_env: String§lmstudio_env: String§gemini_config: Option<String>§anthropic_config: Option<String>§openai_config: Option<String>§openrouter_config: Option<String>§deepseek_config: Option<String>§zai_config: Option<String>§ollama_config: Option<String>§lmstudio_config: Option<String>Trait Implementations§
Source§impl Clone for ApiKeySources
impl Clone for ApiKeySources
Source§fn clone(&self) -> ApiKeySources
fn clone(&self) -> ApiKeySources
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiKeySources
impl Debug for ApiKeySources
Source§impl Default for ApiKeySources
impl Default for ApiKeySources
Source§fn default() -> ApiKeySources
fn default() -> ApiKeySources
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ApiKeySources
impl RefUnwindSafe for ApiKeySources
impl Send for ApiKeySources
impl Sync for ApiKeySources
impl Unpin for ApiKeySources
impl UnsafeUnpin for ApiKeySources
impl UnwindSafe for ApiKeySources
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more