pub enum OpenAIPromptCacheRetention {
InMemory,
Hours24,
}Expand description
OpenAI prompt cache retention policies.
Variants§
InMemory
Keep cache entries in-memory (default OpenAI retention mode).
Hours24
Keep cache entries for 24 hours.
Implementations§
Trait Implementations§
Source§impl Clone for OpenAIPromptCacheRetention
impl Clone for OpenAIPromptCacheRetention
Source§fn clone(&self) -> OpenAIPromptCacheRetention
fn clone(&self) -> OpenAIPromptCacheRetention
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 moreimpl Copy for OpenAIPromptCacheRetention
Source§impl Debug for OpenAIPromptCacheRetention
impl Debug for OpenAIPromptCacheRetention
Source§impl<'de> Deserialize<'de> for OpenAIPromptCacheRetention
impl<'de> Deserialize<'de> for OpenAIPromptCacheRetention
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 OpenAIPromptCacheRetention
impl StructuralPartialEq for OpenAIPromptCacheRetention
Auto Trait Implementations§
impl Freeze for OpenAIPromptCacheRetention
impl RefUnwindSafe for OpenAIPromptCacheRetention
impl Send for OpenAIPromptCacheRetention
impl Sync for OpenAIPromptCacheRetention
impl Unpin for OpenAIPromptCacheRetention
impl UnsafeUnpin for OpenAIPromptCacheRetention
impl UnwindSafe for OpenAIPromptCacheRetention
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