pub enum ApiStandard {
OpenAI,
Anthropic,
}Expand description
API protocol standard for remote providers.
Only two wire formats exist: OpenAI-compatible and Anthropic.
Defaults to OpenAI when omitted in config.
Variants§
OpenAI
OpenAI-compatible chat completions API (covers DeepSeek, Grok, Qwen, Kimi, Ollama, etc.).
Anthropic
Anthropic Messages API.
Trait Implementations§
Source§impl Clone for ApiStandard
impl Clone for ApiStandard
Source§fn clone(&self) -> ApiStandard
fn clone(&self) -> ApiStandard
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 ApiStandard
impl Debug for ApiStandard
Source§impl Default for ApiStandard
impl Default for ApiStandard
Source§fn default() -> ApiStandard
fn default() -> ApiStandard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiStandard
impl<'de> Deserialize<'de> for ApiStandard
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 PartialEq for ApiStandard
impl PartialEq for ApiStandard
Source§impl Serialize for ApiStandard
impl Serialize for ApiStandard
impl Copy for ApiStandard
impl Eq for ApiStandard
impl StructuralPartialEq for ApiStandard
Auto Trait Implementations§
impl Freeze for ApiStandard
impl RefUnwindSafe for ApiStandard
impl Send for ApiStandard
impl Sync for ApiStandard
impl Unpin for ApiStandard
impl UnsafeUnpin for ApiStandard
impl UnwindSafe for ApiStandard
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