pub struct ProviderCacheConfig(/* private fields */);Implementations§
Source§impl ProviderCacheConfig
impl ProviderCacheConfig
pub fn validate_supported_shape(&self) -> Result<(), String>
pub fn anthropic(&self) -> Result<AnthropicCacheConfig, String>
pub fn bedrock(&self) -> Result<BedrockCacheConfig, String>
pub fn openai(&self) -> Result<OpenAiCacheConfig, String>
pub fn openai_compatible(&self) -> Result<OpenAiCompatibleCacheConfig, String>
Trait Implementations§
Source§impl Clone for ProviderCacheConfig
impl Clone for ProviderCacheConfig
Source§fn clone(&self) -> ProviderCacheConfig
fn clone(&self) -> ProviderCacheConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderCacheConfig
impl Debug for ProviderCacheConfig
Source§impl<'de> Deserialize<'de> for ProviderCacheConfig
impl<'de> Deserialize<'de> for ProviderCacheConfig
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 ProviderCacheConfig
Source§impl PartialEq for ProviderCacheConfig
impl PartialEq for ProviderCacheConfig
Source§fn eq(&self, other: &ProviderCacheConfig) -> bool
fn eq(&self, other: &ProviderCacheConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderCacheConfig
impl Serialize for ProviderCacheConfig
impl StructuralPartialEq for ProviderCacheConfig
Auto Trait Implementations§
impl Freeze for ProviderCacheConfig
impl RefUnwindSafe for ProviderCacheConfig
impl Send for ProviderCacheConfig
impl Sync for ProviderCacheConfig
impl Unpin for ProviderCacheConfig
impl UnsafeUnpin for ProviderCacheConfig
impl UnwindSafe for ProviderCacheConfig
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