pub struct ProviderConfigs {
pub openai: Option<OpenAIConfig>,
pub anthropic: Option<AnthropicConfig>,
pub gemini: Option<GeminiConfig>,
pub copilot: Option<CopilotConfig>,
pub extra: BTreeMap<String, Value>,
}Expand description
Container for provider-specific configurations
Each field is optional, allowing users to configure only the providers they need.
Fields§
§openai: Option<OpenAIConfig>OpenAI provider configuration
anthropic: Option<AnthropicConfig>Anthropic provider configuration
gemini: Option<GeminiConfig>Google Gemini provider configuration
copilot: Option<CopilotConfig>GitHub Copilot provider configuration
extra: BTreeMap<String, Value>Preserve unknown provider keys (forward compatibility).
Trait Implementations§
Source§impl Clone for ProviderConfigs
impl Clone for ProviderConfigs
Source§fn clone(&self) -> ProviderConfigs
fn clone(&self) -> ProviderConfigs
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 Debug for ProviderConfigs
impl Debug for ProviderConfigs
Source§impl Default for ProviderConfigs
impl Default for ProviderConfigs
Source§fn default() -> ProviderConfigs
fn default() -> ProviderConfigs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderConfigs
impl<'de> Deserialize<'de> for ProviderConfigs
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProviderConfigs
impl RefUnwindSafe for ProviderConfigs
impl Send for ProviderConfigs
impl Sync for ProviderConfigs
impl Unpin for ProviderConfigs
impl UnsafeUnpin for ProviderConfigs
impl UnwindSafe for ProviderConfigs
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