pub struct OpenAiCacheStrategyConfig {
pub prompt_cache_key: Option<String>,
pub prompt_cache_retention: Option<OpenAiPromptCacheRetention>,
pub mode: Option<OpenAiCacheMode>,
pub ttl: Option<OpenAiPromptCacheTtl>,
pub system: bool,
pub rolling: bool,
}Fields§
§prompt_cache_key: Option<String>§prompt_cache_retention: Option<OpenAiPromptCacheRetention>§mode: Option<OpenAiCacheMode>§ttl: Option<OpenAiPromptCacheTtl>§system: bool§rolling: boolTrait Implementations§
Source§impl Clone for OpenAiCacheStrategyConfig
impl Clone for OpenAiCacheStrategyConfig
Source§fn clone(&self) -> OpenAiCacheStrategyConfig
fn clone(&self) -> OpenAiCacheStrategyConfig
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 OpenAiCacheStrategyConfig
impl Debug for OpenAiCacheStrategyConfig
impl Eq for OpenAiCacheStrategyConfig
Source§impl PartialEq for OpenAiCacheStrategyConfig
impl PartialEq for OpenAiCacheStrategyConfig
Source§fn eq(&self, other: &OpenAiCacheStrategyConfig) -> bool
fn eq(&self, other: &OpenAiCacheStrategyConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpenAiCacheStrategyConfig
Auto Trait Implementations§
impl Freeze for OpenAiCacheStrategyConfig
impl RefUnwindSafe for OpenAiCacheStrategyConfig
impl Send for OpenAiCacheStrategyConfig
impl Sync for OpenAiCacheStrategyConfig
impl Unpin for OpenAiCacheStrategyConfig
impl UnsafeUnpin for OpenAiCacheStrategyConfig
impl UnwindSafe for OpenAiCacheStrategyConfig
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