pub enum ProviderKind {
Show 25 variants
Deepseek,
NvidiaNim,
Openai,
Atlascloud,
WanjieArk,
Volcengine,
Openrouter,
XiaomiMimo,
Novita,
Fireworks,
Siliconflow,
Arcee,
SiliconflowCN,
Moonshot,
Sglang,
Vllm,
Ollama,
Huggingface,
Together,
OpenaiCodex,
Anthropic,
Zai,
Stepfun,
Minimax,
Deepinfra,
}Variants§
Deepseek
NvidiaNim
Openai
Atlascloud
WanjieArk
Volcengine
Openrouter
XiaomiMimo
Novita
Fireworks
Siliconflow
Arcee
SiliconflowCN
Moonshot
Sglang
Vllm
Ollama
Huggingface
Together
OpenaiCodex
Anthropic
Zai
Stepfun
Minimax
Deepinfra
Implementations§
Source§impl ProviderKind
impl ProviderKind
pub const ALL: [Self; 25]
pub fn all() -> &'static [Self]
pub fn names_hint() -> String
pub fn as_str(self) -> &'static str
pub fn parse(value: &str) -> Option<Self>
pub fn is_siliconflow(self) -> bool
Sourcepub fn provider(self) -> &'static dyn Provider
pub fn provider(self) -> &'static dyn Provider
Return the built-in metadata entry for this provider.
This is a metadata foundation only; runtime routing still resolves
through ConfigToml::resolve_runtime_options.
Trait Implementations§
Source§impl Clone for ProviderKind
impl Clone for ProviderKind
Source§fn clone(&self) -> ProviderKind
fn clone(&self) -> ProviderKind
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 moreimpl Copy for ProviderKind
Source§impl Debug for ProviderKind
impl Debug for ProviderKind
Source§impl Default for ProviderKind
impl Default for ProviderKind
Source§fn default() -> ProviderKind
fn default() -> ProviderKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderKind
impl<'de> Deserialize<'de> for ProviderKind
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 ProviderKind
Source§impl PartialEq for ProviderKind
impl PartialEq for ProviderKind
Source§fn eq(&self, other: &ProviderKind) -> bool
fn eq(&self, other: &ProviderKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderKind
impl Serialize for ProviderKind
impl StructuralPartialEq for ProviderKind
Auto Trait Implementations§
impl Freeze for ProviderKind
impl RefUnwindSafe for ProviderKind
impl Send for ProviderKind
impl Sync for ProviderKind
impl Unpin for ProviderKind
impl UnsafeUnpin for ProviderKind
impl UnwindSafe for ProviderKind
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.