pub struct ApiKeySources {Show 18 fields
pub gemini_env: String,
pub anthropic_env: String,
pub openai_env: String,
pub openrouter_env: String,
pub xai_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 xai_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
Fields§
§gemini_env: StringGemini API key environment variable name
anthropic_env: StringAnthropic API key environment variable name
openai_env: StringOpenAI API key environment variable name
openrouter_env: StringOpenRouter API key environment variable name
xai_env: StringxAI API key environment variable name
deepseek_env: StringDeepSeek API key environment variable name
zai_env: StringZ.AI API key environment variable name
ollama_env: StringOllama API key environment variable name
lmstudio_env: StringLM Studio API key environment variable name
gemini_config: Option<String>Gemini API key from configuration file
anthropic_config: Option<String>Anthropic API key from configuration file
openai_config: Option<String>OpenAI API key from configuration file
openrouter_config: Option<String>OpenRouter API key from configuration file
xai_config: Option<String>xAI API key from configuration file
deepseek_config: Option<String>DeepSeek API key from configuration file
zai_config: Option<String>Z.AI API key from configuration file
ollama_config: Option<String>Ollama API key from configuration file
lmstudio_config: Option<String>LM Studio API key from configuration file
Implementations§
Source§impl ApiKeySources
impl ApiKeySources
Sourcepub fn for_provider(_provider: &str) -> Self
pub fn for_provider(_provider: &str) -> Self
Create API key sources for a specific provider with automatic environment variable inference
Trait Implementations§
Source§impl Clone for ApiKeySources
impl Clone for ApiKeySources
Source§fn clone(&self) -> ApiKeySources
fn clone(&self) -> ApiKeySources
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ApiKeySources
impl Debug for ApiKeySources
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
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>
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>
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