#[non_exhaustive]pub struct DecisionCache {
pub key: Option<String>,
pub mode: Option<String>,
pub ttl: Option<CacheTtl>,
}Expand description
How the provider caches a decision request’s prefix (OpenAI’s prompt_cache_key and
prompt_cache_options).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: Option<String>§mode: Option<String>§ttl: Option<CacheTtl>Implementations§
Trait Implementations§
Source§impl Clone for DecisionCache
impl Clone for DecisionCache
Source§impl Debug for DecisionCache
impl Debug for DecisionCache
Source§impl Default for DecisionCache
impl Default for DecisionCache
Source§impl<'de> Deserialize<'de> for DecisionCache
impl<'de> Deserialize<'de> for DecisionCache
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
Source§impl PartialEq for DecisionCache
impl PartialEq for DecisionCache
Source§impl Serialize for DecisionCache
impl Serialize for DecisionCache
impl StructuralPartialEq for DecisionCache
Auto Trait Implementations§
impl Forget for DecisionCache
impl Freeze for DecisionCache
impl Move for DecisionCache
impl RefUnwindSafe for DecisionCache
impl Send for DecisionCachewhere
RawVecInner: Send,
impl Sync for DecisionCachewhere
RawVecInner: Sync,
impl Unpin for DecisionCache
impl UnsafeUnpin for DecisionCache
impl UnwindSafe for DecisionCachewhere
RawVecInner: UnwindSafe,
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