pub struct OpenAiPromptCacheOptions {
pub mode: OpenAiPromptCacheMode,
pub ttl: Option<OpenAiPromptCacheTtl>,
}Expand description
Request-wide GPT-5.6 prompt-cache policy.
Fields§
§mode: OpenAiPromptCacheModeBreakpoint placement mode.
ttl: Option<OpenAiPromptCacheTtl>Minimum cache lifetime. OpenAI currently accepts only 30m.
Trait Implementations§
Source§impl Clone for OpenAiPromptCacheOptions
impl Clone for OpenAiPromptCacheOptions
Source§fn clone(&self) -> OpenAiPromptCacheOptions
fn clone(&self) -> OpenAiPromptCacheOptions
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 OpenAiPromptCacheOptions
impl Debug for OpenAiPromptCacheOptions
Source§impl<'de> Deserialize<'de> for OpenAiPromptCacheOptions
impl<'de> Deserialize<'de> for OpenAiPromptCacheOptions
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 OpenAiPromptCacheOptions
Source§impl PartialEq for OpenAiPromptCacheOptions
impl PartialEq for OpenAiPromptCacheOptions
Source§impl Serialize for OpenAiPromptCacheOptions
impl Serialize for OpenAiPromptCacheOptions
impl StructuralPartialEq for OpenAiPromptCacheOptions
Auto Trait Implementations§
impl Freeze for OpenAiPromptCacheOptions
impl RefUnwindSafe for OpenAiPromptCacheOptions
impl Send for OpenAiPromptCacheOptions
impl Sync for OpenAiPromptCacheOptions
impl Unpin for OpenAiPromptCacheOptions
impl UnsafeUnpin for OpenAiPromptCacheOptions
impl UnwindSafe for OpenAiPromptCacheOptions
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