pub struct ContextSnapshotHint {
pub static_prefix_hash: u64,
pub section_plan_hash: u64,
pub capability_manifest_hash: u64,
pub static_section_ids: Vec<String>,
}Expand description
Provider-cache hint derived from pure kernel metadata.
SDKs can use these stable fingerprints to decide whether provider prompt cache boundaries are still reusable. The kernel intentionally emits only hashes and section ids; concrete cache reads/writes remain in the SDK layer.
Fields§
§static_prefix_hash: u64§section_plan_hash: u64§capability_manifest_hash: u64§static_section_ids: Vec<String>Implementations§
Source§impl ContextSnapshotHint
impl ContextSnapshotHint
pub fn from_parts( sections: &ContextSectionRegistry, capabilities: &CapabilityManifest, ) -> Self
Trait Implementations§
Source§impl Clone for ContextSnapshotHint
impl Clone for ContextSnapshotHint
Source§fn clone(&self) -> ContextSnapshotHint
fn clone(&self) -> ContextSnapshotHint
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 ContextSnapshotHint
impl Debug for ContextSnapshotHint
Source§impl<'de> Deserialize<'de> for ContextSnapshotHint
impl<'de> Deserialize<'de> for ContextSnapshotHint
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 ContextSnapshotHint
Source§impl PartialEq for ContextSnapshotHint
impl PartialEq for ContextSnapshotHint
Source§fn eq(&self, other: &ContextSnapshotHint) -> bool
fn eq(&self, other: &ContextSnapshotHint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextSnapshotHint
impl Serialize for ContextSnapshotHint
impl StructuralPartialEq for ContextSnapshotHint
Auto Trait Implementations§
impl Freeze for ContextSnapshotHint
impl RefUnwindSafe for ContextSnapshotHint
impl Send for ContextSnapshotHint
impl Sync for ContextSnapshotHint
impl Unpin for ContextSnapshotHint
impl UnsafeUnpin for ContextSnapshotHint
impl UnwindSafe for ContextSnapshotHint
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