pub struct SystemCacheMarker {
pub offset: usize,
pub length: usize,
pub cache_type: SystemCacheType,
}Expand description
A byte range in the system prompt that is stable enough for provider caching.
Fields§
§offset: usizeStarting byte offset in the system prompt content.
length: usizeLength of the cacheable range in bytes.
cache_type: SystemCacheTypeCache behavior requested for this range.
Trait Implementations§
Source§impl Clone for SystemCacheMarker
impl Clone for SystemCacheMarker
Source§fn clone(&self) -> SystemCacheMarker
fn clone(&self) -> SystemCacheMarker
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 SystemCacheMarker
impl Debug for SystemCacheMarker
Source§impl<'de> Deserialize<'de> for SystemCacheMarker
impl<'de> Deserialize<'de> for SystemCacheMarker
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
Source§impl PartialEq for SystemCacheMarker
impl PartialEq for SystemCacheMarker
Source§impl Serialize for SystemCacheMarker
impl Serialize for SystemCacheMarker
impl StructuralPartialEq for SystemCacheMarker
Auto Trait Implementations§
impl Freeze for SystemCacheMarker
impl RefUnwindSafe for SystemCacheMarker
impl Send for SystemCacheMarker
impl Sync for SystemCacheMarker
impl Unpin for SystemCacheMarker
impl UnsafeUnpin for SystemCacheMarker
impl UnwindSafe for SystemCacheMarker
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