pub struct OpenAIPromptCache {
pub key: Option<String>,
pub retention: Option<OpenAIPromptCacheRetention>,
}Expand description
OpenAI-compatible prompt cache controls.
Fields§
§key: Option<String>Stable key used to route related prompts to the same cache shard.
retention: Option<OpenAIPromptCacheRetention>Retention policy for prompt cache entries.
Trait Implementations§
Source§impl Clone for OpenAIPromptCache
impl Clone for OpenAIPromptCache
Source§fn clone(&self) -> OpenAIPromptCache
fn clone(&self) -> OpenAIPromptCache
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 OpenAIPromptCache
impl Debug for OpenAIPromptCache
Source§impl Default for OpenAIPromptCache
impl Default for OpenAIPromptCache
Source§fn default() -> OpenAIPromptCache
fn default() -> OpenAIPromptCache
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenAIPromptCache
impl<'de> Deserialize<'de> for OpenAIPromptCache
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 OpenAIPromptCache
Source§impl PartialEq for OpenAIPromptCache
impl PartialEq for OpenAIPromptCache
Source§impl Serialize for OpenAIPromptCache
impl Serialize for OpenAIPromptCache
impl StructuralPartialEq for OpenAIPromptCache
Auto Trait Implementations§
impl Freeze for OpenAIPromptCache
impl RefUnwindSafe for OpenAIPromptCache
impl Send for OpenAIPromptCache
impl Sync for OpenAIPromptCache
impl Unpin for OpenAIPromptCache
impl UnsafeUnpin for OpenAIPromptCache
impl UnwindSafe for OpenAIPromptCache
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