pub struct CacheHitRatePoint {
pub project_id: String,
pub model_name: Option<String>,
pub total_input_tokens: u64,
pub cached_tokens: u64,
pub cache_hit_pct: f64,
}Expand description
Cache hit rate data point.
Fields§
§project_id: String§model_name: Option<String>§total_input_tokens: u64§cached_tokens: u64§cache_hit_pct: f64cached_tokens / total_input_tokens * 100.
Trait Implementations§
Source§impl Clone for CacheHitRatePoint
impl Clone for CacheHitRatePoint
Source§fn clone(&self) -> CacheHitRatePoint
fn clone(&self) -> CacheHitRatePoint
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 CacheHitRatePoint
impl Debug for CacheHitRatePoint
Source§impl<'de> Deserialize<'de> for CacheHitRatePoint
impl<'de> Deserialize<'de> for CacheHitRatePoint
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
Auto Trait Implementations§
impl Freeze for CacheHitRatePoint
impl RefUnwindSafe for CacheHitRatePoint
impl Send for CacheHitRatePoint
impl Sync for CacheHitRatePoint
impl Unpin for CacheHitRatePoint
impl UnsafeUnpin for CacheHitRatePoint
impl UnwindSafe for CacheHitRatePoint
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