pub enum ClaudePromptCacheStrategy {
Automatic,
Explicit(ClaudeExplicitCacheBreakpoints),
AutomaticAndExplicit(ClaudeExplicitCacheBreakpoints),
}Expand description
Claude prompt cache strategy.
Variants§
Automatic
Add top-level cache_control (automatic caching).
Explicit(ClaudeExplicitCacheBreakpoints)
Place cache_control on selected cacheable blocks.
AutomaticAndExplicit(ClaudeExplicitCacheBreakpoints)
Use top-level automatic caching and explicit breakpoints together.
Trait Implementations§
Source§impl Clone for ClaudePromptCacheStrategy
impl Clone for ClaudePromptCacheStrategy
Source§fn clone(&self) -> ClaudePromptCacheStrategy
fn clone(&self) -> ClaudePromptCacheStrategy
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 ClaudePromptCacheStrategy
Source§impl Debug for ClaudePromptCacheStrategy
impl Debug for ClaudePromptCacheStrategy
Source§impl Default for ClaudePromptCacheStrategy
impl Default for ClaudePromptCacheStrategy
Source§fn default() -> ClaudePromptCacheStrategy
fn default() -> ClaudePromptCacheStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClaudePromptCacheStrategy
impl<'de> Deserialize<'de> for ClaudePromptCacheStrategy
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 ClaudePromptCacheStrategy
impl StructuralPartialEq for ClaudePromptCacheStrategy
Auto Trait Implementations§
impl Freeze for ClaudePromptCacheStrategy
impl RefUnwindSafe for ClaudePromptCacheStrategy
impl Send for ClaudePromptCacheStrategy
impl Sync for ClaudePromptCacheStrategy
impl Unpin for ClaudePromptCacheStrategy
impl UnsafeUnpin for ClaudePromptCacheStrategy
impl UnwindSafe for ClaudePromptCacheStrategy
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