pub enum CacheRetention {
None,
Short,
Long,
}Expand description
How long the provider should keep the prompt cached.
Variants§
None
No caching.
Short
The provider’s default retention.
Long
Extended retention where offered, such as Anthropic’s one hour.
Implementations§
Source§impl CacheRetention
impl CacheRetention
Sourcepub fn parse(name: &str) -> Option<CacheRetention>
pub fn parse(name: &str) -> Option<CacheRetention>
Parses a name from CacheRetention::as_str.
Trait Implementations§
Source§impl Clone for CacheRetention
impl Clone for CacheRetention
impl Copy for CacheRetention
Source§impl Debug for CacheRetention
impl Debug for CacheRetention
impl Eq for CacheRetention
Source§impl PartialEq for CacheRetention
impl PartialEq for CacheRetention
impl StructuralPartialEq for CacheRetention
Auto Trait Implementations§
impl Freeze for CacheRetention
impl RefUnwindSafe for CacheRetention
impl Send for CacheRetention
impl Sync for CacheRetention
impl Unpin for CacheRetention
impl UnsafeUnpin for CacheRetention
impl UnwindSafe for CacheRetention
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.