Struct Cache Stability Intent
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
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,
}
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: f64
Stability score in the range [0.0, 1.0].
stable_prefix_end: usize
Byte offset marking the end of the stable prefix.
recommended_retention_tier: Option<RetentionTier>
Recommended retention tier based on stability analysis.
scope_label: SharingScope
Sharing scope label for this cached region.
confidence: f64
Confidence in the stability assessment [0.0, 1.0].
evidence_count: u32
Number of observations backing this assessment.
Trait Implementations
impl Clone for CacheStabilityIntent
impl Clone for CacheStabilityIntent
clone
fn clone(&self) -> CacheStabilityIntent
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for CacheStabilityIntent
impl Debug for CacheStabilityIntent
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for CacheStabilityIntent
impl<'de> Deserialize<'de> for CacheStabilityIntent
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl PartialEq for CacheStabilityIntent
impl PartialEq for CacheStabilityIntent
eq
fn eq(&self, other: &CacheStabilityIntent) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Serialize for CacheStabilityIntent
impl Serialize for CacheStabilityIntent
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
impl StructuralPartialEq for CacheStabilityIntent
impl StructuralPartialEq for CacheStabilityIntent