pub struct SessionCostPromptCacheAnalytics {Show 17 fields
pub sample_count: usize,
pub effective: bool,
pub trend: String,
pub total_prompt_tokens: u64,
pub total_cached_input_tokens: u64,
pub total_cache_creation_tokens: u64,
pub net_cached_input_tokens: i64,
pub timeline_truncated: bool,
pub average_cached_input_ratio: Option<String>,
pub first_cached_input_ratio: Option<String>,
pub last_cached_input_ratio: Option<String>,
pub cached_input_ratio_delta: Option<String>,
pub cache_read_to_creation_ratio: Option<String>,
pub diagnostics: Vec<SessionCostPromptCacheDiagnostic>,
pub prefix_drift_truncated: bool,
pub prefix_drift: Vec<SessionCostPromptCachePrefixDrift>,
pub timeline: Vec<SessionCostPromptCacheTimelineEntry>,
}Fields§
§sample_count: usize§effective: bool§trend: String§total_prompt_tokens: u64§total_cached_input_tokens: u64§total_cache_creation_tokens: u64§net_cached_input_tokens: i64§timeline_truncated: bool§average_cached_input_ratio: Option<String>§first_cached_input_ratio: Option<String>§last_cached_input_ratio: Option<String>§cached_input_ratio_delta: Option<String>§cache_read_to_creation_ratio: Option<String>§diagnostics: Vec<SessionCostPromptCacheDiagnostic>§prefix_drift_truncated: bool§prefix_drift: Vec<SessionCostPromptCachePrefixDrift>§timeline: Vec<SessionCostPromptCacheTimelineEntry>Trait Implementations§
Source§impl Clone for SessionCostPromptCacheAnalytics
impl Clone for SessionCostPromptCacheAnalytics
Source§fn clone(&self) -> SessionCostPromptCacheAnalytics
fn clone(&self) -> SessionCostPromptCacheAnalytics
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 moreimpl Eq for SessionCostPromptCacheAnalytics
Source§impl Serialize for SessionCostPromptCacheAnalytics
impl Serialize for SessionCostPromptCacheAnalytics
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SessionCostPromptCacheAnalytics
Auto Trait Implementations§
impl Freeze for SessionCostPromptCacheAnalytics
impl RefUnwindSafe for SessionCostPromptCacheAnalytics
impl Send for SessionCostPromptCacheAnalytics
impl Sync for SessionCostPromptCacheAnalytics
impl Unpin for SessionCostPromptCacheAnalytics
impl UnsafeUnpin for SessionCostPromptCacheAnalytics
impl UnwindSafe for SessionCostPromptCacheAnalytics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.