pub struct PromptCacheOptions {
pub ttl: PromptCacheTTLEnum,
pub mode: PromptCacheModeEnum,
pub comparison_response_id: Option<String>,
}Expand description
The prompt-caching options that were applied to the response. Supported for gpt-5.6 and later
models.
Fields§
§ttl: PromptCacheTTLEnumThe minimum lifetime applied to each cache breakpoint.
mode: PromptCacheModeEnumWhether implicit prompt-cache breakpoints were enabled.
comparison_response_id: Option<String>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<'de> Deserialize<'de> for PromptCacheOptions
impl<'de> Deserialize<'de> for PromptCacheOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptCacheOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PromptCacheOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PromptCacheOptions
impl PartialEq for PromptCacheOptions
Source§impl Serialize for PromptCacheOptions
impl Serialize for PromptCacheOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PromptCacheOptions
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