#[non_exhaustive]pub enum ApiFormat {
AnthropicMessages,
OpenaiChat,
OpenaiResponses,
}Expand description
Re-exported from llm_bridge_core::model::ApiFormat as the single source of truth.
The target API format for protocol transformation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AnthropicMessages
Anthropic Messages API (/v1/messages)
OpenaiChat
OpenAI Chat Completions API (/v1/chat/completions)
OpenaiResponses
OpenAI Responses API (/v1/responses)
Trait Implementations§
impl Copy for ApiFormat
Source§impl<'de> Deserialize<'de> for ApiFormat
impl<'de> Deserialize<'de> for ApiFormat
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApiFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApiFormat, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApiFormat
Source§impl Serialize for ApiFormat
impl Serialize for ApiFormat
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ApiFormat
Auto Trait Implementations§
impl Freeze for ApiFormat
impl RefUnwindSafe for ApiFormat
impl Send for ApiFormat
impl Sync for ApiFormat
impl Unpin for ApiFormat
impl UnsafeUnpin for ApiFormat
impl UnwindSafe for ApiFormat
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