pub struct ApiBackendConfig {
pub provider: String,
pub model: String,
pub api_key_env: String,
pub temperature: Option<f32>,
}Fields§
§provider: StringProvider key — currently "google" (Gemini). Future:
"anthropic" / "openai".
model: StringModel identifier passed to the provider. Examples:
- google:
"gemini-2.5-flash","gemini-2.5-pro" - anthropic:
"claude-sonnet-4-6" - openai:
"gpt-4o-mini"
api_key_env: StringName of the env var holding the API key (e.g. "GEMINI_API_KEY").
Resolving at request time means a missing key only breaks API
backends — CLI backends keep working zero-config.
temperature: Option<f32>Optional per-call temperature (provider default if omitted).
Trait Implementations§
Source§impl Clone for ApiBackendConfig
impl Clone for ApiBackendConfig
Source§fn clone(&self) -> ApiBackendConfig
fn clone(&self) -> ApiBackendConfig
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 ApiBackendConfig
impl Debug for ApiBackendConfig
Source§impl<'de> Deserialize<'de> for ApiBackendConfig
impl<'de> Deserialize<'de> for ApiBackendConfig
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 ApiBackendConfig
impl RefUnwindSafe for ApiBackendConfig
impl Send for ApiBackendConfig
impl Sync for ApiBackendConfig
impl Unpin for ApiBackendConfig
impl UnsafeUnpin for ApiBackendConfig
impl UnwindSafe for ApiBackendConfig
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