pub enum StreamingProtocolCompat {
AnthropicMessages(AnthropicMessagesCompat),
OpenaiCompletions(OpenaiCompletionsCompat),
OpenaiResponses(OpenaiResponsesCompat),
Bedrock(BedrockCompat),
Other(Value),
None,
}Expand description
Per-API compat blob. Matches the TS compat? discriminator on Model.
Variants§
AnthropicMessages(AnthropicMessagesCompat)
OpenaiCompletions(OpenaiCompletionsCompat)
OpenaiResponses(OpenaiResponsesCompat)
Bedrock(BedrockCompat)
Other(Value)
Custom / unknown API compat (opaque passthrough).
None
No compat configured (default for faux and simple providers).
Implementations§
Source§impl StreamingProtocolCompat
impl StreamingProtocolCompat
pub fn as_anthropic(&self) -> Option<&AnthropicMessagesCompat>
Trait Implementations§
Source§impl Clone for StreamingProtocolCompat
impl Clone for StreamingProtocolCompat
Source§impl Debug for StreamingProtocolCompat
impl Debug for StreamingProtocolCompat
Source§impl Default for StreamingProtocolCompat
impl Default for StreamingProtocolCompat
Source§impl<'de> Deserialize<'de> for StreamingProtocolCompat
impl<'de> Deserialize<'de> for StreamingProtocolCompat
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 StreamingProtocolCompat
Source§impl PartialEq for StreamingProtocolCompat
impl PartialEq for StreamingProtocolCompat
Source§impl Serialize for StreamingProtocolCompat
impl Serialize for StreamingProtocolCompat
impl StructuralPartialEq for StreamingProtocolCompat
Auto Trait Implementations§
impl Freeze for StreamingProtocolCompat
impl RefUnwindSafe for StreamingProtocolCompat
impl Send for StreamingProtocolCompat
impl Sync for StreamingProtocolCompat
impl Unpin for StreamingProtocolCompat
impl UnsafeUnpin for StreamingProtocolCompat
impl UnwindSafe for StreamingProtocolCompat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.