pub struct OutsourceConfig {
pub openai_api_key: Option<String>,
pub huggingface_api_key: Option<String>,
pub ollama_endpoint: Option<String>,
pub openai_endpoint: Option<String>,
pub anthropic_api_key: Option<String>,
}
Expand description
Configuration structure for the backend.
Fields§
§openai_api_key: Option<String>
§huggingface_api_key: Option<String>
§ollama_endpoint: Option<String>
§openai_endpoint: Option<String>
§anthropic_api_key: Option<String>
Trait Implementations§
Source§impl ConfigExampleSnippet for OutsourceConfig
impl ConfigExampleSnippet for OutsourceConfig
Source§fn config_example_snippet() -> String
fn config_example_snippet() -> String
Returns the configuration example snippet to be used
in new configuration files.
Source§impl<'de> Deserialize<'de> for OutsourceConfig
impl<'de> Deserialize<'de> for OutsourceConfig
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 OutsourceConfig
impl RefUnwindSafe for OutsourceConfig
impl Send for OutsourceConfig
impl Sync for OutsourceConfig
impl Unpin for OutsourceConfig
impl UnwindSafe for OutsourceConfig
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