pub enum AIProvider {
Mistral,
}Expand description
Available AI provider types
Variants§
Mistral
Mistral AI
Implementations§
Source§impl AIProvider
impl AIProvider
Sourcepub fn all() -> &'static [AIProvider]
pub fn all() -> &'static [AIProvider]
Return the list of all available providers
Sourcepub fn available_models(&self) -> &'static [(&'static str, &'static str)]
pub fn available_models(&self) -> &'static [(&'static str, &'static str)]
Return available (display_name, model_id) pairs for this provider
Sourcepub fn default_model(&self) -> &'static str
pub fn default_model(&self) -> &'static str
Return the default model ID for this provider
Trait Implementations§
Source§impl Clone for AIProvider
impl Clone for AIProvider
Source§fn clone(&self) -> AIProvider
fn clone(&self) -> AIProvider
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 AIProvider
impl Debug for AIProvider
Source§impl Default for AIProvider
impl Default for AIProvider
Source§fn default() -> AIProvider
fn default() -> AIProvider
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AIProvider
impl<'de> Deserialize<'de> for AIProvider
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 Display for AIProvider
impl Display for AIProvider
Source§impl PartialEq for AIProvider
impl PartialEq for AIProvider
Source§impl Serialize for AIProvider
impl Serialize for AIProvider
impl StructuralPartialEq for AIProvider
Auto Trait Implementations§
impl Freeze for AIProvider
impl RefUnwindSafe for AIProvider
impl Send for AIProvider
impl Sync for AIProvider
impl Unpin for AIProvider
impl UnwindSafe for AIProvider
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