pub struct PromptCacheOptions {
pub mode: Option<PromptCacheMode>,
pub ttl: Option<PromptCacheTtl>,
}Expand description
Options for prompt caching.
Fields§
§mode: Option<PromptCacheMode>Controls whether OpenAI automatically creates an implicit cache
breakpoint. Defaults to implicit.
ttl: Option<PromptCacheTtl>The minimum lifetime applied to every implicit and explicit cache
breakpoint written by the request. Defaults to 30m, currently the
only supported value.
Trait Implementations§
Source§impl Clone for PromptCacheOptions
impl Clone for PromptCacheOptions
Source§fn clone(&self) -> PromptCacheOptions
fn clone(&self) -> PromptCacheOptions
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 PromptCacheOptions
impl Debug for PromptCacheOptions
Source§impl Default for PromptCacheOptions
impl Default for PromptCacheOptions
Source§fn default() -> PromptCacheOptions
fn default() -> PromptCacheOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PromptCacheOptions
impl RefUnwindSafe for PromptCacheOptions
impl Send for PromptCacheOptions
impl Sync for PromptCacheOptions
impl Unpin for PromptCacheOptions
impl UnsafeUnpin for PromptCacheOptions
impl UnwindSafe for PromptCacheOptions
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