pub struct CacheStabilityIntent {
pub stability_score: f64,
pub stable_prefix_end: usize,
pub recommended_retention_tier: Option<RetentionTier>,
pub scope_label: SharingScope,
pub confidence: f64,
pub evidence_count: u32,
}Expand description
Cache stability analysis results for a prompt region.
Signals how stable a prefix is across requests and recommends retention and sharing policies.
Fields§
§stability_score: f64Stability score in the range [0.0, 1.0].
stable_prefix_end: usizeByte offset marking the end of the stable prefix.
recommended_retention_tier: Option<RetentionTier>Recommended retention tier based on stability analysis.
scope_label: SharingScopeSharing scope label for this cached region.
confidence: f64Confidence in the stability assessment [0.0, 1.0].
evidence_count: u32Number of observations backing this assessment.
Trait Implementations§
Source§impl Clone for CacheStabilityIntent
impl Clone for CacheStabilityIntent
Source§fn clone(&self) -> CacheStabilityIntent
fn clone(&self) -> CacheStabilityIntent
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 CacheStabilityIntent
impl Debug for CacheStabilityIntent
Source§impl<'de> Deserialize<'de> for CacheStabilityIntent
impl<'de> Deserialize<'de> for CacheStabilityIntent
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 CacheStabilityIntent
impl PartialEq for CacheStabilityIntent
Source§fn eq(&self, other: &CacheStabilityIntent) -> bool
fn eq(&self, other: &CacheStabilityIntent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CacheStabilityIntent
impl Serialize for CacheStabilityIntent
impl StructuralPartialEq for CacheStabilityIntent
Auto Trait Implementations§
impl Freeze for CacheStabilityIntent
impl RefUnwindSafe for CacheStabilityIntent
impl Send for CacheStabilityIntent
impl Sync for CacheStabilityIntent
impl Unpin for CacheStabilityIntent
impl UnsafeUnpin for CacheStabilityIntent
impl UnwindSafe for CacheStabilityIntent
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