pub struct ClaudeExplicitCacheBreakpoints {
pub first: ClaudeExplicitCacheBreakpoint,
pub second: Option<ClaudeExplicitCacheBreakpoint>,
pub third: Option<ClaudeExplicitCacheBreakpoint>,
pub fourth: Option<ClaudeExplicitCacheBreakpoint>,
}Expand description
Up to four explicit Claude cache breakpoints.
Fields§
§first: ClaudeExplicitCacheBreakpointFirst explicit breakpoint.
second: Option<ClaudeExplicitCacheBreakpoint>Optional second explicit breakpoint.
third: Option<ClaudeExplicitCacheBreakpoint>Optional third explicit breakpoint.
fourth: Option<ClaudeExplicitCacheBreakpoint>Optional fourth explicit breakpoint.
Implementations§
Source§impl ClaudeExplicitCacheBreakpoints
impl ClaudeExplicitCacheBreakpoints
Sourcepub const fn new(first: ClaudeExplicitCacheBreakpoint) -> Self
pub const fn new(first: ClaudeExplicitCacheBreakpoint) -> Self
Creates an explicit breakpoint set with one mandatory breakpoint.
Sourcepub const fn with_second(self, second: ClaudeExplicitCacheBreakpoint) -> Self
pub const fn with_second(self, second: ClaudeExplicitCacheBreakpoint) -> Self
Sets the second breakpoint.
Sourcepub const fn with_third(self, third: ClaudeExplicitCacheBreakpoint) -> Self
pub const fn with_third(self, third: ClaudeExplicitCacheBreakpoint) -> Self
Sets the third breakpoint.
Sourcepub const fn with_fourth(self, fourth: ClaudeExplicitCacheBreakpoint) -> Self
pub const fn with_fourth(self, fourth: ClaudeExplicitCacheBreakpoint) -> Self
Sets the fourth breakpoint.
Sourcepub fn iter(self) -> impl Iterator<Item = ClaudeExplicitCacheBreakpoint>
pub fn iter(self) -> impl Iterator<Item = ClaudeExplicitCacheBreakpoint>
Returns all configured breakpoints in declared order.
Sourcepub const fn messages_only() -> Self
pub const fn messages_only() -> Self
Cache only the last cacheable message content block.
Trait Implementations§
Source§impl Clone for ClaudeExplicitCacheBreakpoints
impl Clone for ClaudeExplicitCacheBreakpoints
Source§fn clone(&self) -> ClaudeExplicitCacheBreakpoints
fn clone(&self) -> ClaudeExplicitCacheBreakpoints
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 ClaudeExplicitCacheBreakpoints
Source§impl<'de> Deserialize<'de> for ClaudeExplicitCacheBreakpoints
impl<'de> Deserialize<'de> for ClaudeExplicitCacheBreakpoints
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 ClaudeExplicitCacheBreakpoints
impl StructuralPartialEq for ClaudeExplicitCacheBreakpoints
Auto Trait Implementations§
impl Freeze for ClaudeExplicitCacheBreakpoints
impl RefUnwindSafe for ClaudeExplicitCacheBreakpoints
impl Send for ClaudeExplicitCacheBreakpoints
impl Sync for ClaudeExplicitCacheBreakpoints
impl Unpin for ClaudeExplicitCacheBreakpoints
impl UnsafeUnpin for ClaudeExplicitCacheBreakpoints
impl UnwindSafe for ClaudeExplicitCacheBreakpoints
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