pub struct Providers {
pub default: ProviderId,
pub smart: ProviderId,
pub llms: Vec<LlmConfig>,
pub languagetool: LanguageToolConfig,
}Expand description
Provider routing settings.
Fields§
§default: ProviderIdProvider used for fix-last-word (instant, ideally local).
smart: ProviderIdProvider used for fix-last-sentence and the review popup.
llms: Vec<LlmConfig>Configured LLM providers, one per hosted backend (max
MAX_LLM_PROVIDERS). When ProviderId::Llm is selected the
daemon uses the first entry whose backend is wired and keyed. The
field-level #[serde(default)] makes an absent llms deserialize
to an empty list, so the prefs UI can persist “no providers”.
languagetool: LanguageToolConfigTrait Implementations§
Source§impl<'de> Deserialize<'de> for Providers
impl<'de> Deserialize<'de> for Providers
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
impl Eq for Providers
impl StructuralPartialEq for Providers
Auto Trait Implementations§
impl Freeze for Providers
impl RefUnwindSafe for Providers
impl Send for Providers
impl Sync for Providers
impl Unpin for Providers
impl UnsafeUnpin for Providers
impl UnwindSafe for Providers
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.