#[non_exhaustive]pub struct ProviderExtensions {
pub anthropic: Option<AnthropicExt>,
pub openai_chat: Option<OpenAiChatExt>,
pub openai_responses: Option<OpenAiResponsesExt>,
pub gemini: Option<GeminiExt>,
pub bedrock: Option<BedrockExt>,
}Expand description
Per-provider typed extensions. Defaults to None for every
vendor, which corresponds to “no overrides — codec uses its
vendor default for any field operators didn’t set on the IR
proper”.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.anthropic: Option<AnthropicExt>Anthropic Messages API knobs. Honoured by
AnthropicMessagesCodec; emits LossyEncode if set on
requests routed to non-Anthropic codecs.
openai_chat: Option<OpenAiChatExt>OpenAI Chat Completions knobs. Honoured by OpenAiChatCodec.
openai_responses: Option<OpenAiResponsesExt>OpenAI Responses API knobs. Honoured by
OpenAiResponsesCodec.
gemini: Option<GeminiExt>Gemini Generative Language API knobs. Honoured by
GeminiCodec.
bedrock: Option<BedrockExt>Bedrock Converse API knobs. Honoured by BedrockConverseCodec.
Implementations§
Source§impl ProviderExtensions
impl ProviderExtensions
Sourcepub fn with_anthropic(self, ext: AnthropicExt) -> Self
pub fn with_anthropic(self, ext: AnthropicExt) -> Self
Builder-style attach for the Anthropic ext.
Sourcepub fn with_openai_chat(self, ext: OpenAiChatExt) -> Self
pub fn with_openai_chat(self, ext: OpenAiChatExt) -> Self
Builder-style attach for the OpenAI Chat ext.
Sourcepub fn with_openai_responses(self, ext: OpenAiResponsesExt) -> Self
pub fn with_openai_responses(self, ext: OpenAiResponsesExt) -> Self
Builder-style attach for the OpenAI Responses ext.
Sourcepub fn with_gemini(self, ext: GeminiExt) -> Self
pub fn with_gemini(self, ext: GeminiExt) -> Self
Builder-style attach for the Gemini ext.
Sourcepub fn with_bedrock(self, ext: BedrockExt) -> Self
pub fn with_bedrock(self, ext: BedrockExt) -> Self
Builder-style attach for the Bedrock ext.
Trait Implementations§
Source§impl Clone for ProviderExtensions
impl Clone for ProviderExtensions
Source§fn clone(&self) -> ProviderExtensions
fn clone(&self) -> ProviderExtensions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderExtensions
impl Debug for ProviderExtensions
Source§impl Default for ProviderExtensions
impl Default for ProviderExtensions
Source§fn default() -> ProviderExtensions
fn default() -> ProviderExtensions
Source§impl<'de> Deserialize<'de> for ProviderExtensions
impl<'de> Deserialize<'de> for ProviderExtensions
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>,
Source§impl PartialEq for ProviderExtensions
impl PartialEq for ProviderExtensions
Source§fn eq(&self, other: &ProviderExtensions) -> bool
fn eq(&self, other: &ProviderExtensions) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderExtensions
impl Serialize for ProviderExtensions
impl Eq for ProviderExtensions
impl StructuralPartialEq for ProviderExtensions
Auto Trait Implementations§
impl Freeze for ProviderExtensions
impl RefUnwindSafe for ProviderExtensions
impl Send for ProviderExtensions
impl Sync for ProviderExtensions
impl Unpin for ProviderExtensions
impl UnsafeUnpin for ProviderExtensions
impl UnwindSafe for ProviderExtensions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.