pub enum ProviderKind {
Anthropic,
Bedrock,
Vertex,
OpenAi,
Xai,
Google,
DeepSeek,
Groq,
Mistral,
Together,
Zhipu,
OpenAiCompatible,
}Expand description
Provider kinds.
Variants§
Implementations§
Source§impl ProviderKind
impl ProviderKind
Sourcepub fn wire_format(&self) -> WireFormat
pub fn wire_format(&self) -> WireFormat
Which wire format this provider uses.
Sourcepub fn default_base_url(&self) -> Option<&str>
pub fn default_base_url(&self) -> Option<&str>
The default base URL for this provider, or None for providers
whose URL must come from user configuration (Bedrock, Vertex,
and generic OpenAI-compatible endpoints).
Sourcepub fn env_var_name(&self) -> &str
pub fn env_var_name(&self) -> &str
The environment variable name conventionally used for this provider’s API key.
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 · 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 ProviderKind
impl Debug for ProviderKind
Source§impl PartialEq for ProviderKind
impl PartialEq for ProviderKind
impl Copy for ProviderKind
impl Eq 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