pub struct ProviderConfig {
pub openai: OpenAIConfig,
pub anthropic: AnthropicConfig,
pub openrouter: OpenRouterConfig,
pub mimo_auth_method: Option<MiMoAuthMethod>,
}Expand description
Provider-specific configuration
Fields§
§openai: OpenAIConfigOpenAI provider configuration
anthropic: AnthropicConfigAnthropic provider configuration
openrouter: OpenRouterConfigOpenRouter provider configuration
mimo_auth_method: Option<MiMoAuthMethod>Xiaomi MiMo auth method: “payg” or “token-plan”
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§impl Debug for ProviderConfig
impl Debug for ProviderConfig
Source§impl Default for ProviderConfig
impl Default for ProviderConfig
Source§impl<'de> Deserialize<'de> for ProviderConfig
impl<'de> Deserialize<'de> for ProviderConfig
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
Source§impl JsonSchema for ProviderConfig
impl JsonSchema for ProviderConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for ProviderConfig
impl Freeze for ProviderConfigwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<OpenAIHostedSkill>: Freeze,
PhantomData<OpenAIHostedShellDomainSecret>: Freeze,
PhantomData<AnthropicFallbackTarget>: Freeze,
impl Move for ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfigwhere
RawVecInner: Send,
impl Sync for ProviderConfigwhere
RawVecInner: Sync,
impl Unpin for ProviderConfig
impl UnsafeUnpin for ProviderConfig
impl UnwindSafe for ProviderConfigwhere
RawVecInner: UnwindSafe,
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