pub struct AiProviderConfig {
pub enabled: bool,
pub api_key: String,
pub endpoint: Option<String>,
pub default_model: String,
pub google_search_enabled: bool,
pub models: HashMap<String, ModelDefinition>,
}Fields§
§enabled: bool§api_key: String§endpoint: Option<String>§default_model: String§google_search_enabled: bool§models: HashMap<String, ModelDefinition>Trait Implementations§
Source§impl Clone for AiProviderConfig
impl Clone for AiProviderConfig
Source§fn clone(&self) -> AiProviderConfig
fn clone(&self) -> AiProviderConfig
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 AiProviderConfig
impl Debug for AiProviderConfig
Source§impl Default for AiProviderConfig
impl Default for AiProviderConfig
Source§impl<'de> Deserialize<'de> for AiProviderConfig
impl<'de> Deserialize<'de> for AiProviderConfig
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 AiProviderConfig
impl RefUnwindSafe for AiProviderConfig
impl Send for AiProviderConfig
impl Sync for AiProviderConfig
impl Unpin for AiProviderConfig
impl UnwindSafe for AiProviderConfig
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