pub struct CacheMarker {
pub offset: usize,
pub length: usize,
pub cache_type: CacheType,
}Expand description
A cache marker indicating a byte range suitable for provider caching.
Each marker specifies the offset and length of a cacheable section within the assembled prompt, along with the cache type.
Fields§
§offset: usizeStarting byte offset of the cacheable section.
length: usizeLength of the cacheable section in bytes.
cache_type: CacheTypeType of caching to apply to this section.
Trait Implementations§
Source§impl Clone for CacheMarker
impl Clone for CacheMarker
Source§fn clone(&self) -> CacheMarker
fn clone(&self) -> CacheMarker
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 CacheMarker
impl Debug for CacheMarker
Source§impl From<CacheMarker> for SystemCacheMarker
impl From<CacheMarker> for SystemCacheMarker
Source§fn from(marker: CacheMarker) -> Self
fn from(marker: CacheMarker) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CacheMarker
impl PartialEq for CacheMarker
impl StructuralPartialEq for CacheMarker
Auto Trait Implementations§
impl Freeze for CacheMarker
impl RefUnwindSafe for CacheMarker
impl Send for CacheMarker
impl Sync for CacheMarker
impl Unpin for CacheMarker
impl UnsafeUnpin for CacheMarker
impl UnwindSafe for CacheMarker
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