pub struct CacheBreakpoint {
pub block_index: u32,
pub source: CacheBreakpointSource,
pub path: String,
pub message_index: Option<u32>,
pub prefix_hash: String,
pub prefix_token_count: u64,
pub requested_ttl: TtlClass,
pub origin: BreakpointOrigin,
}Expand description
Cache breakpoint position in the request, for prompt cache optimization.
Fields§
§block_index: u32Block index of the breakpoint.
source: CacheBreakpointSourceSource of the breakpoint.
path: StringDot-separated path (e.g., “messages.0.content.1”) within request.
message_index: Option<u32>Message index if this breakpoint is within a message, None for system content.
prefix_hash: StringContent hash of the prefix up to this breakpoint.
prefix_token_count: u64Token count of the prefix up to this breakpoint.
requested_ttl: TtlClassRequested TTL class for this breakpoint.
origin: BreakpointOriginOrigin of this breakpoint.
Trait Implementations§
Source§impl Clone for CacheBreakpoint
impl Clone for CacheBreakpoint
Source§fn clone(&self) -> CacheBreakpoint
fn clone(&self) -> CacheBreakpoint
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 CacheBreakpoint
impl Debug for CacheBreakpoint
Source§impl<'de> Deserialize<'de> for CacheBreakpoint
impl<'de> Deserialize<'de> for CacheBreakpoint
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 CacheBreakpoint
Source§impl PartialEq for CacheBreakpoint
impl PartialEq for CacheBreakpoint
Source§fn eq(&self, other: &CacheBreakpoint) -> bool
fn eq(&self, other: &CacheBreakpoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CacheBreakpoint
impl Serialize for CacheBreakpoint
impl StructuralPartialEq for CacheBreakpoint
Auto Trait Implementations§
impl Freeze for CacheBreakpoint
impl RefUnwindSafe for CacheBreakpoint
impl Send for CacheBreakpoint
impl Sync for CacheBreakpoint
impl Unpin for CacheBreakpoint
impl UnsafeUnpin for CacheBreakpoint
impl UnwindSafe for CacheBreakpoint
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